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

Unified Diff: chrome/browser/io_thread.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: More tests added and some fixes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | net/quic/quic_stream_factory.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index d95d7ee56cf1870c7d5719ce9a3ac7707ecab949..312e81adac71e5416e656a8ea3a2d871678ebb16 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -233,6 +233,7 @@ class IOThread : public content::BrowserThreadDelegate {
Optional<bool> quic_close_sessions_on_ip_change;
Optional<int> quic_idle_connection_timeout_seconds;
Optional<bool> quic_disable_preconnect_if_0rtt;
+ Optional<bool> quic_migrate_sessions_on_network_change;
bool enable_user_alternate_protocol_ports;
// NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
// main frame load fails with a DNS error in order to provide more useful
@@ -453,6 +454,10 @@ class IOThread : public content::BrowserThreadDelegate {
// Returns true if PreConnect should be disabled if QUIC can do 0RTT.
static bool ShouldQuicDisablePreConnectIfZeroRtt(
+
+ // Returns true if QUIC should migrate sessions when primary network
+ // changes.
+ static bool ShouldQuicMigrateSessionsOnNetworkChange(
const VariationParameters& quic_trial_params);
// Returns the maximum length for QUIC packets, based on any flags in
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | net/quic/quic_stream_factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698