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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int socket_count); | 71 int socket_count); |
72 | 72 |
73 static int max_sockets_per_proxy_server( | 73 static int max_sockets_per_proxy_server( |
74 HttpNetworkSession::SocketPoolType pool_type); | 74 HttpNetworkSession::SocketPoolType pool_type); |
75 static void set_max_sockets_per_proxy_server( | 75 static void set_max_sockets_per_proxy_server( |
76 HttpNetworkSession::SocketPoolType pool_type, | 76 HttpNetworkSession::SocketPoolType pool_type, |
77 int socket_count); | 77 int socket_count); |
78 | 78 |
79 virtual void FlushSocketPoolsWithError(int error) = 0; | 79 virtual void FlushSocketPoolsWithError(int error) = 0; |
80 virtual void CloseIdleSockets() = 0; | 80 virtual void CloseIdleSockets() = 0; |
| 81 virtual void CloseIdleSocketsInGroup(const std::string& group_name) = 0; |
81 virtual TransportClientSocketPool* GetTransportSocketPool() = 0; | 82 virtual TransportClientSocketPool* GetTransportSocketPool() = 0; |
82 virtual SSLClientSocketPool* GetSSLSocketPool() = 0; | 83 virtual SSLClientSocketPool* GetSSLSocketPool() = 0; |
83 virtual SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy( | 84 virtual SOCKSClientSocketPool* GetSocketPoolForSOCKSProxy( |
84 const HostPortPair& socks_proxy) = 0; | 85 const HostPortPair& socks_proxy) = 0; |
85 virtual HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( | 86 virtual HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( |
86 const HostPortPair& http_proxy) = 0; | 87 const HostPortPair& http_proxy) = 0; |
87 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 88 virtual SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
88 const HostPortPair& proxy_server) = 0; | 89 const HostPortPair& proxy_server) = 0; |
89 // Creates a Value summary of the state of the socket pools. | 90 // Creates a Value summary of the state of the socket pools. |
90 virtual std::unique_ptr<base::Value> SocketPoolInfoToValue() const = 0; | 91 virtual std::unique_ptr<base::Value> SocketPoolInfoToValue() const = 0; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool expect_spdy, | 192 bool expect_spdy, |
192 const SSLConfig& ssl_config_for_origin, | 193 const SSLConfig& ssl_config_for_origin, |
193 const SSLConfig& ssl_config_for_proxy, | 194 const SSLConfig& ssl_config_for_proxy, |
194 PrivacyMode privacy_mode, | 195 PrivacyMode privacy_mode, |
195 const NetLogWithSource& net_log, | 196 const NetLogWithSource& net_log, |
196 int num_preconnect_streams); | 197 int num_preconnect_streams); |
197 | 198 |
198 } // namespace net | 199 } // namespace net |
199 | 200 |
200 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 201 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
OLD | NEW |