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

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

Issue 7326011: Revert 91842 - 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: 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
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
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_
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