| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 84 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
| 85 const HostPortPair& proxy_server) OVERRIDE; | 85 const HostPortPair& proxy_server) OVERRIDE; |
| 86 | 86 |
| 87 // Creates a Value summary of the state of the socket pools. The caller is | 87 // Creates a Value summary of the state of the socket pools. The caller is |
| 88 // responsible for deleting the returned value. | 88 // responsible for deleting the returned value. |
| 89 virtual base::Value* SocketPoolInfoToValue() const OVERRIDE; | 89 virtual base::Value* SocketPoolInfoToValue() const OVERRIDE; |
| 90 | 90 |
| 91 // CertDatabase::Observer methods: | 91 // CertDatabase::Observer methods: |
| 92 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE; | 92 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE; |
| 93 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; | 93 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; |
| 94 virtual void OnDatabaseUpdated() OVERRIDE; |
| 94 | 95 |
| 95 private: | 96 private: |
| 96 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> | 97 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> |
| 97 TransportSocketPoolMap; | 98 TransportSocketPoolMap; |
| 98 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> | 99 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> |
| 99 SOCKSSocketPoolMap; | 100 SOCKSSocketPoolMap; |
| 100 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> | 101 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> |
| 101 HTTPProxySocketPoolMap; | 102 HTTPProxySocketPoolMap; |
| 102 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> | 103 typedef internal::OwnedPoolMap<HostPortPair, SSLClientSocketPool*> |
| 103 SSLSocketPoolMap; | 104 SSLSocketPoolMap; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 142 |
| 142 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 143 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
| 143 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 144 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); | 146 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace net | 149 } // namespace net |
| 149 | 150 |
| 150 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 151 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
| OLD | NEW |