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

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

Issue 2916533002: Introduce chrome://flags/#network-prediction-options-for-service-worker
Patch Set: use StartServiceWorkerForNavigationHint Created 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; 665 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
666 666
667 // These are the values the kPrerenderFromOmnibox switch may have, as in 667 // These are the values the kPrerenderFromOmnibox switch may have, as in
668 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. 668 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
669 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; 669 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
670 // disabled: No prerendering. 670 // disabled: No prerendering.
671 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; 671 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
672 // enabled: Guaranteed prerendering. 672 // enabled: Guaranteed prerendering.
673 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled"; 673 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
674 674
675 // Network prediction options for service worker controlled pages.
676 // - PreconnectOnly (default): Execute the preconnection on navigations.
677 // - StartServiceWorkerAndPreconnect: Start the service worker and execute the
678 // preconnection in parallel on navigations.
679 // - StartServiceWorkerAndDeferPreconnect: Start the service worker on
680 // navigations, and defer the preconnection until the service worker startup.
681 // - StartServiceWorkerOnly: Start the service worker on navigations and do not
682 // execute the preconnection.
683 // See https://crbug.com/727544 for the details.
684 const char kNetworkPredictionOptionsForServiceWorker[] =
685 "network-prediction-options-for-service-worker";
686
675 // Use IPv6 only for privet HTTP. 687 // Use IPv6 only for privet HTTP.
676 const char kPrivetIPv6Only[] = "privet-ipv6-only"; 688 const char kPrivetIPv6Only[] = "privet-ipv6-only";
677 689
678 // Outputs the product version information and quit. Used as an internal api to 690 // Outputs the product version information and quit. Used as an internal api to
679 // detect the installed version of Chrome on Linux. 691 // detect the installed version of Chrome on Linux.
680 const char kProductVersion[] = "product-version"; 692 const char kProductVersion[] = "product-version";
681 693
682 // Selects directory of profile to associate with the first browser launched. 694 // Selects directory of profile to associate with the first browser launched.
683 const char kProfileDirectory[] = "profile-directory"; 695 const char kProfileDirectory[] = "profile-directory";
684 696
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 1178
1167 // ----------------------------------------------------------------------------- 1179 // -----------------------------------------------------------------------------
1168 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1180 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1169 // 1181 //
1170 // You were going to just dump your switches here, weren't you? Instead, please 1182 // You were going to just dump your switches here, weren't you? Instead, please
1171 // put them in alphabetical order above, or in order inside the appropriate 1183 // put them in alphabetical order above, or in order inside the appropriate
1172 // ifdef at the bottom. The order should match the header. 1184 // ifdef at the bottom. The order should match the header.
1173 // ----------------------------------------------------------------------------- 1185 // -----------------------------------------------------------------------------
1174 1186
1175 } // namespace switches 1187 } // namespace switches
OLDNEW
« 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