summaryrefslogtreecommitdiffstats
path: root/net/http/http_proxy_client_socket_pool.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 23:39:29 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 23:39:29 +0000
commitda81f13c4d59797f9a83c35a8acc544138df499f (patch)
tree0cafabeb7e54071577bce8a0ef7f2c8e6eceedac /net/http/http_proxy_client_socket_pool.h
parent2428a3e48d06d5ad68581c9e62df30a49bafa872 (diff)
downloadchromium_src-da81f13c4d59797f9a83c35a8acc544138df499f.zip
chromium_src-da81f13c4d59797f9a83c35a8acc544138df499f.tar.gz
chromium_src-da81f13c4d59797f9a83c35a8acc544138df499f.tar.bz2
Send user agent with CONNECT requests.
BUG=52591 TEST=HttpNetworkTransactionTest.BuildTunnelRequest_UserAgent Review URL: http://codereview.chromium.org/3164024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56621 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_proxy_client_socket_pool.h')
-rw-r--r--net/http/http_proxy_client_socket_pool.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_proxy_client_socket_pool.h b/net/http/http_proxy_client_socket_pool.h
index 03b842d..2a18086 100644
--- a/net/http/http_proxy_client_socket_pool.h
+++ b/net/http/http_proxy_client_socket_pool.h
@@ -31,7 +31,9 @@ class TCPSocketParams;
class HttpProxySocketParams : public base::RefCounted<HttpProxySocketParams> {
public:
HttpProxySocketParams(const scoped_refptr<TCPSocketParams>& proxy_server,
- const GURL& request_url, HostPortPair endpoint,
+ const GURL& request_url,
+ const std::string& user_agent,
+ HostPortPair endpoint,
scoped_refptr<HttpNetworkSession> session,
bool tunnel);
@@ -39,6 +41,7 @@ class HttpProxySocketParams : public base::RefCounted<HttpProxySocketParams> {
return tcp_params_;
}
const GURL& request_url() const { return request_url_; }
+ const std::string& user_agent() const { return user_agent_; }
const HostPortPair& endpoint() const { return endpoint_; }
const scoped_refptr<HttpNetworkSession>& session() {
return session_;
@@ -51,6 +54,7 @@ class HttpProxySocketParams : public base::RefCounted<HttpProxySocketParams> {
const scoped_refptr<TCPSocketParams> tcp_params_;
const GURL request_url_;
+ const std::string user_agent_;
const HostPortPair endpoint_;
const scoped_refptr<HttpNetworkSession> session_;
const bool tunnel_;