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

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

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed nits Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 static void set_max_sockets_per_group( 60 static void set_max_sockets_per_group(
61 HttpNetworkSession::SocketPoolType pool_type, 61 HttpNetworkSession::SocketPoolType pool_type,
62 int socket_count); 62 int socket_count);
63 63
64 static int max_sockets_per_proxy_server( 64 static int max_sockets_per_proxy_server(
65 HttpNetworkSession::SocketPoolType pool_type); 65 HttpNetworkSession::SocketPoolType pool_type);
66 static void set_max_sockets_per_proxy_server( 66 static void set_max_sockets_per_proxy_server(
67 HttpNetworkSession::SocketPoolType pool_type, 67 HttpNetworkSession::SocketPoolType pool_type,
68 int socket_count); 68 int socket_count);
69 69
70 virtual void FlushSocketPools() = 0; 70 virtual void FlushSocketPoolsWithError(int error) = 0;
71 virtual void CloseIdleSockets() = 0; 71 virtual void CloseIdleSockets() = 0;
72 virtual TransportClientSocketPool* GetTransportSocketPool() = 0; 72 virtual TransportClientSocketPool* GetTransportSocketPool() = 0;
73 virtual SSLClientSocketPool* GetSSLSocketPool() = 0; 73 virtual SSLClientSocketPool* GetSSLSocketPool() = 0;
74 virtual SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy( 74 virtual SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy(
75 const HostPortPair& socks_proxy) = 0; 75 const HostPortPair& socks_proxy) = 0;
76 virtual HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( 76 virtual HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy(
77 const HostPortPair& http_proxy) = 0; 77 const HostPortPair& http_proxy) = 0;
78 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( 78 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy(
79 const HostPortPair& proxy_server) = 0; 79 const HostPortPair& proxy_server) = 0;
80 // Creates a Value summary of the state of the socket pools. The caller is 80 // Creates a Value summary of the state of the socket pools. The caller is
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool force_spdy_over_ssl, 131 bool force_spdy_over_ssl,
132 bool want_spdy_over_npn, 132 bool want_spdy_over_npn,
133 const SSLConfig& ssl_config_for_origin, 133 const SSLConfig& ssl_config_for_origin,
134 const SSLConfig& ssl_config_for_proxy, 134 const SSLConfig& ssl_config_for_proxy,
135 const BoundNetLog& net_log, 135 const BoundNetLog& net_log,
136 int num_preconnect_streams); 136 int num_preconnect_streams);
137 137
138 } // namespace net 138 } // namespace net
139 139
140 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ 140 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/client_socket_pool_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698