| 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 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 14 #include "base/template_util.h" | 15 #include "base/template_util.h" |
| 15 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
| 16 #include "net/cert/cert_database.h" | 17 #include "net/cert/cert_database.h" |
| 17 #include "net/http/http_network_session.h" | 18 #include "net/http/http_network_session.h" |
| 18 #include "net/socket/client_socket_pool_histograms.h" | 19 #include "net/socket/client_socket_pool_histograms.h" |
| 19 #include "net/socket/client_socket_pool_manager.h" | 20 #include "net/socket/client_socket_pool_manager.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ClientSocketFactory* socket_factory, | 62 ClientSocketFactory* socket_factory, |
| 62 HostResolver* host_resolver, | 63 HostResolver* host_resolver, |
| 63 CertVerifier* cert_verifier, | 64 CertVerifier* cert_verifier, |
| 64 ChannelIDService* channel_id_service, | 65 ChannelIDService* channel_id_service, |
| 65 TransportSecurityState* transport_security_state, | 66 TransportSecurityState* transport_security_state, |
| 66 CTVerifier* cert_transparency_verifier, | 67 CTVerifier* cert_transparency_verifier, |
| 67 const std::string& ssl_session_cache_shard, | 68 const std::string& ssl_session_cache_shard, |
| 68 ProxyService* proxy_service, | 69 ProxyService* proxy_service, |
| 69 SSLConfigService* ssl_config_service, | 70 SSLConfigService* ssl_config_service, |
| 70 bool enable_ssl_connect_job_waiting, | 71 bool enable_ssl_connect_job_waiting, |
| 72 const base::Callback<void(const HostPortPair&, |
| 73 HttpRequestHeaders*)>& |
| 74 before_proxy_tunnel_request_callback, |
| 71 HttpNetworkSession::SocketPoolType pool_type); | 75 HttpNetworkSession::SocketPoolType pool_type); |
| 72 virtual ~ClientSocketPoolManagerImpl(); | 76 virtual ~ClientSocketPoolManagerImpl(); |
| 73 | 77 |
| 74 virtual void FlushSocketPoolsWithError(int error) OVERRIDE; | 78 virtual void FlushSocketPoolsWithError(int error) OVERRIDE; |
| 75 virtual void CloseIdleSockets() OVERRIDE; | 79 virtual void CloseIdleSockets() OVERRIDE; |
| 76 | 80 |
| 77 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; | 81 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; |
| 78 | 82 |
| 79 virtual SSLClientSocketPool* GetSSLSocketPool() OVERRIDE; | 83 virtual SSLClientSocketPool* GetSSLSocketPool() OVERRIDE; |
| 80 | 84 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 144 |
| 141 ClientSocketPoolHistograms ssl_for_https_proxy_pool_histograms_; | 145 ClientSocketPoolHistograms ssl_for_https_proxy_pool_histograms_; |
| 142 SSLSocketPoolMap ssl_socket_pools_for_https_proxies_; | 146 SSLSocketPoolMap ssl_socket_pools_for_https_proxies_; |
| 143 | 147 |
| 144 ClientSocketPoolHistograms http_proxy_pool_histograms_; | 148 ClientSocketPoolHistograms http_proxy_pool_histograms_; |
| 145 HTTPProxySocketPoolMap http_proxy_socket_pools_; | 149 HTTPProxySocketPoolMap http_proxy_socket_pools_; |
| 146 | 150 |
| 147 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 151 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
| 148 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 152 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
| 149 | 153 |
| 154 base::Callback<void(const HostPortPair&, HttpRequestHeaders*)> |
| 155 before_proxy_tunnel_request_callback_; |
| 156 |
| 150 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); | 157 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); |
| 151 }; | 158 }; |
| 152 | 159 |
| 153 } // namespace net | 160 } // namespace net |
| 154 | 161 |
| 155 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 162 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| OLD | NEW |