| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 RequestPriority request_priority, | 128 RequestPriority request_priority, |
| 129 HttpNetworkSession* session, | 129 HttpNetworkSession* session, |
| 130 const ProxyInfo& proxy_info, | 130 const ProxyInfo& proxy_info, |
| 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 // Simulate effect of PreconnectSocketsForHttpRequest. |
| 139 // Returns number of connections that would have been initiated |
| 140 // for preconnect request. |
| 141 int PretendToPreconnectSocketsForHttpRequest( |
| 142 const GURL& request_url, |
| 143 const HttpRequestHeaders& request_extra_headers, |
| 144 int request_load_flags, |
| 145 RequestPriority request_priority, |
| 146 HttpNetworkSession* session, |
| 147 const ProxyInfo& proxy_info, |
| 148 bool force_spdy_over_ssl, |
| 149 bool want_spdy_over_npn, |
| 150 const SSLConfig& ssl_config_for_origin, |
| 151 const SSLConfig& ssl_config_for_proxy, |
| 152 const BoundNetLog& net_log, |
| 153 int num_preconnect_streams); |
| 154 |
| 138 } // namespace net | 155 } // namespace net |
| 139 | 156 |
| 140 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ | 157 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_H_ |
| OLD | NEW |