| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 for (QuicTagVector::const_iterator it = | 304 for (QuicTagVector::const_iterator it = |
| 305 params_.quic_connection_options.begin(); | 305 params_.quic_connection_options.begin(); |
| 306 it != params_.quic_connection_options.end(); ++it) { | 306 it != params_.quic_connection_options.end(); ++it) { |
| 307 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); | 307 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); |
| 308 } | 308 } |
| 309 dict->Set("connection_options", std::move(connection_options)); | 309 dict->Set("connection_options", std::move(connection_options)); |
| 310 dict->SetString("origin_to_force_quic_on", | 310 dict->SetString("origin_to_force_quic_on", |
| 311 params_.origin_to_force_quic_on.ToString()); | 311 params_.origin_to_force_quic_on.ToString()); |
| 312 dict->SetDouble("alternative_service_probability_threshold", | 312 dict->SetDouble("alternative_service_probability_threshold", |
| 313 params_.alternative_service_probability_threshold); | 313 params_.alternative_service_probability_threshold); |
| 314 dict->SetDouble("load_server_info_timeout_srtt_multiplier", |
| 315 params_.quic_load_server_info_timeout_srtt_multiplier); |
| 316 dict->SetBoolean("enable_connection_racing", |
| 317 params_.quic_enable_connection_racing); |
| 318 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); |
| 319 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); |
| 320 dict->SetInteger("max_number_of_lossy_connections", |
| 321 params_.quic_max_number_of_lossy_connections); |
| 322 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); |
| 323 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); |
| 324 dict->SetBoolean("store_server_configs_in_properties", |
| 325 params_.quic_store_server_configs_in_properties); |
| 326 dict->SetInteger("idle_connection_timeout_seconds", |
| 327 params_.quic_idle_connection_timeout_seconds); |
| 328 dict->SetBoolean("disable_preconnect_if_0rtt", |
| 329 params_.quic_disable_preconnect_if_0rtt); |
| 314 dict->SetString("disabled_reason", | 330 dict->SetString("disabled_reason", |
| 315 quic_stream_factory_.QuicDisabledReasonString()); | 331 quic_stream_factory_.QuicDisabledReasonString()); |
| 316 return std::move(dict); | 332 return std::move(dict); |
| 317 } | 333 } |
| 318 | 334 |
| 319 void HttpNetworkSession::CloseAllConnections() { | 335 void HttpNetworkSession::CloseAllConnections() { |
| 320 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); | 336 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); |
| 321 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); | 337 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); |
| 322 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); | 338 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); |
| 323 quic_stream_factory_.CloseAllSessions(ERR_ABORTED); | 339 quic_stream_factory_.CloseAllSessions(ERR_ABORTED); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 case WEBSOCKET_SOCKET_POOL: | 381 case WEBSOCKET_SOCKET_POOL: |
| 366 return websocket_socket_pool_manager_.get(); | 382 return websocket_socket_pool_manager_.get(); |
| 367 default: | 383 default: |
| 368 NOTREACHED(); | 384 NOTREACHED(); |
| 369 break; | 385 break; |
| 370 } | 386 } |
| 371 return NULL; | 387 return NULL; |
| 372 } | 388 } |
| 373 | 389 |
| 374 } // namespace net | 390 } // namespace net |
| OLD | NEW |