| 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" |
| 11 #include "base/debug/stack_trace.h" | 11 #include "base/debug/stack_trace.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/profiler/scoped_tracker.h" | 13 #include "base/profiler/scoped_tracker.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "net/base/trusted_spdy_proxy_provider.h" |
| 18 #include "net/http/http_auth_handler_factory.h" | 19 #include "net/http/http_auth_handler_factory.h" |
| 19 #include "net/http/http_response_body_drainer.h" | 20 #include "net/http/http_response_body_drainer.h" |
| 20 #include "net/http/http_stream_factory_impl.h" | 21 #include "net/http/http_stream_factory_impl.h" |
| 21 #include "net/http/url_security_manager.h" | 22 #include "net/http/url_security_manager.h" |
| 22 #include "net/proxy/proxy_service.h" | 23 #include "net/proxy/proxy_service.h" |
| 23 #include "net/quic/crypto/quic_random.h" | 24 #include "net/quic/crypto/quic_random.h" |
| 24 #include "net/quic/quic_clock.h" | 25 #include "net/quic/quic_clock.h" |
| 25 #include "net/quic/quic_crypto_client_stream_factory.h" | 26 #include "net/quic/quic_crypto_client_stream_factory.h" |
| 26 #include "net/quic/quic_protocol.h" | 27 #include "net/quic/quic_protocol.h" |
| 27 #include "net/quic/quic_stream_factory.h" | 28 #include "net/quic/quic_stream_factory.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 params.ssl_config_service, | 184 params.ssl_config_service, |
| 184 params.http_server_properties, | 185 params.http_server_properties, |
| 185 params.transport_security_state, | 186 params.transport_security_state, |
| 186 params.enable_spdy_compression, | 187 params.enable_spdy_compression, |
| 187 params.enable_spdy_ping_based_connection_checking, | 188 params.enable_spdy_ping_based_connection_checking, |
| 188 params.spdy_default_protocol, | 189 params.spdy_default_protocol, |
| 189 params.spdy_session_max_recv_window_size, | 190 params.spdy_session_max_recv_window_size, |
| 190 params.spdy_stream_max_recv_window_size, | 191 params.spdy_stream_max_recv_window_size, |
| 191 params.spdy_initial_max_concurrent_streams, | 192 params.spdy_initial_max_concurrent_streams, |
| 192 params.time_func, | 193 params.time_func, |
| 193 params.trusted_spdy_proxy), | 194 params.trusted_spdy_proxy_provider), |
| 194 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 195 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
| 195 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 196 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
| 196 params_(params) { | 197 params_(params) { |
| 197 DCHECK(proxy_service_); | 198 DCHECK(proxy_service_); |
| 198 DCHECK(ssl_config_service_.get()); | 199 DCHECK(ssl_config_service_.get()); |
| 199 CHECK(http_server_properties_); | 200 CHECK(http_server_properties_); |
| 200 | 201 |
| 201 const std::string ssl_session_cache_shard = | 202 const std::string ssl_session_cache_shard = |
| 202 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); | 203 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); |
| 203 normal_socket_pool_manager_.reset(CreateSocketPoolManager( | 204 normal_socket_pool_manager_.reset(CreateSocketPoolManager( |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 case WEBSOCKET_SOCKET_POOL: | 367 case WEBSOCKET_SOCKET_POOL: |
| 367 return websocket_socket_pool_manager_.get(); | 368 return websocket_socket_pool_manager_.get(); |
| 368 default: | 369 default: |
| 369 NOTREACHED(); | 370 NOTREACHED(); |
| 370 break; | 371 break; |
| 371 } | 372 } |
| 372 return NULL; | 373 return NULL; |
| 373 } | 374 } |
| 374 | 375 |
| 375 } // namespace net | 376 } // namespace net |
| OLD | NEW |