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/proxy_delegate.h" | |
bengr
2016/01/26 19:39:55
Can this be a forward declaration?
tbansal1
2016/01/27 00:13:34
Done.
| |
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 params.ssl_config_service, | 186 params.ssl_config_service, |
186 params.http_server_properties, | 187 params.http_server_properties, |
187 params.transport_security_state, | 188 params.transport_security_state, |
188 params.enable_spdy_compression, | 189 params.enable_spdy_compression, |
189 params.enable_spdy_ping_based_connection_checking, | 190 params.enable_spdy_ping_based_connection_checking, |
190 params.spdy_default_protocol, | 191 params.spdy_default_protocol, |
191 params.spdy_session_max_recv_window_size, | 192 params.spdy_session_max_recv_window_size, |
192 params.spdy_stream_max_recv_window_size, | 193 params.spdy_stream_max_recv_window_size, |
193 params.spdy_initial_max_concurrent_streams, | 194 params.spdy_initial_max_concurrent_streams, |
194 params.time_func, | 195 params.time_func, |
195 params.trusted_spdy_proxy), | 196 params.proxy_delegate), |
196 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 197 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
197 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 198 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
198 params_(params) { | 199 params_(params) { |
199 DCHECK(proxy_service_); | 200 DCHECK(proxy_service_); |
200 DCHECK(ssl_config_service_.get()); | 201 DCHECK(ssl_config_service_.get()); |
201 CHECK(http_server_properties_); | 202 CHECK(http_server_properties_); |
202 | 203 |
203 const std::string ssl_session_cache_shard = | 204 const std::string ssl_session_cache_shard = |
204 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); | 205 "http_network_session/" + base::IntToString(g_next_shard_id.GetNext()); |
205 normal_socket_pool_manager_.reset(CreateSocketPoolManager( | 206 normal_socket_pool_manager_.reset(CreateSocketPoolManager( |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 case WEBSOCKET_SOCKET_POOL: | 387 case WEBSOCKET_SOCKET_POOL: |
387 return websocket_socket_pool_manager_.get(); | 388 return websocket_socket_pool_manager_.get(); |
388 default: | 389 default: |
389 NOTREACHED(); | 390 NOTREACHED(); |
390 break; | 391 break; |
391 } | 392 } |
392 return NULL; | 393 return NULL; |
393 } | 394 } |
394 | 395 |
395 } // namespace net | 396 } // namespace net |
OLD | NEW |