| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 quic_random(NULL), | 115 quic_random(NULL), |
| 116 quic_max_packet_length(kDefaultMaxPacketSize), | 116 quic_max_packet_length(kDefaultMaxPacketSize), |
| 117 enable_user_alternate_protocol_ports(false), | 117 enable_user_alternate_protocol_ports(false), |
| 118 quic_crypto_client_stream_factory( | 118 quic_crypto_client_stream_factory( |
| 119 QuicCryptoClientStreamFactory::GetDefaultFactory()), | 119 QuicCryptoClientStreamFactory::GetDefaultFactory()), |
| 120 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), | 120 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), |
| 121 quic_threshold_public_resets_post_handshake(0), | 121 quic_threshold_public_resets_post_handshake(0), |
| 122 quic_threshold_timeouts_streams_open(0), | 122 quic_threshold_timeouts_streams_open(0), |
| 123 quic_close_sessions_on_ip_change(false), | 123 quic_close_sessions_on_ip_change(false), |
| 124 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 124 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
| 125 quic_packet_reader_yield_after_duration_milliseconds( |
| 126 kQuicYieldAfterDurationMilliseconds), |
| 125 quic_disable_preconnect_if_0rtt(false), | 127 quic_disable_preconnect_if_0rtt(false), |
| 126 quic_migrate_sessions_on_network_change(false), | 128 quic_migrate_sessions_on_network_change(false), |
| 127 quic_migrate_sessions_early(false), | 129 quic_migrate_sessions_early(false), |
| 128 quic_allow_server_migration(false), | 130 quic_allow_server_migration(false), |
| 129 quic_disable_bidirectional_streams(false), | 131 quic_disable_bidirectional_streams(false), |
| 130 quic_force_hol_blocking(false), | 132 quic_force_hol_blocking(false), |
| 131 quic_race_cert_verification(false), | 133 quic_race_cert_verification(false), |
| 132 proxy_delegate(NULL), | 134 proxy_delegate(NULL), |
| 133 enable_token_binding(false) { | 135 enable_token_binding(false) { |
| 134 quic_supported_versions.push_back(QUIC_VERSION_35); | 136 quic_supported_versions.push_back(QUIC_VERSION_35); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 params.quic_packet_loss_threshold, | 180 params.quic_packet_loss_threshold, |
| 179 params.quic_max_recent_disabled_reasons, | 181 params.quic_max_recent_disabled_reasons, |
| 180 params.quic_threshold_public_resets_post_handshake, | 182 params.quic_threshold_public_resets_post_handshake, |
| 181 params.quic_threshold_timeouts_streams_open, | 183 params.quic_threshold_timeouts_streams_open, |
| 182 params.quic_socket_receive_buffer_size, | 184 params.quic_socket_receive_buffer_size, |
| 183 params.quic_delay_tcp_race, | 185 params.quic_delay_tcp_race, |
| 184 params.quic_max_server_configs_stored_in_properties, | 186 params.quic_max_server_configs_stored_in_properties, |
| 185 params.quic_close_sessions_on_ip_change, | 187 params.quic_close_sessions_on_ip_change, |
| 186 params.disable_quic_on_timeout_with_open_streams, | 188 params.disable_quic_on_timeout_with_open_streams, |
| 187 params.quic_idle_connection_timeout_seconds, | 189 params.quic_idle_connection_timeout_seconds, |
| 190 params.quic_packet_reader_yield_after_duration_milliseconds, |
| 188 params.quic_migrate_sessions_on_network_change, | 191 params.quic_migrate_sessions_on_network_change, |
| 189 params.quic_migrate_sessions_early, | 192 params.quic_migrate_sessions_early, |
| 190 params.quic_allow_server_migration, | 193 params.quic_allow_server_migration, |
| 191 params.quic_force_hol_blocking, | 194 params.quic_force_hol_blocking, |
| 192 params.quic_race_cert_verification, | 195 params.quic_race_cert_verification, |
| 193 params.quic_connection_options, | 196 params.quic_connection_options, |
| 194 params.enable_token_binding), | 197 params.enable_token_binding), |
| 195 spdy_session_pool_(params.host_resolver, | 198 spdy_session_pool_(params.host_resolver, |
| 196 params.ssl_config_service, | 199 params.ssl_config_service, |
| 197 params.http_server_properties, | 200 params.http_server_properties, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); | 332 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); |
| 330 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); | 333 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); |
| 331 dict->SetInteger("max_number_of_lossy_connections", | 334 dict->SetInteger("max_number_of_lossy_connections", |
| 332 params_.quic_max_number_of_lossy_connections); | 335 params_.quic_max_number_of_lossy_connections); |
| 333 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); | 336 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); |
| 334 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); | 337 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); |
| 335 dict->SetInteger("max_server_configs_stored_in_properties", | 338 dict->SetInteger("max_server_configs_stored_in_properties", |
| 336 params_.quic_max_server_configs_stored_in_properties); | 339 params_.quic_max_server_configs_stored_in_properties); |
| 337 dict->SetInteger("idle_connection_timeout_seconds", | 340 dict->SetInteger("idle_connection_timeout_seconds", |
| 338 params_.quic_idle_connection_timeout_seconds); | 341 params_.quic_idle_connection_timeout_seconds); |
| 342 dict->SetInteger( |
| 343 "packet_reader_yield_after_duration_milliseconds", |
| 344 params_.quic_packet_reader_yield_after_duration_milliseconds); |
| 339 dict->SetBoolean("disable_preconnect_if_0rtt", | 345 dict->SetBoolean("disable_preconnect_if_0rtt", |
| 340 params_.quic_disable_preconnect_if_0rtt); | 346 params_.quic_disable_preconnect_if_0rtt); |
| 341 dict->SetBoolean("disable_quic_on_timeout_with_open_streams", | 347 dict->SetBoolean("disable_quic_on_timeout_with_open_streams", |
| 342 params_.disable_quic_on_timeout_with_open_streams); | 348 params_.disable_quic_on_timeout_with_open_streams); |
| 343 dict->SetString("disabled_reason", | 349 dict->SetString("disabled_reason", |
| 344 quic_stream_factory_.QuicDisabledReasonString()); | 350 quic_stream_factory_.QuicDisabledReasonString()); |
| 345 dict->SetBoolean("force_hol_blocking", params_.quic_force_hol_blocking); | 351 dict->SetBoolean("force_hol_blocking", params_.quic_force_hol_blocking); |
| 346 dict->SetBoolean("race_cert_verification", | 352 dict->SetBoolean("race_cert_verification", |
| 347 params_.quic_race_cert_verification); | 353 params_.quic_race_cert_verification); |
| 348 return std::move(dict); | 354 return std::move(dict); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: | 415 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: |
| 410 break; | 416 break; |
| 411 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: | 417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: |
| 412 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: | 418 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: |
| 413 CloseIdleConnections(); | 419 CloseIdleConnections(); |
| 414 break; | 420 break; |
| 415 } | 421 } |
| 416 } | 422 } |
| 417 | 423 |
| 418 } // namespace net | 424 } // namespace net |
| OLD | NEW |