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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const HostPortPair& host_port_pair, | 140 const HostPortPair& host_port_pair, |
141 HttpNetworkSession* session, | 141 HttpNetworkSession* session, |
142 const ProxyInfo& proxy_info, | 142 const ProxyInfo& proxy_info, |
143 const SSLConfig& ssl_config_for_origin, | 143 const SSLConfig& ssl_config_for_origin, |
144 const SSLConfig& ssl_config_for_proxy, | 144 const SSLConfig& ssl_config_for_proxy, |
145 PrivacyMode privacy_mode, | 145 PrivacyMode privacy_mode, |
146 const BoundNetLog& net_log, | 146 const BoundNetLog& net_log, |
147 ClientSocketHandle* socket_handle, | 147 ClientSocketHandle* socket_handle, |
148 const CompletionCallback& callback); | 148 const CompletionCallback& callback); |
149 | 149 |
| 150 // A helper method that uses the passed in proxy information to initialize a |
| 151 // ClientSocketHandle with the relevant socket pool. Use this method for |
| 152 // a raw socket connection with TLS negotiation to a host-port pair (that needs |
| 153 // to tunnel through the proxies). |
| 154 NET_EXPORT int InitSocketHandleForTlsConnect( |
| 155 const HostPortPair& host_port_pair, |
| 156 HttpNetworkSession* session, |
| 157 const ProxyInfo& proxy_info, |
| 158 const SSLConfig& ssl_config_for_origin, |
| 159 const SSLConfig& ssl_config_for_proxy, |
| 160 PrivacyMode privacy_mode, |
| 161 const BoundNetLog& net_log, |
| 162 ClientSocketHandle* socket_handle, |
| 163 const CompletionCallback& callback); |
| 164 |
150 // Similar to InitSocketHandleForHttpRequest except that it initiates the | 165 // Similar to InitSocketHandleForHttpRequest except that it initiates the |
151 // desired number of preconnect streams from the relevant socket pool. | 166 // desired number of preconnect streams from the relevant socket pool. |
152 int PreconnectSocketsForHttpRequest( | 167 int PreconnectSocketsForHttpRequest( |
153 const GURL& request_url, | 168 const GURL& request_url, |
154 const HttpRequestHeaders& request_extra_headers, | 169 const HttpRequestHeaders& request_extra_headers, |
155 int request_load_flags, | 170 int request_load_flags, |
156 RequestPriority request_priority, | 171 RequestPriority request_priority, |
157 HttpNetworkSession* session, | 172 HttpNetworkSession* session, |
158 const ProxyInfo& proxy_info, | 173 const ProxyInfo& proxy_info, |
159 bool force_spdy_over_ssl, | 174 bool force_spdy_over_ssl, |
160 bool want_spdy_over_npn, | 175 bool want_spdy_over_npn, |
161 const SSLConfig& ssl_config_for_origin, | 176 const SSLConfig& ssl_config_for_origin, |
162 const SSLConfig& ssl_config_for_proxy, | 177 const SSLConfig& ssl_config_for_proxy, |
163 PrivacyMode privacy_mode, | 178 PrivacyMode privacy_mode, |
164 const BoundNetLog& net_log, | 179 const BoundNetLog& net_log, |
165 int num_preconnect_streams); | 180 int num_preconnect_streams); |
166 | 181 |
167 } // namespace net | 182 } // namespace net |
168 | 183 |
169 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 184 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
OLD | NEW |