OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 &transport_socket_pool_), | 112 &transport_socket_pool_), |
113 http_proxy_socket_params_( | 113 http_proxy_socket_params_( |
114 new HttpProxySocketParams(proxy_transport_socket_params_, | 114 new HttpProxySocketParams(proxy_transport_socket_params_, |
115 NULL, | 115 NULL, |
116 GURL("http://host"), | 116 GURL("http://host"), |
117 std::string(), | 117 std::string(), |
118 HostPortPair("host", 80), | 118 HostPortPair("host", 80), |
119 session_->http_auth_cache(), | 119 session_->http_auth_cache(), |
120 session_->http_auth_handler_factory(), | 120 session_->http_auth_handler_factory(), |
121 session_->spdy_session_pool(), | 121 session_->spdy_session_pool(), |
122 true)), | 122 true, |
| 123 NULL)), |
123 http_proxy_histograms_("MockHttpProxy"), | 124 http_proxy_histograms_("MockHttpProxy"), |
124 http_proxy_socket_pool_(kMaxSockets, | 125 http_proxy_socket_pool_(kMaxSockets, |
125 kMaxSocketsPerGroup, | 126 kMaxSocketsPerGroup, |
126 &http_proxy_histograms_, | 127 &http_proxy_histograms_, |
127 &host_resolver_, | 128 &host_resolver_, |
128 &transport_socket_pool_, | 129 &transport_socket_pool_, |
129 NULL, | 130 NULL, |
| 131 NULL, |
130 NULL), | 132 NULL), |
131 enable_ssl_connect_job_waiting_(false) { | 133 enable_ssl_connect_job_waiting_(false) { |
132 scoped_refptr<SSLConfigService> ssl_config_service( | 134 scoped_refptr<SSLConfigService> ssl_config_service( |
133 new SSLConfigServiceDefaults); | 135 new SSLConfigServiceDefaults); |
134 ssl_config_service->GetSSLConfig(&ssl_config_); | 136 ssl_config_service->GetSSLConfig(&ssl_config_); |
135 } | 137 } |
136 | 138 |
137 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { | 139 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { |
138 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); | 140 ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest")); |
139 pool_.reset(new SSLClientSocketPool( | 141 pool_.reset(new SSLClientSocketPool( |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 ssl.channel_id_sent = true; | 1392 ssl.channel_id_sent = true; |
1391 ssl.SetNextProto(GetParam()); | 1393 ssl.SetNextProto(GetParam()); |
1392 TestIPPoolingDisabled(&ssl); | 1394 TestIPPoolingDisabled(&ssl); |
1393 } | 1395 } |
1394 | 1396 |
1395 // It would be nice to also test the timeouts in SSLClientSocketPool. | 1397 // It would be nice to also test the timeouts in SSLClientSocketPool. |
1396 | 1398 |
1397 } // namespace | 1399 } // namespace |
1398 | 1400 |
1399 } // namespace net | 1401 } // namespace net |
OLD | NEW |