summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_session.cc
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-25 20:13:46 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-25 20:13:46 +0000
commit2df19bbe98514cda5a61d0805b62beacd85a85d0 (patch)
tree9624087bcdcf85b4e873ea383f63f3a58ff249ce /net/http/http_network_session.cc
parentf5bbc935e2dbf097974ebe48d3ae7e6ef1220d38 (diff)
downloadchromium_src-2df19bbe98514cda5a61d0805b62beacd85a85d0.zip
chromium_src-2df19bbe98514cda5a61d0805b62beacd85a85d0.tar.gz
chromium_src-2df19bbe98514cda5a61d0805b62beacd85a85d0.tar.bz2
Attempting to re-land CL 3110006 which turned out to have
a memory leak. Add support for speaking SSL to an HTTP Proxy, to HttpProxyClientSocketPool (and friends) More information about an HTTPS Proxy can be found here: http://dev.chromium.org/spdy/spdy-proxy This implementation supports both http:// and https:// requests, as well as support for both Proxy and Server auth. BUG=29625 TEST=none Review URL: http://codereview.chromium.org/3112034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_session.cc')
-rw-r--r--net/http/http_network_session.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index d85a4ef..93340ef 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -46,6 +46,10 @@ HttpNetworkSession::HttpNetworkSession(
tcp_for_http_proxy_pool_histograms_(
new ClientSocketPoolHistograms("TCPforHTTPProxy")),
http_proxy_pool_histograms_(new ClientSocketPoolHistograms("HTTPProxy")),
+ tcp_for_https_proxy_pool_histograms_(
+ new ClientSocketPoolHistograms("TCPforHTTPSProxy")),
+ ssl_for_https_proxy_pool_histograms_(
+ new ClientSocketPoolHistograms("SSLforHTTPSProxy")),
tcp_for_socks_pool_histograms_(
new ClientSocketPoolHistograms("TCPforSOCKS")),
socks_pool_histograms_(new ClientSocketPoolHistograms("SOCK")),
@@ -91,6 +95,16 @@ HttpNetworkSession::GetSocketPoolForHTTPProxy(const HostPortPair& http_proxy) {
g_max_sockets_per_proxy_server, g_max_sockets_per_group,
tcp_for_http_proxy_pool_histograms_, host_resolver_,
socket_factory_, net_log_),
+ new SSLClientSocketPool(
+ g_max_sockets_per_proxy_server, g_max_sockets_per_group,
+ ssl_for_https_proxy_pool_histograms_, host_resolver_,
+ socket_factory_,
+ new TCPClientSocketPool(
+ g_max_sockets_per_proxy_server,
+ g_max_sockets_per_group,
+ tcp_for_https_proxy_pool_histograms_, host_resolver_,
+ socket_factory_, net_log_),
+ NULL, NULL, net_log_),
net_log_)));
return ret.first->second;