Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1147)

Side by Side Diff: net/socket/client_socket_pool_manager.h

Issue 54743007: [GCM] Add connection factory for creating MCS connections (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/gcm/gcm.gyp ('k') | net/socket/client_socket_pool_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « google_apis/gcm/gcm.gyp ('k') | net/socket/client_socket_pool_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698