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

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

Issue 2537503002: [Prerender] Get the prerender mode from Finch field trial. (Closed)
Patch Set: Feature API Created 4 years 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; 736 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
737 737
738 // These are the values the kPrerenderFromOmnibox switch may have, as in 738 // These are the values the kPrerenderFromOmnibox switch may have, as in
739 // "--prerender-from-omnibox=auto". auto: Allow field trial selection. 739 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
740 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto"; 740 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
741 // disabled: No prerendering. 741 // disabled: No prerendering.
742 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled"; 742 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
743 // enabled: Guaranteed prerendering. 743 // enabled: Guaranteed prerendering.
744 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled"; 744 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
745 745
746 // Controls speculative prerendering of pages, and content prefetching. Both
747 // are dispatched from <link rel=prefetch href=...> elements.
748 const char kPrerenderMode[] = "prerender";
749
750 // These are the values the kPrerenderMode switch may have, as in
751 // "--prerender=disabled".
752 // disabled: No prerendering.
753 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
754 // enabled: Prerendering.
755 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
756 // prefetch: NoState Prefetch experiment.
757 const char kPrerenderModeSwitchValuePrefetch[] = "prefetch";
758 // simple-load: experiment with prerendering disabled but metrics reporting
759 // enabled, to use as a reference for comparisons.
760 const char kPrerenderModeSwitchValueSimpleLoad[] = "simple-load";
761
762 // Use IPv6 only for privet HTTP. 746 // Use IPv6 only for privet HTTP.
763 const char kPrivetIPv6Only[] = "privet-ipv6-only"; 747 const char kPrivetIPv6Only[] = "privet-ipv6-only";
764 748
765 // Outputs the product version information and quit. Used as an internal api to 749 // Outputs the product version information and quit. Used as an internal api to
766 // detect the installed version of Chrome on Linux. 750 // detect the installed version of Chrome on Linux.
767 const char kProductVersion[] = "product-version"; 751 const char kProductVersion[] = "product-version";
768 752
769 // Selects directory of profile to associate with the first browser launched. 753 // Selects directory of profile to associate with the first browser launched.
770 const char kProfileDirectory[] = "profile-directory"; 754 const char kProfileDirectory[] = "profile-directory";
771 755
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 1297
1314 // ----------------------------------------------------------------------------- 1298 // -----------------------------------------------------------------------------
1315 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1299 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1316 // 1300 //
1317 // You were going to just dump your switches here, weren't you? Instead, please 1301 // You were going to just dump your switches here, weren't you? Instead, please
1318 // put them in alphabetical order above, or in order inside the appropriate 1302 // put them in alphabetical order above, or in order inside the appropriate
1319 // ifdef at the bottom. The order should match the header. 1303 // ifdef at the bottom. The order should match the header.
1320 // ----------------------------------------------------------------------------- 1304 // -----------------------------------------------------------------------------
1321 1305
1322 } // namespace switches 1306 } // namespace switches
OLDNEW
« chrome/browser/prerender/prerender_unittest.cc ('K') | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698