diff options
Diffstat (limited to 'WebKit/win/WebURLAuthenticationChallengeSender.cpp')
-rw-r--r-- | WebKit/win/WebURLAuthenticationChallengeSender.cpp | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/WebKit/win/WebURLAuthenticationChallengeSender.cpp b/WebKit/win/WebURLAuthenticationChallengeSender.cpp index dfd2689..c80e33f 100644 --- a/WebKit/win/WebURLAuthenticationChallengeSender.cpp +++ b/WebKit/win/WebURLAuthenticationChallengeSender.cpp @@ -29,6 +29,7 @@ #include "WebURLAuthenticationChallengeSender.h" #include "COMPtr.h" +#include "NotImplemented.h" #include "WebKit.h" #include "WebURLAuthenticationChallenge.h" #include "WebURLCredential.h" @@ -95,46 +96,6 @@ ULONG STDMETHODCALLTYPE WebURLAuthenticationChallengeSender::Release(void) return newRef; } -// IWebURLAuthenticationChallengeSender ------------------------------------------------------------------- - -HRESULT STDMETHODCALLTYPE WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge( - /* [in] */ IWebURLAuthenticationChallenge* challenge) -{ - COMPtr<WebURLAuthenticationChallenge> webChallenge(Query, challenge); - if (!webChallenge) - return E_FAIL; - - m_handle->receivedCancellation(webChallenge->authenticationChallenge()); - return S_OK; -} - -HRESULT STDMETHODCALLTYPE WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge( - /* [in] */ IWebURLAuthenticationChallenge* challenge) -{ - COMPtr<WebURLAuthenticationChallenge> webChallenge(Query, challenge); - if (!webChallenge) - return E_FAIL; - - m_handle->receivedRequestToContinueWithoutCredential(webChallenge->authenticationChallenge()); - return S_OK; -} - -HRESULT STDMETHODCALLTYPE WebURLAuthenticationChallengeSender::useCredential( - /* [in] */ IWebURLCredential* credential, - /* [in] */ IWebURLAuthenticationChallenge* challenge) -{ - COMPtr<WebURLAuthenticationChallenge> webChallenge(Query, challenge); - if (!webChallenge) - return E_FAIL; - - COMPtr<WebURLCredential> webCredential; - if (!credential || FAILED(credential->QueryInterface(__uuidof(WebURLCredential), (void**)&webCredential))) - return E_FAIL; - - m_handle->receivedCredential(webChallenge->authenticationChallenge(), webCredential->credential()); - return S_OK; -} - // WebURLAuthenticationChallengeSender ---------------------------------------------------------------- ResourceHandle* WebURLAuthenticationChallengeSender::resourceHandle() const |