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

Unified Diff: chrome/common/chrome_switches.cc

Issue 2916533002: Introduce chrome://flags/#network-prediction-options-for-service-worker
Patch Set: Created 3 years, 7 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
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 6901d29d53d926dec05af0ee695c18e7bcfc02f2..437fdf937b7199187cbc6f1d74fffdf22e87ae22 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -703,6 +703,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";

Powered by Google App Engine
This is Rietveld 408576698