| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/template_util.h" | 15 #include "base/template_util.h" |
| 16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
| 17 #include "net/base/cert_database.h" | 17 #include "net/base/cert_database.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 ClientSocketFactory; | 24 class ClientSocketFactory; |
| 25 class ClientSocketPoolHistograms; | 25 class ClientSocketPoolHistograms; |
| 26 class DnsCertProvenanceChecker; | |
| 27 class HttpProxyClientSocketPool; | 26 class HttpProxyClientSocketPool; |
| 28 class HostResolver; | 27 class HostResolver; |
| 29 class NetLog; | 28 class NetLog; |
| 30 class OriginBoundCertService; | 29 class OriginBoundCertService; |
| 31 class ProxyService; | 30 class ProxyService; |
| 32 class SOCKSClientSocketPool; | 31 class SOCKSClientSocketPool; |
| 33 class SSLClientSocketPool; | 32 class SSLClientSocketPool; |
| 34 class SSLConfigService; | 33 class SSLConfigService; |
| 35 class SSLHostInfoFactory; | 34 class SSLHostInfoFactory; |
| 36 class TransportClientSocketPool; | 35 class TransportClientSocketPool; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 57 class ClientSocketPoolManagerImpl : public base::NonThreadSafe, | 56 class ClientSocketPoolManagerImpl : public base::NonThreadSafe, |
| 58 public ClientSocketPoolManager, | 57 public ClientSocketPoolManager, |
| 59 public CertDatabase::Observer { | 58 public CertDatabase::Observer { |
| 60 public: | 59 public: |
| 61 ClientSocketPoolManagerImpl(NetLog* net_log, | 60 ClientSocketPoolManagerImpl(NetLog* net_log, |
| 62 ClientSocketFactory* socket_factory, | 61 ClientSocketFactory* socket_factory, |
| 63 HostResolver* host_resolver, | 62 HostResolver* host_resolver, |
| 64 CertVerifier* cert_verifier, | 63 CertVerifier* cert_verifier, |
| 65 OriginBoundCertService* origin_bound_cert_service, | 64 OriginBoundCertService* origin_bound_cert_service, |
| 66 TransportSecurityState* transport_security_state, | 65 TransportSecurityState* transport_security_state, |
| 67 DnsCertProvenanceChecker* dns_cert_checker, | |
| 68 SSLHostInfoFactory* ssl_host_info_factory, | 66 SSLHostInfoFactory* ssl_host_info_factory, |
| 69 const std::string& ssl_session_cache_shard, | 67 const std::string& ssl_session_cache_shard, |
| 70 ProxyService* proxy_service, | 68 ProxyService* proxy_service, |
| 71 SSLConfigService* ssl_config_service); | 69 SSLConfigService* ssl_config_service); |
| 72 virtual ~ClientSocketPoolManagerImpl(); | 70 virtual ~ClientSocketPoolManagerImpl(); |
| 73 | 71 |
| 74 virtual void FlushSocketPools() OVERRIDE; | 72 virtual void FlushSocketPools() OVERRIDE; |
| 75 virtual void CloseIdleSockets() OVERRIDE; | 73 virtual void CloseIdleSockets() OVERRIDE; |
| 76 | 74 |
| 77 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; | 75 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 104 HTTPProxySocketPoolMap; | 102 HTTPProxySocketPoolMap; |
| 105 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> | 103 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> |
| 106 SSLSocketPoolMap; | 104 SSLSocketPoolMap; |
| 107 | 105 |
| 108 NetLog* const net_log_; | 106 NetLog* const net_log_; |
| 109 ClientSocketFactory* const socket_factory_; | 107 ClientSocketFactory* const socket_factory_; |
| 110 HostResolver* const host_resolver_; | 108 HostResolver* const host_resolver_; |
| 111 CertVerifier* const cert_verifier_; | 109 CertVerifier* const cert_verifier_; |
| 112 OriginBoundCertService* const origin_bound_cert_service_; | 110 OriginBoundCertService* const origin_bound_cert_service_; |
| 113 TransportSecurityState* const transport_security_state_; | 111 TransportSecurityState* const transport_security_state_; |
| 114 DnsCertProvenanceChecker* const dns_cert_checker_; | |
| 115 SSLHostInfoFactory* const ssl_host_info_factory_; | 112 SSLHostInfoFactory* const ssl_host_info_factory_; |
| 116 const std::string ssl_session_cache_shard_; | 113 const std::string ssl_session_cache_shard_; |
| 117 ProxyService* const proxy_service_; | 114 ProxyService* const proxy_service_; |
| 118 const scoped_refptr<SSLConfigService> ssl_config_service_; | 115 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 119 | 116 |
| 120 // Note: this ordering is important. | 117 // Note: this ordering is important. |
| 121 | 118 |
| 122 ClientSocketPoolHistograms transport_pool_histograms_; | 119 ClientSocketPoolHistograms transport_pool_histograms_; |
| 123 scoped_ptr<TransportClientSocketPool> transport_socket_pool_; | 120 scoped_ptr<TransportClientSocketPool> transport_socket_pool_; |
| 124 | 121 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 145 | 142 |
| 146 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 143 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
| 147 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 144 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
| 148 | 145 |
| 149 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); | 146 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); |
| 150 }; | 147 }; |
| 151 | 148 |
| 152 } // namespace net | 149 } // namespace net |
| 153 | 150 |
| 154 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 151 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| OLD | NEW |