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

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

Issue 14471023: Refactor pooled socket request code to prepare for implementation of pretend-to-preconnect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months 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
« no previous file with comments | « net/socket/client_socket_pool_manager.cc ('k') | net/socket/ssl_client_socket_pool.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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SSLSocketParams(const scoped_refptr<TransportSocketParams>& transport_params, 42 SSLSocketParams(const scoped_refptr<TransportSocketParams>& transport_params,
43 const scoped_refptr<SOCKSSocketParams>& socks_params, 43 const scoped_refptr<SOCKSSocketParams>& socks_params,
44 const scoped_refptr<HttpProxySocketParams>& http_proxy_params, 44 const scoped_refptr<HttpProxySocketParams>& http_proxy_params,
45 ProxyServer::Scheme proxy, 45 ProxyServer::Scheme proxy,
46 const HostPortPair& host_and_port, 46 const HostPortPair& host_and_port,
47 const SSLConfig& ssl_config, 47 const SSLConfig& ssl_config,
48 int load_flags, 48 int load_flags,
49 bool force_spdy_over_ssl, 49 bool force_spdy_over_ssl,
50 bool want_spdy_over_npn); 50 bool want_spdy_over_npn);
51 51
52 SSLSocketParams(const scoped_refptr<TransportSocketParams>& transport_params,
mmenke 2013/04/29 16:15:46 I think this is actually worse than the old code.
kouhei (in TOK) 2013/04/30 01:38:33 Made static factory methods.
53 const HostPortPair& host_and_port,
54 const SSLConfig& ssl_config,
55 int load_flags,
56 bool force_spdy_over_ssl,
57 bool want_spdy_over_npn);
58
59 SSLSocketParams(const scoped_refptr<HttpProxySocketParams>& http_proxy_params,
60 ProxyServer::Scheme proxy,
61 const HostPortPair& host_and_port,
62 const SSLConfig& ssl_config,
63 int load_flags,
64 bool force_spdy_over_ssl,
65 bool want_spdy_over_npn);
66
67 SSLSocketParams(const scoped_refptr<SOCKSSocketParams>& socks_params_,
68 ProxyServer::Scheme proxy,
69 const HostPortPair& host_and_port,
70 const SSLConfig& ssl_config,
71 int load_flags,
72 bool force_spdy_over_ssl,
73 bool want_spdy_over_npn);
74
52 const scoped_refptr<TransportSocketParams>& transport_params() { 75 const scoped_refptr<TransportSocketParams>& transport_params() {
53 return transport_params_; 76 return transport_params_;
54 } 77 }
55 const scoped_refptr<HttpProxySocketParams>& http_proxy_params() { 78 const scoped_refptr<HttpProxySocketParams>& http_proxy_params() {
56 return http_proxy_params_; 79 return http_proxy_params_;
57 } 80 }
58 const scoped_refptr<SOCKSSocketParams>& socks_params() { 81 const scoped_refptr<SOCKSSocketParams>& socks_params() {
59 return socks_params_; 82 return socks_params_;
60 } 83 }
61 ProxyServer::Scheme proxy() const { return proxy_; } 84 ProxyServer::Scheme proxy() const { return proxy_; }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const scoped_refptr<SSLConfigService> ssl_config_service_; 307 const scoped_refptr<SSLConfigService> ssl_config_service_;
285 308
286 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); 309 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool);
287 }; 310 };
288 311
289 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); 312 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams);
290 313
291 } // namespace net 314 } // namespace net
292 315
293 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 316 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_manager.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698