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

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

Issue 14813024: Introduce RequestWebSocketStream into HttpStreamFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
« net/http/websocket_stream_base.h ('K') | « net/net.gyp ('k') | no next file » | 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 #include "net/socket/client_socket_pool_manager.h" 5 #include "net/socket/client_socket_pool_manager.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const BoundNetLog& net_log, 81 const BoundNetLog& net_log,
82 int num_preconnect_streams, 82 int num_preconnect_streams,
83 ClientSocketHandle* socket_handle, 83 ClientSocketHandle* socket_handle,
84 const OnHostResolutionCallback& resolution_callback, 84 const OnHostResolutionCallback& resolution_callback,
85 const CompletionCallback& callback) { 85 const CompletionCallback& callback) {
86 scoped_refptr<TransportSocketParams> tcp_params; 86 scoped_refptr<TransportSocketParams> tcp_params;
87 scoped_refptr<HttpProxySocketParams> http_proxy_params; 87 scoped_refptr<HttpProxySocketParams> http_proxy_params;
88 scoped_refptr<SOCKSSocketParams> socks_params; 88 scoped_refptr<SOCKSSocketParams> socks_params;
89 scoped_ptr<HostPortPair> proxy_host_port; 89 scoped_ptr<HostPortPair> proxy_host_port;
90 90
91 bool using_ssl = request_url.SchemeIs("https") || force_spdy_over_ssl; 91 bool using_ssl = request_url.SchemeIs("https") ||
92 request_url.SchemeIs("wss") || force_spdy_over_ssl;
mmenke 2013/05/28 21:22:37 Another issue for the CL to use the right HttpStre
yhirano 2013/05/30 04:44:32 I'm not sure if I understand your comment correctl
mmenke 2013/05/30 19:27:12 The issue is this code isn't using a CONNECT. Loo
yhirano 2013/05/31 08:36:45 I see, I added InitSocketHandleForWebSocket which
92 93
93 HostPortPair origin_host_port = 94 HostPortPair origin_host_port =
94 HostPortPair(request_url.HostNoBrackets(), 95 HostPortPair(request_url.HostNoBrackets(),
95 request_url.EffectiveIntPort()); 96 request_url.EffectiveIntPort());
96 97
97 if (!using_ssl && session->params().testing_fixed_http_port != 0) { 98 if (!using_ssl && session->params().testing_fixed_http_port != 0) {
98 origin_host_port.set_port(session->params().testing_fixed_http_port); 99 origin_host_port.set_port(session->params().testing_fixed_http_port);
99 } else if (using_ssl && session->params().testing_fixed_https_port != 0) { 100 } else if (using_ssl && session->params().testing_fixed_https_port != 0) {
100 origin_host_port.set_port(session->params().testing_fixed_https_port); 101 origin_host_port.set_port(session->params().testing_fixed_https_port);
101 } 102 }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 int num_preconnect_streams) { 434 int num_preconnect_streams) {
434 return InitSocketPoolHelper( 435 return InitSocketPoolHelper(
435 request_url, request_extra_headers, request_load_flags, request_priority, 436 request_url, request_extra_headers, request_load_flags, request_priority,
436 session, proxy_info, force_spdy_over_ssl, want_spdy_over_npn, 437 session, proxy_info, force_spdy_over_ssl, want_spdy_over_npn,
437 ssl_config_for_origin, ssl_config_for_proxy, false, privacy_mode, net_log, 438 ssl_config_for_origin, ssl_config_for_proxy, false, privacy_mode, net_log,
438 num_preconnect_streams, NULL, OnHostResolutionCallback(), 439 num_preconnect_streams, NULL, OnHostResolutionCallback(),
439 CompletionCallback()); 440 CompletionCallback());
440 } 441 }
441 442
442 } // namespace net 443 } // namespace net
OLDNEW
« net/http/websocket_stream_base.h ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698