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

Unified Diff: chrome/common/chrome_switches.cc

Issue 2916533002: Introduce chrome://flags/#network-prediction-options-for-service-worker
Patch Set: use StartServiceWorkerForNavigationHint Created 3 years, 6 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 | « chrome/common/chrome_switches.h ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 4f5ce400b56f8d6896e768fcb4e0cb70d944661f..d42d40ad7a7858511fac183115d209d4ab56547a 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -672,6 +672,18 @@ const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
// enabled: Guaranteed prerendering.
const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
+// Network prediction options for service worker controlled pages.
+// - PreconnectOnly (default): Execute the preconnection on navigations.
+// - StartServiceWorkerAndPreconnect: Start the service worker and execute the
+// preconnection in parallel on navigations.
+// - StartServiceWorkerAndDeferPreconnect: Start the service worker on
+// navigations, and defer the preconnection until the service worker startup.
+// - StartServiceWorkerOnly: Start the service worker on navigations and do not
+// execute the preconnection.
+// See https://crbug.com/727544 for the details.
+const char kNetworkPredictionOptionsForServiceWorker[] =
+ "network-prediction-options-for-service-worker";
+
// Use IPv6 only for privet HTTP.
const char kPrivetIPv6Only[] = "privet-ipv6-only";
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698