summaryrefslogtreecommitdiffstats
path: root/WebKit/win/WebMutableURLRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/win/WebMutableURLRequest.cpp')
-rw-r--r--WebKit/win/WebMutableURLRequest.cpp27
1 files changed, 23 insertions, 4 deletions
diff --git a/WebKit/win/WebMutableURLRequest.cpp b/WebKit/win/WebMutableURLRequest.cpp
index 63a060e..035fac3 100644
--- a/WebKit/win/WebMutableURLRequest.cpp
+++ b/WebKit/win/WebMutableURLRequest.cpp
@@ -33,6 +33,7 @@
#include <CFNetwork/CFURLRequestPriv.h>
#pragma warning(push, 0)
#include <WebCore/BString.h>
+#include <WebCore/COMPtr.h>
#include <WebCore/CString.h>
#include <WebCore/FormData.h>
#include <WebCore/NotImplemented.h>
@@ -240,6 +241,22 @@ HRESULT STDMETHODCALLTYPE WebMutableURLRequest::isEmpty(
return S_OK;
}
+HRESULT STDMETHODCALLTYPE WebMutableURLRequest::isEqual(
+ /* [in] */ IWebURLRequest* other,
+ /* [out, retval] */ BOOL* result)
+{
+ COMPtr<WebMutableURLRequest> requestImpl(Query, other);
+
+ if (!requestImpl) {
+ *result = FALSE;
+ return S_OK;
+ }
+
+ *result = m_request == requestImpl->resourceRequest();
+ return S_OK;
+}
+
+
// IWebMutableURLRequest --------------------------------------------------------
HRESULT STDMETHODCALLTYPE WebMutableURLRequest::addValue(
@@ -314,11 +331,13 @@ HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setURL(
}
HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setValue(
- /* [in] */ BSTR /*value*/,
- /* [in] */ BSTR /*field*/)
+ /* [in] */ BSTR value,
+ /* [in] */ BSTR field)
{
- ASSERT_NOT_REACHED();
- return E_NOTIMPL;
+ String valueString(value, SysStringLen(value));
+ String fieldString(field, SysStringLen(field));
+ m_request.setHTTPHeaderField(fieldString, valueString);
+ return S_OK;
}
HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setAllowsAnyHTTPSCertificate(void)