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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 use_stale_while_revalidate(false), | 73 use_stale_while_revalidate(false), |
74 testing_fixed_http_port(0), | 74 testing_fixed_http_port(0), |
75 testing_fixed_https_port(0), | 75 testing_fixed_https_port(0), |
76 enable_tcp_fast_open_for_ssl(false), | 76 enable_tcp_fast_open_for_ssl(false), |
77 enable_spdy_compression(true), | 77 enable_spdy_compression(true), |
78 enable_spdy_ping_based_connection_checking(true), | 78 enable_spdy_ping_based_connection_checking(true), |
79 spdy_default_protocol(kProtoUnknown), | 79 spdy_default_protocol(kProtoUnknown), |
80 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), | 80 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), |
81 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), | 81 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), |
82 spdy_initial_max_concurrent_streams(0), | 82 spdy_initial_max_concurrent_streams(0), |
83 spdy_max_concurrent_streams_limit(0), | |
84 time_func(&base::TimeTicks::Now), | 83 time_func(&base::TimeTicks::Now), |
85 use_alternate_protocols(false), | 84 use_alternate_protocols(false), |
86 alternative_service_probability_threshold(1), | 85 alternative_service_probability_threshold(1), |
87 enable_quic(false), | 86 enable_quic(false), |
88 enable_quic_for_proxies(false), | 87 enable_quic_for_proxies(false), |
89 enable_quic_port_selection(true), | 88 enable_quic_port_selection(true), |
90 quic_always_require_handshake_confirmation(false), | 89 quic_always_require_handshake_confirmation(false), |
91 quic_disable_connection_pooling(false), | 90 quic_disable_connection_pooling(false), |
92 quic_load_server_info_timeout_srtt_multiplier(0.25f), | 91 quic_load_server_info_timeout_srtt_multiplier(0.25f), |
93 quic_enable_connection_racing(false), | 92 quic_enable_connection_racing(false), |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 spdy_session_pool_(params.host_resolver, | 148 spdy_session_pool_(params.host_resolver, |
150 params.ssl_config_service, | 149 params.ssl_config_service, |
151 params.http_server_properties, | 150 params.http_server_properties, |
152 params.transport_security_state, | 151 params.transport_security_state, |
153 params.enable_spdy_compression, | 152 params.enable_spdy_compression, |
154 params.enable_spdy_ping_based_connection_checking, | 153 params.enable_spdy_ping_based_connection_checking, |
155 params.spdy_default_protocol, | 154 params.spdy_default_protocol, |
156 params.spdy_session_max_recv_window_size, | 155 params.spdy_session_max_recv_window_size, |
157 params.spdy_stream_max_recv_window_size, | 156 params.spdy_stream_max_recv_window_size, |
158 params.spdy_initial_max_concurrent_streams, | 157 params.spdy_initial_max_concurrent_streams, |
159 params.spdy_max_concurrent_streams_limit, | |
160 params.time_func, | 158 params.time_func, |
161 params.trusted_spdy_proxy), | 159 params.trusted_spdy_proxy), |
162 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 160 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
163 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 161 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
164 params_(params) { | 162 params_(params) { |
165 DCHECK(proxy_service_); | 163 DCHECK(proxy_service_); |
166 DCHECK(ssl_config_service_.get()); | 164 DCHECK(ssl_config_service_.get()); |
167 CHECK(http_server_properties_); | 165 CHECK(http_server_properties_); |
168 | 166 |
169 for (int i = ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION; | 167 for (int i = ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 case WEBSOCKET_SOCKET_POOL: | 315 case WEBSOCKET_SOCKET_POOL: |
318 return websocket_socket_pool_manager_.get(); | 316 return websocket_socket_pool_manager_.get(); |
319 default: | 317 default: |
320 NOTREACHED(); | 318 NOTREACHED(); |
321 break; | 319 break; |
322 } | 320 } |
323 return NULL; | 321 return NULL; |
324 } | 322 } |
325 | 323 |
326 } // namespace net | 324 } // namespace net |
OLD | NEW |