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