Commit f6778904 authored by mitz@apple.com's avatar mitz@apple.com
Browse files

Reviewed by Steve Falkenburg.

        - implement WebMutableURLRequest::setHTTPShouldHandleCookies()
        - add and implement WebMutableURLRequest::mutableCopy()

        * Interfaces/IWebURLRequest.idl:
        * WebMutableURLRequest.cpp:
        (WebMutableURLRequest::setHTTPShouldHandleCookies):
        (WebMutableURLRequest::mutableCopy):
        * WebMutableURLRequest.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 748e44d4
2008-11-03 Dan Bernstein <mitz@apple.com>
Reviewed by Steve Falkenburg.
- implement WebMutableURLRequest::setHTTPShouldHandleCookies()
- add and implement WebMutableURLRequest::mutableCopy()
* Interfaces/IWebURLRequest.idl:
* WebMutableURLRequest.cpp:
(WebMutableURLRequest::setHTTPShouldHandleCookies):
(WebMutableURLRequest::mutableCopy):
* WebMutableURLRequest.h:
2008-10-31 Dan Bernstein <mitz@apple.com>
 
Reviewed by John Sullivan.
......
......@@ -108,4 +108,6 @@ interface IWebURLRequest : IUnknown
HRESULT valueForHTTPHeaderField([in] BSTR field, [out, retval] BSTR* result);
HRESULT isEmpty([out, retval] BOOL* result);
HRESULT mutableCopy([out, retval] IWebMutableURLRequest** result);
}
......@@ -30,6 +30,7 @@
#include "WebKit.h"
#include "MarshallingHelpers.h"
#include "WebKit.h"
#include <CFNetwork/CFURLRequestPriv.h>
#pragma warning(push, 0)
#include <WebCore/BString.h>
#include <WebCore/CString.h>
......@@ -282,10 +283,10 @@ HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setHTTPMethod(
}
HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setHTTPShouldHandleCookies(
/* [in] */ BOOL /*handleCookies*/)
/* [in] */ BOOL handleCookies)
{
ASSERT_NOT_REACHED();
return E_NOTIMPL;
m_request.setAllowHTTPCookies(handleCookies);
return S_OK;
}
HRESULT STDMETHODCALLTYPE WebMutableURLRequest::setMainDocumentURL(
......@@ -361,6 +362,16 @@ CFURLRequestRef STDMETHODCALLTYPE WebMutableURLRequest::cfRequest()
return m_request.cfURLRequest();
}
HRESULT STDMETHODCALLTYPE WebMutableURLRequest::mutableCopy(
/* [out, retval] */ IWebMutableURLRequest** result)
{
if (!result)
return E_POINTER;
RetainPtr<CFMutableURLRequestRef> mutableRequest(AdoptCF, CFURLRequestCreateMutableCopy(kCFAllocatorDefault, m_request.cfURLRequest()));
*result = createInstance(ResourceRequest(mutableRequest.get()));
return S_OK;
}
// IWebMutableURLRequest ----------------------------------------------------
void WebMutableURLRequest::setFormData(const PassRefPtr<FormData> data)
......
......@@ -110,6 +110,9 @@ public:
virtual HRESULT STDMETHODCALLTYPE isEmpty(
/* [retval][out] */ BOOL* result);
virtual HRESULT STDMETHODCALLTYPE mutableCopy(
/* [out, retval] */ IWebMutableURLRequest** result);
// IWebMutableURLRequest
virtual HRESULT STDMETHODCALLTYPE addValue(
/* [in] */ BSTR value,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment