summaryrefslogtreecommitdiffstats
path: root/webkit/glue/weburlrequest_impl.h
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 00:00:40 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 00:00:40 +0000
commit7941d41c1fcf138da497b58ee83d7c260fbce88b (patch)
tree82df4550c20093a1d6af4c9608d85750aca06259 /webkit/glue/weburlrequest_impl.h
parent1e0f70402b410a9e274e8d23eeab236b43810a00 (diff)
downloadchromium_src-7941d41c1fcf138da497b58ee83d7c260fbce88b.zip
chromium_src-7941d41c1fcf138da497b58ee83d7c260fbce88b.tar.gz
chromium_src-7941d41c1fcf138da497b58ee83d7c260fbce88b.tar.bz2
Currently, there is no way to access or modify the upload data and/or complete
list of request headers associated with a WebRequest object. The intent is to access this information from WebViewDelegate::DispositionForNavigationAction(). Remove the HasFormData() method that checked for upload (form) data on the history item. The HasFormData() method is not currently being called from anywhere, so changes elsewhere are not required. Add HasUploadData(), GetUploadData() and SetUploadData() methods to test, get and set the underlying request upload data as a net::UploadData object. Add GetHttpHeaders() and SetHttpHeaders() methods to get and set all request headers using a map of values. Add the SetHttpHeaderValue() method to set the value for a particular request header. Patch by Marshall Greenblatt R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlrequest_impl.h')
-rw-r--r--webkit/glue/weburlrequest_impl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/glue/weburlrequest_impl.h b/webkit/glue/weburlrequest_impl.h
index 8b33385..c7fd5ef 100644
--- a/webkit/glue/weburlrequest_impl.h
+++ b/webkit/glue/weburlrequest_impl.h
@@ -35,12 +35,18 @@ class WebRequestImpl : public WebRequest {
virtual std::wstring GetHttpMethod() const;
virtual void SetHttpMethod(const std::wstring& method);
virtual std::wstring GetHttpHeaderValue(const std::wstring& field) const;
+ virtual void SetHttpHeaderValue(const std::wstring& field,
+ const std::wstring& value);
+ virtual void GetHttpHeaders(HeaderMap* headers) const;
+ virtual void SetHttpHeaders(const HeaderMap& headers);
virtual std::wstring GetHttpReferrer() const;
virtual std::string GetHistoryState() const;
virtual void SetHistoryState(const std::string& value);
virtual std::string GetSecurityInfo() const;
virtual void SetSecurityInfo(const std::string& value);
- virtual bool HasFormData() const;
+ virtual bool HasUploadData() const;
+ virtual void GetUploadData(net::UploadData* data) const;
+ virtual void SetUploadData(const net::UploadData& data);
// WebRequestImpl
const WebCore::FrameLoadRequest& frame_load_request() const {