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 | |
56 namespace internal { | 54 namespace internal { |
57 | 55 |
58 // A helper class for auto-deleting Values in the destructor. | 56 // A helper class for auto-deleting Values in the destructor. |
59 template <typename Key, typename Value> | 57 template <typename Key, typename Value> |
60 class OwnedPoolMap : public std::map<Key, Value> { | 58 class OwnedPoolMap : public std::map<Key, Value> { |
61 public: | 59 public: |
62 OwnedPoolMap() { | 60 OwnedPoolMap() { |
63 COMPILE_ASSERT(base::is_pointer<Value>::value, | 61 COMPILE_ASSERT(base::is_pointer<Value>::value, |
64 value_must_be_a_pointer); | 62 value_must_be_a_pointer); |
65 } | 63 } |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 212 |
215 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; | 213 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; |
216 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 214 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
217 | 215 |
218 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManager); | 216 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManager); |
219 }; | 217 }; |
220 | 218 |
221 } // namespace net | 219 } // namespace net |
222 | 220 |
223 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 221 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
OLD | NEW |