| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/template_util.h" | 14 #include "base/template_util.h" |
| 15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
| 16 #include "net/cert/cert_database.h" | 16 #include "net/cert/cert_database.h" |
| 17 #include "net/http/http_network_session.h" | 17 #include "net/http/http_network_session.h" |
| 18 #include "net/socket/client_socket_pool_histograms.h" | 18 #include "net/socket/client_socket_pool_histograms.h" |
| 19 #include "net/socket/client_socket_pool_manager.h" | 19 #include "net/socket/client_socket_pool_manager.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 class CertVerifier; | 23 class CertVerifier; |
| 24 class ChannelIDService; | 24 class ChannelIDService; |
| 25 class ClientSocketFactory; | 25 class ClientSocketFactory; |
| 26 class ClientSocketPoolHistograms; | 26 class ClientSocketPoolHistograms; |
| 27 class CTVerifier; | 27 class CTVerifier; |
| 28 class HttpProxyClientSocketPool; | 28 class HttpProxyClientSocketPool; |
| 29 class HttpProxyTunnelDelegate; |
| 29 class HostResolver; | 30 class HostResolver; |
| 30 class NetLog; | 31 class NetLog; |
| 31 class ProxyService; | 32 class ProxyService; |
| 32 class SOCKSClientSocketPool; | 33 class SOCKSClientSocketPool; |
| 33 class SSLClientSocketPool; | 34 class SSLClientSocketPool; |
| 34 class SSLConfigService; | 35 class SSLConfigService; |
| 35 class TransportClientSocketPool; | 36 class TransportClientSocketPool; |
| 36 class TransportSecurityState; | 37 class TransportSecurityState; |
| 37 | 38 |
| 38 namespace internal { | 39 namespace internal { |
| (...skipping 22 matching lines...) Expand all 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 HttpProxyTunnelDelegate* |
| 73 http_proxy_tunnel_delegate, |
| 71 HttpNetworkSession::SocketPoolType pool_type); | 74 HttpNetworkSession::SocketPoolType pool_type); |
| 72 virtual ~ClientSocketPoolManagerImpl(); | 75 virtual ~ClientSocketPoolManagerImpl(); |
| 73 | 76 |
| 74 virtual void FlushSocketPoolsWithError(int error) OVERRIDE; | 77 virtual void FlushSocketPoolsWithError(int error) OVERRIDE; |
| 75 virtual void CloseIdleSockets() OVERRIDE; | 78 virtual void CloseIdleSockets() OVERRIDE; |
| 76 | 79 |
| 77 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; | 80 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; |
| 78 | 81 |
| 79 virtual SSLClientSocketPool* GetSSLSocketPool() OVERRIDE; | 82 virtual SSLClientSocketPool* GetSSLSocketPool() OVERRIDE; |
| 80 | 83 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 143 |
| 141 ClientSocketPoolHistograms ssl_for_https_proxy_pool_histograms_; | 144 ClientSocketPoolHistograms ssl_for_https_proxy_pool_histograms_; |
| 142 SSLSocketPoolMap ssl_socket_pools_for_https_proxies_; | 145 SSLSocketPoolMap ssl_socket_pools_for_https_proxies_; |
| 143 | 146 |
| 144 ClientSocketPoolHistograms http_proxy_pool_histograms_; | 147 ClientSocketPoolHistograms http_proxy_pool_histograms_; |
| 145 HTTPProxySocketPoolMap http_proxy_socket_pools_; | 148 HTTPProxySocketPoolMap http_proxy_socket_pools_; |
| 146 | 149 |
| 147 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 150 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
| 148 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 151 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
| 149 | 152 |
| 153 HttpProxyTunnelDelegate* http_proxy_tunnel_delegate_; |
| 154 |
| 150 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); | 155 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); |
| 151 }; | 156 }; |
| 152 | 157 |
| 153 } // namespace net | 158 } // namespace net |
| 154 | 159 |
| 155 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 160 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| OLD | NEW |