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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2916533002: Introduce chrome://flags/#network-prediction-options-for-service-worker
Patch Set: 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 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 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; 696 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
697 697
698 // These are the values the kPrerenderFromOmnibox switch may have, as in 698 // These are the values the kPrerenderFromOmnibox switch may have, as in
699 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. 699 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
700 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; 700 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
701 // disabled: No prerendering. 701 // disabled: No prerendering.
702 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; 702 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
703 // enabled: Guaranteed prerendering. 703 // enabled: Guaranteed prerendering.
704 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled"; 704 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
705 705
706 // Network prediction options for service worker controlled pages.
707 // - PreconnectOnly (default): Execute the preconnection on navigations.
708 // - StartServiceWorkerAndPreconnect: Start the service worker and execute the
709 // preconnection in parallel on navigations.
710 // - StartServiceWorkerAndDeferPreconnect: Start the service worker on
711 // navigations, and defer the preconnection until the service worker startup.
712 // - StartServiceWorkerOnly: Start the service worker on navigations and do not
713 // execute the preconnection.
714 // See https://crbug.com/727544 for the details.
715 const char kNetworkPredictionOptionsForServiceWorker[] =
716 "network-prediction-options-for-service-worker";
717
706 // Use IPv6 only for privet HTTP. 718 // Use IPv6 only for privet HTTP.
707 const char kPrivetIPv6Only[] = "privet-ipv6-only"; 719 const char kPrivetIPv6Only[] = "privet-ipv6-only";
708 720
709 // Outputs the product version information and quit. Used as an internal api to 721 // Outputs the product version information and quit. Used as an internal api to
710 // detect the installed version of Chrome on Linux. 722 // detect the installed version of Chrome on Linux.
711 const char kProductVersion[] = "product-version"; 723 const char kProductVersion[] = "product-version";
712 724
713 // Selects directory of profile to associate with the first browser launched. 725 // Selects directory of profile to associate with the first browser launched.
714 const char kProfileDirectory[] = "profile-directory"; 726 const char kProfileDirectory[] = "profile-directory";
715 727
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1208
1197 // ----------------------------------------------------------------------------- 1209 // -----------------------------------------------------------------------------
1198 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1210 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1199 // 1211 //
1200 // You were going to just dump your switches here, weren't you? Instead, please 1212 // You were going to just dump your switches here, weren't you? Instead, please
1201 // put them in alphabetical order above, or in order inside the appropriate 1213 // put them in alphabetical order above, or in order inside the appropriate
1202 // ifdef at the bottom. The order should match the header. 1214 // ifdef at the bottom. The order should match the header.
1203 // ----------------------------------------------------------------------------- 1215 // -----------------------------------------------------------------------------
1204 1216
1205 } // namespace switches 1217 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698