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

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

Issue 1502453003: QUIC - Disable Preconnect when QUIC can be spoken to a server with 0RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test name Created 5 years 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 | « no previous file | net/http/http_network_session.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 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 QuicVersionVector quic_supported_versions; 168 QuicVersionVector quic_supported_versions;
169 int quic_max_recent_disabled_reasons; 169 int quic_max_recent_disabled_reasons;
170 int quic_threshold_public_resets_post_handshake; 170 int quic_threshold_public_resets_post_handshake;
171 int quic_threshold_timeouts_streams_open; 171 int quic_threshold_timeouts_streams_open;
172 // Set of QUIC tags to send in the handshake's connection options. 172 // Set of QUIC tags to send in the handshake's connection options.
173 QuicTagVector quic_connection_options; 173 QuicTagVector quic_connection_options;
174 // If true, all QUIC sessions are closed when any local IP address changes. 174 // If true, all QUIC sessions are closed when any local IP address changes.
175 bool quic_close_sessions_on_ip_change; 175 bool quic_close_sessions_on_ip_change;
176 // Specifes QUIC idle connection state lifetime. 176 // Specifes QUIC idle connection state lifetime.
177 int quic_idle_connection_timeout_seconds; 177 int quic_idle_connection_timeout_seconds;
178 // If true, disable preconnections if QUIC can do 0RTT.
179 bool quic_disable_preconnect_if_0rtt;
178 ProxyDelegate* proxy_delegate; 180 ProxyDelegate* proxy_delegate;
179 }; 181 };
180 182
181 enum SocketPoolType { 183 enum SocketPoolType {
182 NORMAL_SOCKET_POOL, 184 NORMAL_SOCKET_POOL,
183 WEBSOCKET_SOCKET_POOL, 185 WEBSOCKET_SOCKET_POOL,
184 NUM_SOCKET_POOL_TYPES 186 NUM_SOCKET_POOL_TYPES
185 }; 187 };
186 188
187 explicit HttpNetworkSession(const Params& params); 189 explicit HttpNetworkSession(const Params& params);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 289
288 NextProtoVector next_protos_; 290 NextProtoVector next_protos_;
289 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 291 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
290 292
291 Params params_; 293 Params params_;
292 }; 294 };
293 295
294 } // namespace net 296 } // namespace net
295 297
296 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 298 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698