| 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/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 params.ssl_config_service, | 189 params.ssl_config_service, |
| 190 params.http_server_properties, | 190 params.http_server_properties, |
| 191 params.transport_security_state, | 191 params.transport_security_state, |
| 192 params.enable_spdy_compression, | 192 params.enable_spdy_compression, |
| 193 params.enable_spdy_ping_based_connection_checking, | 193 params.enable_spdy_ping_based_connection_checking, |
| 194 params.spdy_default_protocol, | 194 params.spdy_default_protocol, |
| 195 params.spdy_session_max_recv_window_size, | 195 params.spdy_session_max_recv_window_size, |
| 196 params.spdy_stream_max_recv_window_size, | 196 params.spdy_stream_max_recv_window_size, |
| 197 params.spdy_initial_max_concurrent_streams, | 197 params.spdy_initial_max_concurrent_streams, |
| 198 params.time_func, | 198 params.time_func, |
| 199 params.trusted_spdy_proxy), | 199 params.proxy_delegate), |
| 200 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 200 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
| 201 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 201 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
| 202 params_(params) { | 202 params_(params) { |
| 203 DCHECK(proxy_service_); | 203 DCHECK(proxy_service_); |
| 204 DCHECK(ssl_config_service_.get()); | 204 DCHECK(ssl_config_service_.get()); |
| 205 CHECK(http_server_properties_); | 205 CHECK(http_server_properties_); |
| 206 | 206 |
| 207 const std::string ssl_session_cache_shard = | 207 const std::string ssl_session_cache_shard = |
| 208 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); | 208 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); |
| 209 normal_socket_pool_manager_.reset(CreateSocketPoolManager( | 209 normal_socket_pool_manager_.reset(CreateSocketPoolManager( |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 case WEBSOCKET_SOCKET_POOL: | 390 case WEBSOCKET_SOCKET_POOL: |
| 391 return websocket_socket_pool_manager_.get(); | 391 return websocket_socket_pool_manager_.get(); |
| 392 default: | 392 default: |
| 393 NOTREACHED(); | 393 NOTREACHED(); |
| 394 break; | 394 break; |
| 395 } | 395 } |
| 396 return NULL; | 396 return NULL; |
| 397 } | 397 } |
| 398 | 398 |
| 399 } // namespace net | 399 } // namespace net |
| OLD | NEW |