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 #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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 params.enable_spdy_ip_pooling, | 120 params.enable_spdy_ip_pooling, |
121 params.enable_spdy_credential_frames, | 121 params.enable_spdy_credential_frames, |
122 params.enable_spdy_compression, | 122 params.enable_spdy_compression, |
123 params.enable_spdy_ping_based_connection_checking, | 123 params.enable_spdy_ping_based_connection_checking, |
124 params.spdy_default_protocol, | 124 params.spdy_default_protocol, |
125 params.spdy_stream_initial_recv_window_size, | 125 params.spdy_stream_initial_recv_window_size, |
126 params.spdy_initial_max_concurrent_streams, | 126 params.spdy_initial_max_concurrent_streams, |
127 params.spdy_max_concurrent_streams_limit, | 127 params.spdy_max_concurrent_streams_limit, |
128 params.time_func, | 128 params.time_func, |
129 params.trusted_spdy_proxy), | 129 params.trusted_spdy_proxy), |
130 http_stream_factory_(new HttpStreamFactoryImpl(this)), | 130 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
| 131 websocket_stream_factory_(new HttpStreamFactoryImpl(this, true)), |
131 params_(params) { | 132 params_(params) { |
132 DCHECK(proxy_service_); | 133 DCHECK(proxy_service_); |
133 DCHECK(ssl_config_service_.get()); | 134 DCHECK(ssl_config_service_.get()); |
134 CHECK(http_server_properties_); | 135 CHECK(http_server_properties_); |
135 } | 136 } |
136 | 137 |
137 HttpNetworkSession::~HttpNetworkSession() { | 138 HttpNetworkSession::~HttpNetworkSession() { |
138 STLDeleteElements(&response_drainers_); | 139 STLDeleteElements(&response_drainers_); |
139 spdy_session_pool_.CloseAllSessions(); | 140 spdy_session_pool_.CloseAllSessions(); |
140 } | 141 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 case WEBSOCKET_SOCKET_POOL: | 220 case WEBSOCKET_SOCKET_POOL: |
220 return websocket_socket_pool_manager_.get(); | 221 return websocket_socket_pool_manager_.get(); |
221 default: | 222 default: |
222 NOTREACHED(); | 223 NOTREACHED(); |
223 break; | 224 break; |
224 } | 225 } |
225 return NULL; | 226 return NULL; |
226 } | 227 } |
227 | 228 |
228 } // namespace net | 229 } // namespace net |
OLD | NEW |