| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual base::Value* SocketPoolInfoToValue() const = 0; | 82 virtual base::Value* SocketPoolInfoToValue() const = 0; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 // A helper method that uses the passed in proxy information to initialize a | 85 // A helper method that uses the passed in proxy information to initialize a |
| 86 // ClientSocketHandle with the relevant socket pool. Use this method for | 86 // ClientSocketHandle with the relevant socket pool. Use this method for |
| 87 // HTTP/HTTPS requests. |ssl_config_for_origin| is only used if the request | 87 // HTTP/HTTPS requests. |ssl_config_for_origin| is only used if the request |
| 88 // uses SSL and |ssl_config_for_proxy| is used if the proxy server is HTTPS. | 88 // uses SSL and |ssl_config_for_proxy| is used if the proxy server is HTTPS. |
| 89 // |resolution_callback| will be invoked after the the hostname is | 89 // |resolution_callback| will be invoked after the the hostname is |
| 90 // resolved. If |resolution_callback| does not return OK, then the | 90 // resolved. If |resolution_callback| does not return OK, then the |
| 91 // connection will be aborted with that value. | 91 // connection will be aborted with that value. |
| 92 int InitSocketHandleForHttpRequest( | 92 NET_EXPORT int InitSocketHandleForHttpRequest( |
| 93 const GURL& request_url, | 93 const GURL& request_url, |
| 94 const HttpRequestHeaders& request_extra_headers, | 94 const HttpRequestHeaders& request_extra_headers, |
| 95 int request_load_flags, | 95 int request_load_flags, |
| 96 RequestPriority request_priority, | 96 RequestPriority request_priority, |
| 97 HttpNetworkSession* session, | 97 HttpNetworkSession* session, |
| 98 const ProxyInfo& proxy_info, | 98 const ProxyInfo& proxy_info, |
| 99 bool force_spdy_over_ssl, | 99 bool force_spdy_over_ssl, |
| 100 bool want_spdy_over_npn, | 100 bool want_spdy_over_npn, |
| 101 const SSLConfig& ssl_config_for_origin, | 101 const SSLConfig& ssl_config_for_origin, |
| 102 const SSLConfig& ssl_config_for_proxy, | 102 const SSLConfig& ssl_config_for_proxy, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 bool want_spdy_over_npn, | 160 bool want_spdy_over_npn, |
| 161 const SSLConfig& ssl_config_for_origin, | 161 const SSLConfig& ssl_config_for_origin, |
| 162 const SSLConfig& ssl_config_for_proxy, | 162 const SSLConfig& ssl_config_for_proxy, |
| 163 PrivacyMode privacy_mode, | 163 PrivacyMode privacy_mode, |
| 164 const BoundNetLog& net_log, | 164 const BoundNetLog& net_log, |
| 165 int num_preconnect_streams); | 165 int num_preconnect_streams); |
| 166 | 166 |
| 167 } // namespace net | 167 } // namespace net |
| 168 | 168 |
| 169 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 169 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
| OLD | NEW |