| 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 <inttypes.h> | 7 #include <inttypes.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 quic_migrate_sessions_early(false), | 138 quic_migrate_sessions_early(false), |
| 139 quic_allow_server_migration(false), | 139 quic_allow_server_migration(false), |
| 140 quic_disable_bidirectional_streams(false), | 140 quic_disable_bidirectional_streams(false), |
| 141 quic_force_hol_blocking(false), | 141 quic_force_hol_blocking(false), |
| 142 quic_race_cert_verification(false), | 142 quic_race_cert_verification(false), |
| 143 quic_do_not_fragment(false), | 143 quic_do_not_fragment(false), |
| 144 quic_estimate_initial_rtt(false), | 144 quic_estimate_initial_rtt(false), |
| 145 proxy_delegate(nullptr), | 145 proxy_delegate(nullptr), |
| 146 enable_token_binding(false), | 146 enable_token_binding(false), |
| 147 http_09_on_non_default_ports_enabled(false) { | 147 http_09_on_non_default_ports_enabled(false) { |
| 148 quic_supported_versions.push_back(QUIC_VERSION_37); | 148 quic_supported_versions.push_back(QUIC_VERSION_DEFAULT); |
| 149 } | 149 } |
| 150 | 150 |
| 151 HttpNetworkSession::Params::Params(const Params& other) = default; | 151 HttpNetworkSession::Params::Params(const Params& other) = default; |
| 152 | 152 |
| 153 HttpNetworkSession::Params::~Params() {} | 153 HttpNetworkSession::Params::~Params() {} |
| 154 | 154 |
| 155 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 155 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 156 HttpNetworkSession::HttpNetworkSession(const Params& params) | 156 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 157 : net_log_(params.net_log), | 157 : net_log_(params.net_log), |
| 158 http_server_properties_(params.http_server_properties), | 158 http_server_properties_(params.http_server_properties), |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 CloseIdleConnections(); | 468 CloseIdleConnections(); |
| 469 break; | 469 break; |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 | 472 |
| 473 void HttpNetworkSession::OnPurgeMemory() { | 473 void HttpNetworkSession::OnPurgeMemory() { |
| 474 CloseIdleConnections(); | 474 CloseIdleConnections(); |
| 475 } | 475 } |
| 476 | 476 |
| 477 } // namespace net | 477 } // namespace net |
| OLD | NEW |