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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 testing_fixed_http_port(0), | 119 testing_fixed_http_port(0), |
120 testing_fixed_https_port(0), | 120 testing_fixed_https_port(0), |
121 enable_tcp_fast_open_for_ssl(false), | 121 enable_tcp_fast_open_for_ssl(false), |
122 enable_spdy_ping_based_connection_checking(true), | 122 enable_spdy_ping_based_connection_checking(true), |
123 enable_http2(true), | 123 enable_http2(true), |
124 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), | 124 spdy_session_max_recv_window_size(kSpdySessionMaxRecvWindowSize), |
125 time_func(&base::TimeTicks::Now), | 125 time_func(&base::TimeTicks::Now), |
126 enable_http2_alternative_service_with_different_host(false), | 126 enable_http2_alternative_service_with_different_host(false), |
127 enable_quic_alternative_service_with_different_host(true), | 127 enable_quic_alternative_service_with_different_host(true), |
128 enable_quic(false), | 128 enable_quic(false), |
| 129 mark_quic_broken_when_network_suspected(false), |
129 disable_quic_on_timeout_with_open_streams(false), | 130 disable_quic_on_timeout_with_open_streams(false), |
130 quic_always_require_handshake_confirmation(false), | 131 quic_always_require_handshake_confirmation(false), |
131 quic_disable_connection_pooling(false), | 132 quic_disable_connection_pooling(false), |
132 quic_load_server_info_timeout_srtt_multiplier(0.25f), | 133 quic_load_server_info_timeout_srtt_multiplier(0.25f), |
133 quic_enable_connection_racing(false), | 134 quic_enable_connection_racing(false), |
134 quic_enable_non_blocking_io(false), | 135 quic_enable_non_blocking_io(false), |
135 quic_disable_disk_cache(false), | 136 quic_disable_disk_cache(false), |
136 quic_prefer_aes(false), | 137 quic_prefer_aes(false), |
137 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), | 138 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), |
138 quic_delay_tcp_race(true), | 139 quic_delay_tcp_race(true), |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 params.quic_load_server_info_timeout_srtt_multiplier, | 205 params.quic_load_server_info_timeout_srtt_multiplier, |
205 params.quic_enable_connection_racing, | 206 params.quic_enable_connection_racing, |
206 params.quic_enable_non_blocking_io, | 207 params.quic_enable_non_blocking_io, |
207 params.quic_disable_disk_cache, | 208 params.quic_disable_disk_cache, |
208 params.quic_prefer_aes, | 209 params.quic_prefer_aes, |
209 params.quic_socket_receive_buffer_size, | 210 params.quic_socket_receive_buffer_size, |
210 params.quic_delay_tcp_race, | 211 params.quic_delay_tcp_race, |
211 params.quic_max_server_configs_stored_in_properties, | 212 params.quic_max_server_configs_stored_in_properties, |
212 params.quic_close_sessions_on_ip_change, | 213 params.quic_close_sessions_on_ip_change, |
213 params.disable_quic_on_timeout_with_open_streams, | 214 params.disable_quic_on_timeout_with_open_streams, |
| 215 params.mark_quic_broken_when_network_suspected, |
214 params.quic_idle_connection_timeout_seconds, | 216 params.quic_idle_connection_timeout_seconds, |
215 params.quic_reduced_ping_timeout_seconds, | 217 params.quic_reduced_ping_timeout_seconds, |
216 params.quic_packet_reader_yield_after_duration_milliseconds, | 218 params.quic_packet_reader_yield_after_duration_milliseconds, |
217 params.quic_migrate_sessions_on_network_change, | 219 params.quic_migrate_sessions_on_network_change, |
218 params.quic_migrate_sessions_early, | 220 params.quic_migrate_sessions_early, |
219 params.quic_allow_server_migration, | 221 params.quic_allow_server_migration, |
220 params.quic_force_hol_blocking, | 222 params.quic_force_hol_blocking, |
221 params.quic_race_cert_verification, | 223 params.quic_race_cert_verification, |
222 params.quic_do_not_fragment, | 224 params.quic_do_not_fragment, |
223 params.quic_estimate_initial_rtt, | 225 params.quic_estimate_initial_rtt, |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 CloseIdleConnections(); | 486 CloseIdleConnections(); |
485 break; | 487 break; |
486 } | 488 } |
487 } | 489 } |
488 | 490 |
489 void HttpNetworkSession::OnPurgeMemory() { | 491 void HttpNetworkSession::OnPurgeMemory() { |
490 CloseIdleConnections(); | 492 CloseIdleConnections(); |
491 } | 493 } |
492 | 494 |
493 } // namespace net | 495 } // namespace net |
OLD | NEW |