Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: net/socket/client_socket_pool_manager.h

Issue 7283018: Introduce a policy to control the maximal number of connections per proxy server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the bots happy with the policy template. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | net/socket/client_socket_pool_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | net/socket/client_socket_pool_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698