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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |