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

Unified Diff: components/network_session_configurator/network_session_configurator.cc

Issue 2124753005: Implements migration of a QUIC connection to a different destination address if specified by the se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write-error
Patch Set: fixing linker error. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/network_session_configurator/network_session_configurator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_session_configurator/network_session_configurator.cc
diff --git a/components/network_session_configurator/network_session_configurator.cc b/components/network_session_configurator/network_session_configurator.cc
index 710daa6457810e74200e0584d1d92f7732beaff6..5df2b8e773d5eaf70f836db65d341699d97fab5d 100644
--- a/components/network_session_configurator/network_session_configurator.cc
+++ b/components/network_session_configurator/network_session_configurator.cc
@@ -284,6 +284,14 @@ bool ShouldQuicMigrateSessionsEarly(
GetVariationParam(quic_trial_params, "migrate_sessions_early"), "true");
}
+bool ShouldQuicAllowServerMigration(
+ const VariationParameters& quic_trial_params) {
+ return base::LowerCaseEqualsASCII(
+ GetVariationParam(quic_trial_params,
+ "allow_server_migration"),
+ "true");
+}
+
size_t GetQuicMaxPacketLength(const base::CommandLine& command_line,
const VariationParameters& quic_trial_params) {
if (command_line.HasSwitch(switches::kQuicMaxPacketLength)) {
@@ -394,6 +402,8 @@ void ConfigureQuicParams(const base::CommandLine& command_line,
ShouldQuicMigrateSessionsOnNetworkChange(quic_trial_params);
params->quic_migrate_sessions_early =
ShouldQuicMigrateSessionsEarly(quic_trial_params);
+ params->quic_allow_server_migration =
+ ShouldQuicAllowServerMigration(quic_trial_params);
}
size_t max_packet_length =
« no previous file with comments | « no previous file | components/network_session_configurator/network_session_configurator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698