| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 dict->SetInteger("max_number_of_lossy_connections", | 333 dict->SetInteger("max_number_of_lossy_connections", |
| 334 params_.quic_max_number_of_lossy_connections); | 334 params_.quic_max_number_of_lossy_connections); |
| 335 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); | 335 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); |
| 336 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); | 336 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race); |
| 337 dict->SetInteger("max_server_configs_stored_in_properties", | 337 dict->SetInteger("max_server_configs_stored_in_properties", |
| 338 params_.quic_max_server_configs_stored_in_properties); | 338 params_.quic_max_server_configs_stored_in_properties); |
| 339 dict->SetInteger("idle_connection_timeout_seconds", | 339 dict->SetInteger("idle_connection_timeout_seconds", |
| 340 params_.quic_idle_connection_timeout_seconds); | 340 params_.quic_idle_connection_timeout_seconds); |
| 341 dict->SetBoolean("disable_preconnect_if_0rtt", | 341 dict->SetBoolean("disable_preconnect_if_0rtt", |
| 342 params_.quic_disable_preconnect_if_0rtt); | 342 params_.quic_disable_preconnect_if_0rtt); |
| 343 dict->SetBoolean("disable_quic_on_timeout_with_open_streams", |
| 344 params_.disable_quic_on_timeout_with_open_streams); |
| 343 dict->SetString("disabled_reason", | 345 dict->SetString("disabled_reason", |
| 344 quic_stream_factory_.QuicDisabledReasonString()); | 346 quic_stream_factory_.QuicDisabledReasonString()); |
| 345 return std::move(dict); | 347 return std::move(dict); |
| 346 } | 348 } |
| 347 | 349 |
| 348 void HttpNetworkSession::CloseAllConnections() { | 350 void HttpNetworkSession::CloseAllConnections() { |
| 349 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); | 351 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); |
| 350 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); | 352 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); |
| 351 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); | 353 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); |
| 352 quic_stream_factory_.CloseAllSessions(ERR_ABORTED, QUIC_INTERNAL_ERROR); | 354 quic_stream_factory_.CloseAllSessions(ERR_ABORTED, QUIC_INTERNAL_ERROR); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 case WEBSOCKET_SOCKET_POOL: | 390 case WEBSOCKET_SOCKET_POOL: |
| 389 return websocket_socket_pool_manager_.get(); | 391 return websocket_socket_pool_manager_.get(); |
| 390 default: | 392 default: |
| 391 NOTREACHED(); | 393 NOTREACHED(); |
| 392 break; | 394 break; |
| 393 } | 395 } |
| 394 return NULL; | 396 return NULL; |
| 395 } | 397 } |
| 396 | 398 |
| 397 } // namespace net | 399 } // namespace net |
| OLD | NEW |