-
rdar://problem/7660733https://bugs.webkit.org/show_bug.cgi?id=50191beidson@apple.com authored
WebKit2 Authentication Support Reviewed by Maciej Stachowiak. WebCore: * WebCore.exp.in: WebKit2: Implement authentication-related coders: * Shared/WebCoreArgumentCoders.h: Allow the ResourceResponse coders to handle null responses: * Shared/mac/WebCoreArgumentCodersMac.mm: (CoreIPC::encodeResourceResponse): (CoreIPC::decodeResourceResponse): Add new API and Impl casts for ProtectionSpace and Credential enums: * UIProcess/API/C/WKAPICast.h: (WebKit::toAPI): (WebKit::toCredentialPersistence): Move the DecisionListener to be accessed off the challenge itself, and fill in other necessary API: * UIProcess/API/C/WKAuthenticationChallenge.cpp: (WKAuthenticationChallengeGetDecisionListener): (WKAuthenticationChallengeGetProtectionSpace): (WKAuthenticationChallengeGetProposedCredential): (WKAuthenticationChallengeGetPreviousFailureCount): * UIProcess/API/C/WKAuthenticationChallenge.h: * UIProcess/Authentication/AuthenticationChallengeProxy.cpp: (WebKit::AuthenticationChallengeProxy::~AuthenticationChallengeProxy): (WebKit::AuthenticationChallengeProxy::proposedCredential): (WebKit::AuthenticationChallengeProxy::protectionSpace): * UIProcess/Authentication/AuthenticationChallengeProxy.h: (WebKit::AuthenticationChallengeProxy::previousFailureCount): Fill in some credential API: * UIProcess/API/C/WKCredential.cpp: (WKCredentialCreate): (WKCredentialCopyUser): * UIProcess/API/C/WKCredential.h: * UIProcess/API/C/WKCredentialTypes.h: Added. * UIProcess/Authentication/WebCredential.cpp: (WebKit::WebCredential::WebCredential): (WebKit::WebCredential::user): * UIProcess/Authentication/WebCredential.h: (WebKit::WebCredential::create): Fill in some protection space API: * UIProcess/API/C/WKProtectionSpace.cpp: (WKProtectionSpaceCopyHost): (WKProtectionSpaceGetPort): (WKProtectionSpaceCopyRealm): (WKProtectionSpaceGetIsProxy): (WKProtectionSpaceGetServerType): (WKProtectionSpaceGetReceivesCredentialSecurely): (WKProtectionSpaceGetAuthenticationScheme): * UIProcess/API/C/WKProtectionSpace.h: * UIProcess/API/C/WKProtectionSpaceTypes.h: Added. * UIProcess/Authentication/WebProtectionSpace.cpp: (WebKit::WebProtectionSpace::WebProtectionSpace): (WebKit::WebProtectionSpace::host): (WebKit::WebProtectionSpace::port): (WebKit::WebProtectionSpace::realm): (WebKit::WebProtectionSpace::isProxy): (WebKit::WebProtectionSpace::serverType): (WebKit::WebProtectionSpace::receivesCredentialSecurely): (WebKit::WebProtectionSpace::authenticationScheme): * UIProcess/Authentication/WebProtectionSpace.h: Change the authentication challenge callback to reflect the new ownership of the DecisionListener: * UIProcess/API/C/WKPage.h: * UIProcess/WebLoaderClient.cpp: (WebKit::WebLoaderClient::didReceiveAuthenticationChallengeInFrame): * UIProcess/WebLoaderClient.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::didReceiveAuthenticationChallenge): * WebKit2.pro: * WebKit2.xcodeproj/project.pbxproj: * win/WebKit2.vcproj: * win/WebKit2Generated.make: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
67dc2b25