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

Side by Side Diff: net/http/http_network_session.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
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_session_peer.h » ('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 #include "net/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 params.enable_spdy_ip_pooling, 119 params.enable_spdy_ip_pooling,
120 params.enable_spdy_credential_frames, 120 params.enable_spdy_credential_frames,
121 params.enable_spdy_compression, 121 params.enable_spdy_compression,
122 params.enable_spdy_ping_based_connection_checking, 122 params.enable_spdy_ping_based_connection_checking,
123 params.spdy_default_protocol, 123 params.spdy_default_protocol,
124 params.spdy_stream_initial_recv_window_size, 124 params.spdy_stream_initial_recv_window_size,
125 params.spdy_initial_max_concurrent_streams, 125 params.spdy_initial_max_concurrent_streams,
126 params.spdy_max_concurrent_streams_limit, 126 params.spdy_max_concurrent_streams_limit,
127 params.time_func, 127 params.time_func,
128 params.trusted_spdy_proxy), 128 params.trusted_spdy_proxy),
129 http_stream_factory_(new HttpStreamFactoryImpl(this)), 129 http_stream_factory_(new HttpStreamFactoryImpl(this, false)),
130 websocket_stream_factory_(new HttpStreamFactoryImpl(this, true)),
130 params_(params) { 131 params_(params) {
131 DCHECK(proxy_service_); 132 DCHECK(proxy_service_);
132 DCHECK(ssl_config_service_.get()); 133 DCHECK(ssl_config_service_.get());
133 CHECK(http_server_properties_); 134 CHECK(http_server_properties_);
134 } 135 }
135 136
136 HttpNetworkSession::~HttpNetworkSession() { 137 HttpNetworkSession::~HttpNetworkSession() {
137 STLDeleteElements(&response_drainers_); 138 STLDeleteElements(&response_drainers_);
138 spdy_session_pool_.CloseAllSessions(); 139 spdy_session_pool_.CloseAllSessions();
139 } 140 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 case WEBSOCKET_SOCKET_POOL: 219 case WEBSOCKET_SOCKET_POOL:
219 return websocket_socket_pool_manager_.get(); 220 return websocket_socket_pool_manager_.get();
220 default: 221 default:
221 NOTREACHED(); 222 NOTREACHED();
222 break; 223 break;
223 } 224 }
224 return NULL; 225 return NULL;
225 } 226 }
226 227
227 } // namespace net 228 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698