diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:09:45 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:10:13 +0100 |
commit | 470286ecfe79d59df14944e5b5d34630fc739391 (patch) | |
tree | 43983212872e06cebefd2ae474418fa2908ca54c /Source/WebKit/win/WebMutableURLRequest.cpp | |
parent | 23037105e948c2065da5a937d3a2396b0ff45c1e (diff) | |
download | qtwebkit-470286ecfe79d59df14944e5b5d34630fc739391.tar.gz |
Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485)
Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebKit/win/WebMutableURLRequest.cpp')
-rw-r--r-- | Source/WebKit/win/WebMutableURLRequest.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Source/WebKit/win/WebMutableURLRequest.cpp b/Source/WebKit/win/WebMutableURLRequest.cpp index a22f732ab..f52f79eb3 100644 --- a/Source/WebKit/win/WebMutableURLRequest.cpp +++ b/Source/WebKit/win/WebMutableURLRequest.cpp @@ -186,10 +186,12 @@ HRESULT STDMETHODCALLTYPE WebMutableURLRequest::HTTPMethod( } HRESULT STDMETHODCALLTYPE WebMutableURLRequest::HTTPShouldHandleCookies( - /* [retval][out] */ BOOL* /*result*/) + /* [retval][out] */ BOOL* result) { - ASSERT_NOT_REACHED(); - return E_NOTIMPL; + bool shouldHandleCookies = m_request.allowCookies(); + + *result = shouldHandleCookies ? TRUE : FALSE; + return S_OK; } HRESULT STDMETHODCALLTYPE WebMutableURLRequest::initWithURL( @@ -264,11 +266,11 @@ HRESULT STDMETHODCALLTYPE WebMutableURLRequest::isEqual( // IWebMutableURLRequest -------------------------------------------------------- HRESULT STDMETHODCALLTYPE WebMutableURLRequest::addValue( - /* [in] */ BSTR /*value*/, - /* [in] */ BSTR /*field*/) + /* [in] */ BSTR value, + /* [in] */ BSTR field) { - ASSERT_NOT_REACHED(); - return E_NOTIMPL; + m_request.addHTTPHeaderField(WTF::AtomicString(value, SysStringLen(value)), String(field, SysStringLen(field))); + return S_OK; } HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setAllHTTPHeaderFields( @@ -314,10 +316,10 @@ HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setHTTPShouldHandleCookies( } HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setMainDocumentURL( - /* [in] */ BSTR /*theURL*/) + /* [in] */ BSTR theURL) { - ASSERT_NOT_REACHED(); - return E_NOTIMPL; + m_request.setFirstPartyForCookies(MarshallingHelpers::BSTRToKURL(theURL)); + return S_OK; } HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setTimeoutInterval( |