| 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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 for (QuicTagVector::const_iterator it = | 261 for (QuicTagVector::const_iterator it = |
| 262 params_.quic_connection_options.begin(); | 262 params_.quic_connection_options.begin(); |
| 263 it != params_.quic_connection_options.end(); ++it) { | 263 it != params_.quic_connection_options.end(); ++it) { |
| 264 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); | 264 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); |
| 265 } | 265 } |
| 266 dict->Set("connection_options", connection_options); | 266 dict->Set("connection_options", connection_options); |
| 267 dict->SetBoolean("enable_quic_time_based_loss_detection", | 267 dict->SetBoolean("enable_quic_time_based_loss_detection", |
| 268 params_.enable_quic_time_based_loss_detection); | 268 params_.enable_quic_time_based_loss_detection); |
| 269 dict->SetString("origin_to_force_quic_on", | 269 dict->SetString("origin_to_force_quic_on", |
| 270 params_.origin_to_force_quic_on.ToString()); | 270 params_.origin_to_force_quic_on.ToString()); |
| 271 dict->SetDouble("alternate_protocol_probability_threshold", |
| 272 params_.alternate_protocol_probability_threshold); |
| 271 return dict; | 273 return dict; |
| 272 } | 274 } |
| 273 | 275 |
| 274 void HttpNetworkSession::CloseAllConnections() { | 276 void HttpNetworkSession::CloseAllConnections() { |
| 275 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); | 277 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); |
| 276 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); | 278 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); |
| 277 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); | 279 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); |
| 278 quic_stream_factory_.CloseAllSessions(ERR_ABORTED); | 280 quic_stream_factory_.CloseAllSessions(ERR_ABORTED); |
| 279 } | 281 } |
| 280 | 282 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 case WEBSOCKET_SOCKET_POOL: | 315 case WEBSOCKET_SOCKET_POOL: |
| 314 return websocket_socket_pool_manager_.get(); | 316 return websocket_socket_pool_manager_.get(); |
| 315 default: | 317 default: |
| 316 NOTREACHED(); | 318 NOTREACHED(); |
| 317 break; | 319 break; |
| 318 } | 320 } |
| 319 return NULL; | 321 return NULL; |
| 320 } | 322 } |
| 321 | 323 |
| 322 } // namespace net | 324 } // namespace net |
| OLD | NEW |