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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 quic_always_require_handshake_confirmation(false), | 108 quic_always_require_handshake_confirmation(false), |
109 quic_disable_connection_pooling(false), | 109 quic_disable_connection_pooling(false), |
110 quic_load_server_info_timeout_srtt_multiplier(0.25f), | 110 quic_load_server_info_timeout_srtt_multiplier(0.25f), |
111 quic_enable_connection_racing(false), | 111 quic_enable_connection_racing(false), |
112 quic_enable_non_blocking_io(false), | 112 quic_enable_non_blocking_io(false), |
113 quic_disable_disk_cache(false), | 113 quic_disable_disk_cache(false), |
114 quic_prefer_aes(false), | 114 quic_prefer_aes(false), |
115 quic_max_number_of_lossy_connections(0), | 115 quic_max_number_of_lossy_connections(0), |
116 quic_packet_loss_threshold(1.0f), | 116 quic_packet_loss_threshold(1.0f), |
117 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), | 117 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), |
118 quic_delay_tcp_race(false), | |
119 quic_max_server_configs_stored_in_properties(0u), | 118 quic_max_server_configs_stored_in_properties(0u), |
120 quic_clock(NULL), | 119 quic_clock(NULL), |
121 quic_random(NULL), | 120 quic_random(NULL), |
122 quic_max_packet_length(kDefaultMaxPacketSize), | 121 quic_max_packet_length(kDefaultMaxPacketSize), |
123 enable_user_alternate_protocol_ports(false), | 122 enable_user_alternate_protocol_ports(false), |
124 quic_crypto_client_stream_factory( | 123 quic_crypto_client_stream_factory( |
125 QuicCryptoClientStreamFactory::GetDefaultFactory()), | 124 QuicCryptoClientStreamFactory::GetDefaultFactory()), |
126 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), | 125 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), |
127 quic_threshold_public_resets_post_handshake(0), | 126 quic_threshold_public_resets_post_handshake(0), |
128 quic_threshold_timeouts_streams_open(0), | 127 quic_threshold_timeouts_streams_open(0), |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 params.quic_enable_connection_racing, | 173 params.quic_enable_connection_racing, |
175 params.quic_enable_non_blocking_io, | 174 params.quic_enable_non_blocking_io, |
176 params.quic_disable_disk_cache, | 175 params.quic_disable_disk_cache, |
177 params.quic_prefer_aes, | 176 params.quic_prefer_aes, |
178 params.quic_max_number_of_lossy_connections, | 177 params.quic_max_number_of_lossy_connections, |
179 params.quic_packet_loss_threshold, | 178 params.quic_packet_loss_threshold, |
180 params.quic_max_recent_disabled_reasons, | 179 params.quic_max_recent_disabled_reasons, |
181 params.quic_threshold_public_resets_post_handshake, | 180 params.quic_threshold_public_resets_post_handshake, |
182 params.quic_threshold_timeouts_streams_open, | 181 params.quic_threshold_timeouts_streams_open, |
183 params.quic_socket_receive_buffer_size, | 182 params.quic_socket_receive_buffer_size, |
184 params.quic_delay_tcp_race, | |
185 params.quic_max_server_configs_stored_in_properties, | 183 params.quic_max_server_configs_stored_in_properties, |
186 params.quic_close_sessions_on_ip_change, | 184 params.quic_close_sessions_on_ip_change, |
187 params.disable_quic_on_timeout_with_open_streams, | 185 params.disable_quic_on_timeout_with_open_streams, |
188 params.quic_idle_connection_timeout_seconds, | 186 params.quic_idle_connection_timeout_seconds, |
189 params.quic_migrate_sessions_on_network_change, | 187 params.quic_migrate_sessions_on_network_change, |
190 params.quic_migrate_sessions_early, | 188 params.quic_migrate_sessions_early, |
191 params.quic_connection_options, | 189 params.quic_connection_options, |
192 params.enable_token_binding), | 190 params.enable_token_binding), |
193 spdy_session_pool_(params.host_resolver, | 191 spdy_session_pool_(params.host_resolver, |
194 params.ssl_config_service, | 192 params.ssl_config_service, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 327 |
330 dict->SetDouble("load_server_info_timeout_srtt_multiplier", | 328 dict->SetDouble("load_server_info_timeout_srtt_multiplier", |
331 params_.quic_load_server_info_timeout_srtt_multiplier); | 329 params_.quic_load_server_info_timeout_srtt_multiplier); |
332 dict->SetBoolean("enable_connection_racing", | 330 dict->SetBoolean("enable_connection_racing", |
333 params_.quic_enable_connection_racing); | 331 params_.quic_enable_connection_racing); |
334 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); | 332 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); |
335 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); | 333 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); |
336 dict->SetInteger("max_number_of_lossy_connections", | 334 dict->SetInteger("max_number_of_lossy_connections", |
337 params_.quic_max_number_of_lossy_connections); | 335 params_.quic_max_number_of_lossy_connections); |
338 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); | 336 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); |
339 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); | 337 dict->SetBoolean("delay_tcp_race", true); |
340 dict->SetInteger("max_server_configs_stored_in_properties", | 338 dict->SetInteger("max_server_configs_stored_in_properties", |
341 params_.quic_max_server_configs_stored_in_properties); | 339 params_.quic_max_server_configs_stored_in_properties); |
342 dict->SetInteger("idle_connection_timeout_seconds", | 340 dict->SetInteger("idle_connection_timeout_seconds", |
343 params_.quic_idle_connection_timeout_seconds); | 341 params_.quic_idle_connection_timeout_seconds); |
344 dict->SetBoolean("disable_preconnect_if_0rtt", | 342 dict->SetBoolean("disable_preconnect_if_0rtt", |
345 params_.quic_disable_preconnect_if_0rtt); | 343 params_.quic_disable_preconnect_if_0rtt); |
346 dict->SetBoolean("disable_quic_on_timeout_with_open_streams", | 344 dict->SetBoolean("disable_quic_on_timeout_with_open_streams", |
347 params_.disable_quic_on_timeout_with_open_streams); | 345 params_.disable_quic_on_timeout_with_open_streams); |
348 dict->SetString("disabled_reason", | 346 dict->SetString("disabled_reason", |
349 quic_stream_factory_.QuicDisabledReasonString()); | 347 quic_stream_factory_.QuicDisabledReasonString()); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 case WEBSOCKET_SOCKET_POOL: | 405 case WEBSOCKET_SOCKET_POOL: |
408 return websocket_socket_pool_manager_.get(); | 406 return websocket_socket_pool_manager_.get(); |
409 default: | 407 default: |
410 NOTREACHED(); | 408 NOTREACHED(); |
411 break; | 409 break; |
412 } | 410 } |
413 return NULL; | 411 return NULL; |
414 } | 412 } |
415 | 413 |
416 } // namespace net | 414 } // namespace net |
OLD | NEW |