summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp')
-rw-r--r--Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp b/Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp
index 55168bc..ad61d33 100644
--- a/Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp
+++ b/Source/WebKit2/UIProcess/Downloads/DownloadProxy.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "DownloadProxy.h"
+#include "AuthenticationChallengeProxy.h"
#include "DataReference.h"
#include "WebContext.h"
#include "WebData.h"
@@ -91,6 +92,15 @@ void DownloadProxy::didStart(const ResourceRequest& request)
m_webContext->downloadClient().didStart(m_webContext, this);
}
+void DownloadProxy::didReceiveAuthenticationChallenge(const AuthenticationChallenge& authenticationChallenge, uint64_t challengeID)
+{
+ if (!m_webContext)
+ return;
+
+ RefPtr<AuthenticationChallengeProxy> authenticationChallengeProxy = AuthenticationChallengeProxy::create(authenticationChallenge, challengeID, m_webContext->process());
+ m_webContext->downloadClient().didReceiveAuthenticationChallenge(m_webContext, this, authenticationChallengeProxy.get());
+}
+
void DownloadProxy::didReceiveResponse(const ResourceResponse& response)
{
if (!m_webContext)