Skip to content
  • mitz@apple.com's avatar
    [Cocoa] WebProtectionSpace has a generic wrapper · a1a1baa5
    mitz@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125125
    
    Reviewed by Anders Carlsson.
    
    Added WKNSURLProtectionSpace.
    
    * Shared/Cocoa/APIObject.mm:
    (API::Object::newObject): Allocate a WKNSURLProtectionSpace if the object is a
    WebProtectionSpace.
    * Shared/Cocoa/WKNSURLProtectionSpace.h: Added.
    (WebKit::wrapper): Added. Returns a WebProtecitonSpace’s wrapper as an NSURLProtectionSpace.
    * Shared/Cocoa/WKNSURLProtectionSpace.mm: Added.
    (-[WKNSURLProtectionSpace copyWithZone:]): Retains self.
    * UIProcess/Authentication/WebProtectionSpace.h:
    (WebKit::WebProtectionSpace::protectionSpace): Added an accessor for the
    WebCore::ProtectionSpace.
    * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a1a1baa5