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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class ProxyInfo; | 44 class ProxyInfo; |
45 class ProxyService; | 45 class ProxyService; |
46 class SOCKSClientSocketPool; | 46 class SOCKSClientSocketPool; |
47 class SSLClientSocketPool; | 47 class SSLClientSocketPool; |
48 class SSLConfigService; | 48 class SSLConfigService; |
49 class SSLHostInfoFactory; | 49 class SSLHostInfoFactory; |
50 class TransportClientSocketPool; | 50 class TransportClientSocketPool; |
51 | 51 |
52 struct SSLConfig; | 52 struct SSLConfig; |
53 | 53 |
| 54 extern const int kDefaultMaxSocketsPerProxyServer; |
| 55 |
54 namespace internal { | 56 namespace internal { |
55 | 57 |
56 // A helper class for auto-deleting Values in the destructor. | 58 // A helper class for auto-deleting Values in the destructor. |
57 template <typename Key, typename Value> | 59 template <typename Key, typename Value> |
58 class OwnedPoolMap : public std::map<Key, Value> { | 60 class OwnedPoolMap : public std::map<Key, Value> { |
59 public: | 61 public: |
60 OwnedPoolMap() { | 62 OwnedPoolMap() { |
61 COMPILE_ASSERT(base::is_pointer<Value>::value, | 63 COMPILE_ASSERT(base::is_pointer<Value>::value, |
62 value_must_be_a_pointer); | 64 value_must_be_a_pointer); |
63 } | 65 } |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 214 |
213 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 215 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
214 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 216 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
215 | 217 |
216 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManager); | 218 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManager); |
217 }; | 219 }; |
218 | 220 |
219 } // namespace net | 221 } // namespace net |
220 | 222 |
221 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 223 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
OLD | NEW |