Changeset 159991 in webkit
- Timestamp:
- Dec 2, 2013, 8:25:07 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r159988 r159991 1 2013-12-02 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] WebProtectionSpace has a generic wrapper 4 https://bugs.webkit.org/show_bug.cgi?id=125125 5 6 Reviewed by Anders Carlsson. 7 8 Added WKNSURLProtectionSpace. 9 10 * Shared/Cocoa/APIObject.mm: 11 (API::Object::newObject): Allocate a WKNSURLProtectionSpace if the object is a 12 WebProtectionSpace. 13 * Shared/Cocoa/WKNSURLProtectionSpace.h: Added. 14 (WebKit::wrapper): Added. Returns a WebProtecitonSpace’s wrapper as an NSURLProtectionSpace. 15 * Shared/Cocoa/WKNSURLProtectionSpace.mm: Added. 16 (-[WKNSURLProtectionSpace copyWithZone:]): Retains self. 17 * UIProcess/Authentication/WebProtectionSpace.h: 18 (WebKit::WebProtectionSpace::protectionSpace): Added an accessor for the 19 WebCore::ProtectionSpace. 20 * WebKit2.xcodeproj/project.pbxproj: Added references to new files. 21 1 22 2013-12-02 Anders Carlsson <andersca@apple.com> 2 23 -
trunk/Source/WebKit2/Shared/Cocoa/APIObject.mm
r159877 r159991 38 38 #import "WKNSString.h" 39 39 #import "WKNSURL.h" 40 #import "WKNSURLProtectionSpace.h" 40 41 #import "WKNavigationDataInternal.h" 41 42 #import "WKProcessGroupInternal.h" … … 98 99 break; 99 100 101 case Type::ProtectionSpace: 102 wrapper = NSAllocateObject([WKNSURLProtectionSpace class], size, nullptr); 103 break; 104 100 105 case Type::String: 101 106 wrapper = NSAllocateObject([WKNSString class], size, nullptr); -
trunk/Source/WebKit2/UIProcess/Authentication/WebProtectionSpace.h
r159197 r159991 49 49 WebCore::ProtectionSpaceAuthenticationScheme authenticationScheme() const; 50 50 51 const WebCore::ProtectionSpace& protectionSpace() const { return m_coreProtectionSpace; } 52 51 53 private: 52 54 explicit WebProtectionSpace(const WebCore::ProtectionSpace&); -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r159983 r159991 437 437 371A19411824D29300F32A5E /* WKNSDictionary.mm in Sources */ = {isa = PBXBuildFile; fileRef = 371A193F1824D29300F32A5E /* WKNSDictionary.mm */; }; 438 438 371A19421824D29300F32A5E /* WKNSDictionary.h in Headers */ = {isa = PBXBuildFile; fileRef = 371A19401824D29300F32A5E /* WKNSDictionary.h */; }; 439 371B32DD184D67490013E2B2 /* WKNSURLProtectionSpace.mm in Sources */ = {isa = PBXBuildFile; fileRef = 371B32DB184D67480013E2B2 /* WKNSURLProtectionSpace.mm */; }; 440 371B32DE184D67490013E2B2 /* WKNSURLProtectionSpace.h in Headers */ = {isa = PBXBuildFile; fileRef = 371B32DC184D67490013E2B2 /* WKNSURLProtectionSpace.h */; }; 439 441 372CAF0B1833FD910040AC27 /* WKNSError.h in Headers */ = {isa = PBXBuildFile; fileRef = 372CAF091833FD910040AC27 /* WKNSError.h */; }; 440 442 372CAF0C1833FD910040AC27 /* WKNSError.mm in Sources */ = {isa = PBXBuildFile; fileRef = 372CAF0A1833FD910040AC27 /* WKNSError.mm */; }; … … 1977 1979 371A193F1824D29300F32A5E /* WKNSDictionary.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKNSDictionary.mm; sourceTree = "<group>"; }; 1978 1980 371A19401824D29300F32A5E /* WKNSDictionary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKNSDictionary.h; sourceTree = "<group>"; }; 1981 371B32DB184D67480013E2B2 /* WKNSURLProtectionSpace.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKNSURLProtectionSpace.mm; sourceTree = "<group>"; }; 1982 371B32DC184D67490013E2B2 /* WKNSURLProtectionSpace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKNSURLProtectionSpace.h; sourceTree = "<group>"; }; 1979 1983 372CAF091833FD910040AC27 /* WKNSError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKNSError.h; sourceTree = "<group>"; }; 1980 1984 372CAF0A1833FD910040AC27 /* WKNSError.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKNSError.mm; sourceTree = "<group>"; }; … … 3822 3826 37183D55182F4E700080C811 /* WKNSURLExtras.h */, 3823 3827 37183D54182F4E700080C811 /* WKNSURLExtras.mm */, 3828 371B32DC184D67490013E2B2 /* WKNSURLProtectionSpace.h */, 3829 371B32DB184D67480013E2B2 /* WKNSURLProtectionSpace.mm */, 3824 3830 378E1A3F181EDA010031007A /* WKObject.h */, 3825 3831 374436871820E7240049579F /* WKObject.mm */, … … 5606 5612 2989A414167D184B004F96D2 /* CustomProtocolManager.h in Headers */, 5607 5613 865E0485181A094A001F72F2 /* ViewState.h in Headers */, 5614 371B32DE184D67490013E2B2 /* WKNSURLProtectionSpace.h in Headers */, 5608 5615 2984F589164BA095004BC0C6 /* CustomProtocolManagerMessages.h in Headers */, 5609 5616 29AD3093164B4C5D0072DEA9 /* CustomProtocolManagerProxy.h in Headers */, … … 7072 7079 2D429BFD1721E2C700EC681F /* PDFPluginPasswordField.mm in Sources */, 7073 7080 2D2ADF0916362DD500197E47 /* PDFPluginTextAnnotation.mm in Sources */, 7081 371B32DD184D67490013E2B2 /* WKNSURLProtectionSpace.mm in Sources */, 7074 7082 BCF505E81243047B005955AE /* CertificateInfo.mm in Sources */, 7075 7083 BCC43ABA127B95DC00317F16 /* PlatformPopupMenuData.cpp in Sources */,
Note:
See TracChangeset
for help on using the changeset viewer.