OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 int request_load_flags, | 81 int request_load_flags, |
82 RequestPriority request_priority, | 82 RequestPriority request_priority, |
83 HttpNetworkSession* session, | 83 HttpNetworkSession* session, |
84 const ProxyInfo& proxy_info, | 84 const ProxyInfo& proxy_info, |
85 bool force_spdy_over_ssl, | 85 bool force_spdy_over_ssl, |
86 bool want_spdy_over_npn, | 86 bool want_spdy_over_npn, |
87 const SSLConfig& ssl_config_for_origin, | 87 const SSLConfig& ssl_config_for_origin, |
88 const SSLConfig& ssl_config_for_proxy, | 88 const SSLConfig& ssl_config_for_proxy, |
89 const BoundNetLog& net_log, | 89 const BoundNetLog& net_log, |
90 ClientSocketHandle* socket_handle, | 90 ClientSocketHandle* socket_handle, |
91 OldCompletionCallback* callback); | 91 const CompletionCallback& callback); |
92 | 92 |
93 // A helper method that uses the passed in proxy information to initialize a | 93 // A helper method that uses the passed in proxy information to initialize a |
94 // ClientSocketHandle with the relevant socket pool. Use this method for | 94 // ClientSocketHandle with the relevant socket pool. Use this method for |
95 // a raw socket connection to a host-port pair (that needs to tunnel through | 95 // a raw socket connection to a host-port pair (that needs to tunnel through |
96 // the proxies). | 96 // the proxies). |
97 NET_EXPORT int InitSocketHandleForRawConnect( | 97 NET_EXPORT int InitSocketHandleForRawConnect( |
98 const HostPortPair& host_port_pair, | 98 const HostPortPair& host_port_pair, |
99 HttpNetworkSession* session, | 99 HttpNetworkSession* session, |
100 const ProxyInfo& proxy_info, | 100 const ProxyInfo& proxy_info, |
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, |
103 const BoundNetLog& net_log, | 103 const BoundNetLog& net_log, |
104 ClientSocketHandle* socket_handle, | 104 ClientSocketHandle* socket_handle, |
105 OldCompletionCallback* callback); | 105 const CompletionCallback& callback); |
106 | 106 |
107 // Similar to InitSocketHandleForHttpRequest except that it initiates the | 107 // Similar to InitSocketHandleForHttpRequest except that it initiates the |
108 // desired number of preconnect streams from the relevant socket pool. | 108 // desired number of preconnect streams from the relevant socket pool. |
109 int PreconnectSocketsForHttpRequest( | 109 int PreconnectSocketsForHttpRequest( |
110 const GURL& request_url, | 110 const GURL& request_url, |
111 const HttpRequestHeaders& request_extra_headers, | 111 const HttpRequestHeaders& request_extra_headers, |
112 int request_load_flags, | 112 int request_load_flags, |
113 RequestPriority request_priority, | 113 RequestPriority request_priority, |
114 HttpNetworkSession* session, | 114 HttpNetworkSession* session, |
115 const ProxyInfo& proxy_info, | 115 const ProxyInfo& proxy_info, |
116 bool force_spdy_over_ssl, | 116 bool force_spdy_over_ssl, |
117 bool want_spdy_over_npn, | 117 bool want_spdy_over_npn, |
118 const SSLConfig& ssl_config_for_origin, | 118 const SSLConfig& ssl_config_for_origin, |
119 const SSLConfig& ssl_config_for_proxy, | 119 const SSLConfig& ssl_config_for_proxy, |
120 const BoundNetLog& net_log, | 120 const BoundNetLog& net_log, |
121 int num_preconnect_streams); | 121 int num_preconnect_streams); |
122 | 122 |
123 } // namespace net | 123 } // namespace net |
124 | 124 |
125 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 125 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
OLD | NEW |