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 <inttypes.h> | 7 #include <inttypes.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 testing_fixed_https_port(0), | 116 testing_fixed_https_port(0), |
117 enable_tcp_fast_open_for_ssl(false), | 117 enable_tcp_fast_open_for_ssl(false), |
118 enable_spdy_ping_based_connection_checking(true), | 118 enable_spdy_ping_based_connection_checking(true), |
119 enable_http2(true), | 119 enable_http2(true), |
120 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), | 120 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), |
121 time_func(&base::TimeTicks::Now), | 121 time_func(&base::TimeTicks::Now), |
122 enable_http2_alternative_service(false), | 122 enable_http2_alternative_service(false), |
123 enable_quic(false), | 123 enable_quic(false), |
124 mark_quic_broken_when_network_blackholes(false), | 124 mark_quic_broken_when_network_blackholes(false), |
125 retry_without_alt_svc_on_quic_errors(false), | 125 retry_without_alt_svc_on_quic_errors(false), |
126 quic_enable_non_blocking_io(false), | |
127 quic_max_server_configs_stored_in_properties(0u), | 126 quic_max_server_configs_stored_in_properties(0u), |
128 quic_clock(nullptr), | 127 quic_clock(nullptr), |
129 quic_random(nullptr), | 128 quic_random(nullptr), |
130 quic_max_packet_length(kDefaultMaxPacketSize), | 129 quic_max_packet_length(kDefaultMaxPacketSize), |
131 enable_user_alternate_protocol_ports(false), | 130 enable_user_alternate_protocol_ports(false), |
132 quic_crypto_client_stream_factory( | 131 quic_crypto_client_stream_factory( |
133 QuicCryptoClientStreamFactory::GetDefaultFactory()), | 132 QuicCryptoClientStreamFactory::GetDefaultFactory()), |
134 quic_close_sessions_on_ip_change(false), | 133 quic_close_sessions_on_ip_change(false), |
135 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 134 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
136 quic_reduced_ping_timeout_seconds(kPingTimeoutSecs), | 135 quic_reduced_ping_timeout_seconds(kPingTimeoutSecs), |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 params.transport_security_state, | 179 params.transport_security_state, |
181 params.cert_transparency_verifier, | 180 params.cert_transparency_verifier, |
182 params.socket_performance_watcher_factory, | 181 params.socket_performance_watcher_factory, |
183 params.quic_crypto_client_stream_factory, | 182 params.quic_crypto_client_stream_factory, |
184 params.quic_random ? params.quic_random : QuicRandom::GetInstance(), | 183 params.quic_random ? params.quic_random : QuicRandom::GetInstance(), |
185 params.quic_clock ? params.quic_clock | 184 params.quic_clock ? params.quic_clock |
186 : QuicChromiumClock::GetInstance(), | 185 : QuicChromiumClock::GetInstance(), |
187 params.quic_max_packet_length, | 186 params.quic_max_packet_length, |
188 params.quic_user_agent_id, | 187 params.quic_user_agent_id, |
189 params.quic_supported_versions, | 188 params.quic_supported_versions, |
190 params.quic_enable_non_blocking_io, | |
191 params.quic_max_server_configs_stored_in_properties > 0, | 189 params.quic_max_server_configs_stored_in_properties > 0, |
192 params.quic_close_sessions_on_ip_change, | 190 params.quic_close_sessions_on_ip_change, |
193 params.mark_quic_broken_when_network_blackholes, | 191 params.mark_quic_broken_when_network_blackholes, |
194 params.quic_idle_connection_timeout_seconds, | 192 params.quic_idle_connection_timeout_seconds, |
195 params.quic_reduced_ping_timeout_seconds, | 193 params.quic_reduced_ping_timeout_seconds, |
196 params.quic_packet_reader_yield_after_duration_milliseconds, | 194 params.quic_packet_reader_yield_after_duration_milliseconds, |
197 params.quic_migrate_sessions_on_network_change, | 195 params.quic_migrate_sessions_on_network_change, |
198 params.quic_migrate_sessions_early, | 196 params.quic_migrate_sessions_early, |
199 params.quic_allow_server_migration, | 197 params.quic_allow_server_migration, |
200 params.quic_force_hol_blocking, | 198 params.quic_force_hol_blocking, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 CloseIdleConnections(); | 452 CloseIdleConnections(); |
455 break; | 453 break; |
456 } | 454 } |
457 } | 455 } |
458 | 456 |
459 void HttpNetworkSession::OnPurgeMemory() { | 457 void HttpNetworkSession::OnPurgeMemory() { |
460 CloseIdleConnections(); | 458 CloseIdleConnections(); |
461 } | 459 } |
462 | 460 |
463 } // namespace net | 461 } // namespace net |
OLD | NEW |