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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 quic_migrate_sessions_early(false), | 139 quic_migrate_sessions_early(false), |
140 quic_allow_server_migration(false), | 140 quic_allow_server_migration(false), |
141 quic_disable_bidirectional_streams(false), | 141 quic_disable_bidirectional_streams(false), |
142 quic_force_hol_blocking(false), | 142 quic_force_hol_blocking(false), |
143 quic_race_cert_verification(false), | 143 quic_race_cert_verification(false), |
144 quic_do_not_fragment(false), | 144 quic_do_not_fragment(false), |
145 quic_do_not_mark_as_broken_on_network_change(false), | 145 quic_do_not_mark_as_broken_on_network_change(false), |
146 quic_estimate_initial_rtt(false), | 146 quic_estimate_initial_rtt(false), |
147 proxy_delegate(nullptr), | 147 proxy_delegate(nullptr), |
148 enable_token_binding(false), | 148 enable_token_binding(false), |
149 http_09_on_non_default_ports_enabled(false), | 149 http_09_on_non_default_ports_enabled(false) { |
150 restrict_to_one_preconnect_for_proxies(false) { | |
151 quic_supported_versions.push_back(QUIC_VERSION_37); | 150 quic_supported_versions.push_back(QUIC_VERSION_37); |
152 } | 151 } |
153 | 152 |
154 HttpNetworkSession::Params::Params(const Params& other) = default; | 153 HttpNetworkSession::Params::Params(const Params& other) = default; |
155 | 154 |
156 HttpNetworkSession::Params::~Params() {} | 155 HttpNetworkSession::Params::~Params() {} |
157 | 156 |
158 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 157 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
159 HttpNetworkSession::HttpNetworkSession(const Params& params) | 158 HttpNetworkSession::HttpNetworkSession(const Params& params) |
160 : net_log_(params.net_log), | 159 : net_log_(params.net_log), |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 CloseIdleConnections(); | 473 CloseIdleConnections(); |
475 break; | 474 break; |
476 } | 475 } |
477 } | 476 } |
478 | 477 |
479 void HttpNetworkSession::OnPurgeMemory() { | 478 void HttpNetworkSession::OnPurgeMemory() { |
480 CloseIdleConnections(); | 479 CloseIdleConnections(); |
481 } | 480 } |
482 | 481 |
483 } // namespace net | 482 } // namespace net |
OLD | NEW |