| 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" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 TransportSecurityState* transport_security_state, | 66 TransportSecurityState* transport_security_state, |
| 67 CTVerifier* cert_transparency_verifier, | 67 CTVerifier* cert_transparency_verifier, |
| 68 const std::string& ssl_session_cache_shard, | 68 const std::string& ssl_session_cache_shard, |
| 69 ProxyService* proxy_service, | 69 ProxyService* proxy_service, |
| 70 SSLConfigService* ssl_config_service, | 70 SSLConfigService* ssl_config_service, |
| 71 bool enable_ssl_connect_job_waiting, | 71 bool enable_ssl_connect_job_waiting, |
| 72 ProxyDelegate* proxy_delegate, | 72 ProxyDelegate* proxy_delegate, |
| 73 HttpNetworkSession::SocketPoolType pool_type); | 73 HttpNetworkSession::SocketPoolType pool_type); |
| 74 virtual ~ClientSocketPoolManagerImpl(); | 74 virtual ~ClientSocketPoolManagerImpl(); |
| 75 | 75 |
| 76 virtual void FlushSocketPoolsWithError(int error) OVERRIDE; | 76 virtual void FlushSocketPoolsWithError(int error) override; |
| 77 virtual void CloseIdleSockets() OVERRIDE; | 77 virtual void CloseIdleSockets() override; |
| 78 | 78 |
| 79 virtual TransportClientSocketPool* GetTransportSocketPool() OVERRIDE; | 79 virtual TransportClientSocketPool* GetTransportSocketPool() override; |
| 80 | 80 |
| 81 virtual SSLClientSocketPool* GetSSLSocketPool() OVERRIDE; | 81 virtual SSLClientSocketPool* GetSSLSocketPool() override; |
| 82 | 82 |
| 83 virtual SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy( | 83 virtual SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy( |
| 84 const HostPortPair& socks_proxy) OVERRIDE; | 84 const HostPortPair& socks_proxy) override; |
| 85 | 85 |
| 86 virtual HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( | 86 virtual HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( |
| 87 const HostPortPair& http_proxy) OVERRIDE; | 87 const HostPortPair& http_proxy) override; |
| 88 | 88 |
| 89 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 89 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
| 90 const HostPortPair& proxy_server) OVERRIDE; | 90 const HostPortPair& proxy_server) override; |
| 91 | 91 |
| 92 // Creates a Value summary of the state of the socket pools. The caller is | 92 // Creates a Value summary of the state of the socket pools. The caller is |
| 93 // responsible for deleting the returned value. | 93 // responsible for deleting the returned value. |
| 94 virtual base::Value* SocketPoolInfoToValue() const OVERRIDE; | 94 virtual base::Value* SocketPoolInfoToValue() const override; |
| 95 | 95 |
| 96 // CertDatabase::Observer methods: | 96 // CertDatabase::Observer methods: |
| 97 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE; | 97 virtual void OnCertAdded(const X509Certificate* cert) override; |
| 98 virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE; | 98 virtual void OnCACertChanged(const X509Certificate* cert) override; |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> | 101 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> |
| 102 TransportSocketPoolMap; | 102 TransportSocketPoolMap; |
| 103 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> | 103 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> |
| 104 SOCKSSocketPoolMap; | 104 SOCKSSocketPoolMap; |
| 105 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> | 105 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> |
| 106 HTTPProxySocketPoolMap; | 106 HTTPProxySocketPoolMap; |
| 107 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> | 107 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> |
| 108 SSLSocketPoolMap; | 108 SSLSocketPoolMap; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 150 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
| 151 | 151 |
| 152 const ProxyDelegate* proxy_delegate_; | 152 const ProxyDelegate* proxy_delegate_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); | 154 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace net | 157 } // namespace net |
| 158 | 158 |
| 159 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 159 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| OLD | NEW |