| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 : transport_security_state_(new TransportSecurityState), | 83 : transport_security_state_(new TransportSecurityState), |
| 84 proxy_service_(ProxyService::CreateDirect()), | 84 proxy_service_(ProxyService::CreateDirect()), |
| 85 ssl_config_service_(new SSLConfigServiceDefaults), | 85 ssl_config_service_(new SSLConfigServiceDefaults), |
| 86 http_auth_handler_factory_( | 86 http_auth_handler_factory_( |
| 87 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), | 87 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), |
| 88 session_(CreateNetworkSession()), | 88 session_(CreateNetworkSession()), |
| 89 direct_transport_socket_params_( | 89 direct_transport_socket_params_( |
| 90 new TransportSocketParams(HostPortPair("host", 443), | 90 new TransportSocketParams(HostPortPair("host", 443), |
| 91 false, | 91 false, |
| 92 false, | 92 false, |
| 93 OnHostResolutionCallback())), | 93 OnHostResolutionCallback(), |
| 94 AUTO_CONNECT_USE_DEFAULT)), |
| 94 transport_histograms_("MockTCP"), | 95 transport_histograms_("MockTCP"), |
| 95 transport_socket_pool_(kMaxSockets, | 96 transport_socket_pool_(kMaxSockets, |
| 96 kMaxSocketsPerGroup, | 97 kMaxSocketsPerGroup, |
| 97 &transport_histograms_, | 98 &transport_histograms_, |
| 98 &socket_factory_), | 99 &socket_factory_), |
| 99 proxy_transport_socket_params_( | 100 proxy_transport_socket_params_( |
| 100 new TransportSocketParams(HostPortPair("proxy", 443), | 101 new TransportSocketParams(HostPortPair("proxy", 443), |
| 101 false, | 102 false, |
| 102 false, | 103 false, |
| 103 OnHostResolutionCallback())), | 104 OnHostResolutionCallback(), |
| 105 AUTO_CONNECT_USE_DEFAULT)), |
| 104 socks_socket_params_( | 106 socks_socket_params_( |
| 105 new SOCKSSocketParams(proxy_transport_socket_params_, | 107 new SOCKSSocketParams(proxy_transport_socket_params_, |
| 106 true, | 108 true, |
| 107 HostPortPair("sockshost", 443))), | 109 HostPortPair("sockshost", 443))), |
| 108 socks_histograms_("MockSOCKS"), | 110 socks_histograms_("MockSOCKS"), |
| 109 socks_socket_pool_(kMaxSockets, | 111 socks_socket_pool_(kMaxSockets, |
| 110 kMaxSocketsPerGroup, | 112 kMaxSocketsPerGroup, |
| 111 &socks_histograms_, | 113 &socks_histograms_, |
| 112 &transport_socket_pool_), | 114 &transport_socket_pool_), |
| 113 http_proxy_socket_params_( | 115 http_proxy_socket_params_( |
| (...skipping 1276 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 |