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

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

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Addressed comments Created 5 years, 2 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Versions of QUIC which may be used. 166 // Versions of QUIC which may be used.
167 QuicVersionVector quic_supported_versions; 167 QuicVersionVector quic_supported_versions;
168 int quic_max_recent_disabled_reasons; 168 int quic_max_recent_disabled_reasons;
169 int quic_threshold_public_resets_post_handshake; 169 int quic_threshold_public_resets_post_handshake;
170 int quic_threshold_timeouts_streams_open; 170 int quic_threshold_timeouts_streams_open;
171 // Set of QUIC tags to send in the handshake's connection options. 171 // Set of QUIC tags to send in the handshake's connection options.
172 QuicTagVector quic_connection_options; 172 QuicTagVector quic_connection_options;
173 // If true, all QUIC sessions are closed when IP address of primary 173 // If true, all QUIC sessions are closed when IP address of primary
174 // interface changes. 174 // interface changes.
175 bool quic_close_sessions_on_ip_change; 175 bool quic_close_sessions_on_ip_change;
176 // If true, active QUIC sessions may be migrated onto new IPs on network
177 // changes.
178 bool quic_migrate_sessions_on_net_change;
176 ProxyDelegate* proxy_delegate; 179 ProxyDelegate* proxy_delegate;
177 }; 180 };
178 181
179 enum SocketPoolType { 182 enum SocketPoolType {
180 NORMAL_SOCKET_POOL, 183 NORMAL_SOCKET_POOL,
181 WEBSOCKET_SOCKET_POOL, 184 WEBSOCKET_SOCKET_POOL,
182 NUM_SOCKET_POOL_TYPES 185 NUM_SOCKET_POOL_TYPES
183 }; 186 };
184 187
185 explicit HttpNetworkSession(const Params& params); 188 explicit HttpNetworkSession(const Params& params);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 285
283 NextProtoVector next_protos_; 286 NextProtoVector next_protos_;
284 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 287 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
285 288
286 Params params_; 289 Params params_;
287 }; 290 };
288 291
289 } // namespace net 292 } // namespace net
290 293
291 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 294 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698