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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 testing_fixed_http_port(0), | 89 testing_fixed_http_port(0), |
90 testing_fixed_https_port(0), | 90 testing_fixed_https_port(0), |
91 enable_tcp_fast_open_for_ssl(false), | 91 enable_tcp_fast_open_for_ssl(false), |
92 enable_spdy_ping_based_connection_checking(true), | 92 enable_spdy_ping_based_connection_checking(true), |
93 enable_http2(true), | 93 enable_http2(true), |
94 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), | 94 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), |
95 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), | 95 spdy_stream_max_recv_window_size(kSpdyStreamMaxRecvWindowSize), |
96 time_func(&base::TimeTicks::Now), | 96 time_func(&base::TimeTicks::Now), |
97 enable_http2_alternative_service_with_different_host(false), | 97 enable_http2_alternative_service_with_different_host(false), |
98 enable_quic_alternative_service_with_different_host(true), | 98 enable_quic_alternative_service_with_different_host(true), |
99 enable_priority_dependencies(true), | |
100 enable_quic(false), | 99 enable_quic(false), |
101 disable_quic_on_timeout_with_open_streams(false), | 100 disable_quic_on_timeout_with_open_streams(false), |
102 enable_quic_port_selection(true), | 101 enable_quic_port_selection(true), |
103 quic_always_require_handshake_confirmation(false), | 102 quic_always_require_handshake_confirmation(false), |
104 quic_disable_connection_pooling(false), | 103 quic_disable_connection_pooling(false), |
105 quic_load_server_info_timeout_srtt_multiplier(0.25f), | 104 quic_load_server_info_timeout_srtt_multiplier(0.25f), |
106 quic_enable_connection_racing(false), | 105 quic_enable_connection_racing(false), |
107 quic_enable_non_blocking_io(false), | 106 quic_enable_non_blocking_io(false), |
108 quic_disable_disk_cache(false), | 107 quic_disable_disk_cache(false), |
109 quic_prefer_aes(false), | 108 quic_prefer_aes(false), |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 params.quic_migrate_sessions_early, | 188 params.quic_migrate_sessions_early, |
190 params.quic_allow_server_migration, | 189 params.quic_allow_server_migration, |
191 params.quic_force_hol_blocking, | 190 params.quic_force_hol_blocking, |
192 params.quic_connection_options, | 191 params.quic_connection_options, |
193 params.enable_token_binding), | 192 params.enable_token_binding), |
194 spdy_session_pool_(params.host_resolver, | 193 spdy_session_pool_(params.host_resolver, |
195 params.ssl_config_service, | 194 params.ssl_config_service, |
196 params.http_server_properties, | 195 params.http_server_properties, |
197 params.transport_security_state, | 196 params.transport_security_state, |
198 params.enable_spdy_ping_based_connection_checking, | 197 params.enable_spdy_ping_based_connection_checking, |
199 params.enable_priority_dependencies, | |
200 params.spdy_session_max_recv_window_size, | 198 params.spdy_session_max_recv_window_size, |
201 params.spdy_stream_max_recv_window_size, | 199 params.spdy_stream_max_recv_window_size, |
202 params.time_func, | 200 params.time_func, |
203 params.proxy_delegate), | 201 params.proxy_delegate), |
204 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), | 202 http_stream_factory_(new HttpStreamFactoryImpl(this, false)), |
205 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), | 203 http_stream_factory_for_websocket_(new HttpStreamFactoryImpl(this, true)), |
206 params_(params) { | 204 params_(params) { |
207 DCHECK(proxy_service_); | 205 DCHECK(proxy_service_); |
208 DCHECK(ssl_config_service_.get()); | 206 DCHECK(ssl_config_service_.get()); |
209 CHECK(http_server_properties_); | 207 CHECK(http_server_properties_); |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: | 415 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: |
418 break; | 416 break; |
419 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: | 417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: |
420 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: | 418 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: |
421 CloseIdleConnections(); | 419 CloseIdleConnections(); |
422 break; | 420 break; |
423 } | 421 } |
424 } | 422 } |
425 | 423 |
426 } // namespace net | 424 } // namespace net |
OLD | NEW |