| 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 // ClientSocketPoolManager manages access to all ClientSocketPools. It's a | 5 // ClientSocketPoolManager manages access to all ClientSocketPools. It's a |
| 6 // simple container for all of them. Most importantly, it handles the lifetime | 6 // simple container for all of them. Most importantly, it handles the lifetime |
| 7 // and destruction order properly. | 7 // and destruction order properly. |
| 8 | 8 |
| 9 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 9 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
| 10 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 10 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 const SSLConfig& ssl_config_for_origin, | 165 const SSLConfig& ssl_config_for_origin, |
| 166 const SSLConfig& ssl_config_for_proxy, | 166 const SSLConfig& ssl_config_for_proxy, |
| 167 const BoundNetLog& net_log, | 167 const BoundNetLog& net_log, |
| 168 int num_preconnect_streams); | 168 int num_preconnect_streams); |
| 169 | 169 |
| 170 // Creates a Value summary of the state of the socket pools. The caller is | 170 // Creates a Value summary of the state of the socket pools. The caller is |
| 171 // responsible for deleting the returned value. | 171 // responsible for deleting the returned value. |
| 172 base::Value* SocketPoolInfoToValue() const; | 172 base::Value* SocketPoolInfoToValue() const; |
| 173 | 173 |
| 174 // CertDatabase::Observer methods: | 174 // CertDatabase::Observer methods: |
| 175 virtual void OnUserCertAdded(const X509Certificate* cert); | 175 virtual void OnUserCertAdded(const X509Certificate* cert) OVERRIDE; |
| 176 virtual void OnCertTrustChanged(const X509Certificate* cert); | 176 virtual void OnCertTrustChanged(const X509Certificate* cert) OVERRIDE; |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 friend class HttpNetworkSessionPeer; | 179 friend class HttpNetworkSessionPeer; |
| 180 | 180 |
| 181 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> | 181 typedef internal::OwnedPoolMap<HostPortPair, TransportClientSocketPool*> |
| 182 TransportSocketPoolMap; | 182 TransportSocketPoolMap; |
| 183 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> | 183 typedef internal::OwnedPoolMap<HostPortPair, SOCKSClientSocketPool*> |
| 184 SOCKSSocketPoolMap; | 184 SOCKSSocketPoolMap; |
| 185 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> | 185 typedef internal::OwnedPoolMap<HostPortPair, HttpProxyClientSocketPool*> |
| 186 HTTPProxySocketPoolMap; | 186 HTTPProxySocketPoolMap; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 227 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
| 228 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 228 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
| 229 | 229 |
| 230 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManager); | 230 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManager); |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 } // namespace net | 233 } // namespace net |
| 234 | 234 |
| 235 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 235 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
| OLD | NEW |