| 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/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 NULL) { | 123 NULL) { |
| 124 scoped_refptr<SSLConfigService> ssl_config_service( | 124 scoped_refptr<SSLConfigService> ssl_config_service( |
| 125 new SSLConfigServiceDefaults); | 125 new SSLConfigServiceDefaults); |
| 126 ssl_config_service->GetSSLConfig(&ssl_config_); | 126 ssl_config_service->GetSSLConfig(&ssl_config_); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { | 129 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { |
| 130 pool_.reset(new SSLClientSocketPool( | 130 pool_.reset(new SSLClientSocketPool( |
| 131 kMaxSockets, kMaxSocketsPerGroup, NULL /* cert_verifier */, | 131 kMaxSockets, kMaxSocketsPerGroup, NULL /* cert_verifier */, |
| 132 NULL /* channel_id_service */, NULL /* transport_security_state */, | 132 NULL /* channel_id_service */, NULL /* transport_security_state */, |
| 133 NULL /* cert_transparency_verifier */, NULL /* cert_policy_enforcer */, | 133 NULL /* cert_transparency_verifier */, NULL /* ct_policy_enforcer */, |
| 134 std::string() /* ssl_session_cache_shard */, &socket_factory_, | 134 std::string() /* ssl_session_cache_shard */, &socket_factory_, |
| 135 transport_pool ? &transport_socket_pool_ : NULL, | 135 transport_pool ? &transport_socket_pool_ : NULL, |
| 136 socks_pool ? &socks_socket_pool_ : NULL, | 136 socks_pool ? &socks_socket_pool_ : NULL, |
| 137 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, NULL, NULL)); | 137 http_proxy_pool ? &http_proxy_socket_pool_ : NULL, NULL, NULL)); |
| 138 } | 138 } |
| 139 | 139 |
| 140 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, | 140 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, |
| 141 bool expect_spdy) { | 141 bool expect_spdy) { |
| 142 return make_scoped_refptr(new SSLSocketParams( | 142 return make_scoped_refptr(new SSLSocketParams( |
| 143 proxy == ProxyServer::SCHEME_DIRECT ? direct_transport_socket_params_ | 143 proxy == ProxyServer::SCHEME_DIRECT ? direct_transport_socket_params_ |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 ssl.channel_id_sent = true; | 912 ssl.channel_id_sent = true; |
| 913 ssl.SetNextProto(GetParam()); | 913 ssl.SetNextProto(GetParam()); |
| 914 TestIPPoolingDisabled(&ssl); | 914 TestIPPoolingDisabled(&ssl); |
| 915 } | 915 } |
| 916 | 916 |
| 917 // It would be nice to also test the timeouts in SSLClientSocketPool. | 917 // It would be nice to also test the timeouts in SSLClientSocketPool. |
| 918 | 918 |
| 919 } // namespace | 919 } // namespace |
| 920 | 920 |
| 921 } // namespace net | 921 } // namespace net |
| OLD | NEW |