| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |