summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 23:14:25 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 23:14:25 +0000
commit88e6b6f3251af7092432c33b7d372a17c7169904 (patch)
tree3fde374eed02ee05026449729952f0364609971b /net/url_request/url_request.h
parentda244100d3ac663a1f827fc712dc508c7761d207 (diff)
downloadchromium_src-88e6b6f3251af7092432c33b7d372a17c7169904.zip
chromium_src-88e6b6f3251af7092432c33b7d372a17c7169904.tar.gz
chromium_src-88e6b6f3251af7092432c33b7d372a17c7169904.tar.bz2
Pass HttpRequestHeaders to URLRequest::SetExtraRequestHeaders().
BUG=22588 Review URL: http://codereview.chromium.org/1998008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r--net/url_request/url_request.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index a31c6a2..250e4a2 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -328,15 +328,10 @@ class URLRequest {
void SetExtraRequestHeaderByName(const std::string& name,
const std::string& value, bool overwrite);
- // Sets all extra request headers, from a \r\n-delimited string. Any extra
- // request headers set by other methods are overwritten by this method. This
- // method may only be called before Start() is called. It is an error to
- // call it later.
- //
- // Note: \r\n is only used to separate the headers in the string if there
- // are multiple headers. The last header in the string must not be followed
- // by \r\n.
- void SetExtraRequestHeaders(const std::string& headers);
+ // Sets all extra request headers. Any extra request headers set by other
+ // methods are overwritten by this method. This method may only be called
+ // before Start() is called. It is an error to call it later.
+ void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers);
const net::HttpRequestHeaders& extra_request_headers() const {
return extra_request_headers_;