Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: net/http/http_network_session.cc

Issue 2850653002: Enable NetProxyPreconnects experiment by default (Closed)
Patch Set: xunjieli comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698