diff options
Diffstat (limited to 'Source/WebKit2/WebProcess/Downloads/Download.h')
-rw-r--r-- | Source/WebKit2/WebProcess/Downloads/Download.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WebKit2/WebProcess/Downloads/Download.h b/Source/WebKit2/WebProcess/Downloads/Download.h index 26d8f3d..780e8c2 100644 --- a/Source/WebKit2/WebProcess/Downloads/Download.h +++ b/Source/WebKit2/WebProcess/Downloads/Download.h @@ -47,6 +47,8 @@ namespace CoreIPC { } namespace WebCore { + class AuthenticationChallenge; + class Credential; class ResourceError; class ResourceHandle; class ResourceResponse; @@ -74,6 +76,7 @@ public: uint64_t downloadID() const { return m_downloadID; } void didStart(); + void didReceiveAuthenticationChallenge(const WebCore::AuthenticationChallenge&); void didReceiveResponse(const WebCore::ResourceResponse&); void didReceiveData(uint64_t length); bool shouldDecodeSourceDataOfMIMEType(const String& mimeType); @@ -89,6 +92,11 @@ public: const String& destination() const { return m_destination; } #endif + // Authentication + static void receivedCredential(const WebCore::AuthenticationChallenge&, const WebCore::Credential&); + static void receivedRequestToContinueWithoutCredential(const WebCore::AuthenticationChallenge&); + static void receivedCancellation(const WebCore::AuthenticationChallenge&); + private: Download(uint64_t downloadID, const WebCore::ResourceRequest&); @@ -105,10 +113,10 @@ private: RetainPtr<NSURLDownload> m_nsURLDownload; RetainPtr<WKDownloadAsDelegate> m_delegate; #endif -#if USE(CFNETWORK) bool m_allowOverwrite; String m_destination; String m_bundlePath; +#if USE(CFNETWORK) RetainPtr<CFURLDownloadRef> m_download; #endif }; |