OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; | 742 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; |
743 | 743 |
744 // Aggressively preload the default search engine's Instant URL, so it's ready | 744 // Aggressively preload the default search engine's Instant URL, so it's ready |
745 // to receive queries. Only has an effect if Instant is turned on (via "Enable | 745 // to receive queries. Only has an effect if Instant is turned on (via "Enable |
746 // Instant for faster searching and browsing" in Preferences -> Basics). | 746 // Instant for faster searching and browsing" in Preferences -> Basics). |
747 const char kPreloadInstantSearch[] = "preload-instant-search"; | 747 const char kPreloadInstantSearch[] = "preload-instant-search"; |
748 | 748 |
749 // Controls speculative prerendering of pages, and content prefetching. Both | 749 // Controls speculative prerendering of pages, and content prefetching. Both |
750 // are dispatched from <link rel=prefetch href=...> elements. | 750 // are dispatched from <link rel=prefetch href=...> elements. |
751 const char kPrerender[] = "prerender"; | 751 const char kPrerender[] = "prerender"; |
| 752 // Trigger prerendering of pages from suggestions in the omnibox. Only has an |
| 753 // effect when Instant is either disabled or restricted to search, and when |
| 754 // prerender is enabled. |
| 755 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; |
752 // These are the values the switch may have, as in "--prerender=auto". | 756 // These are the values the switch may have, as in "--prerender=auto". |
753 // auto: Allow field trial selection in both prerender and prefetch. | 757 // auto: Allow field trial selection in both prerender and prefetch. |
754 const char kPrerenderSwitchValueAuto[] = "auto"; | 758 const char kPrerenderSwitchValueAuto[] = "auto"; |
755 // disabled: No prerendering or prefetching. | 759 // disabled: No prerendering or prefetching. |
756 const char kPrerenderSwitchValueDisabled[] = "disabled"; | 760 const char kPrerenderSwitchValueDisabled[] = "disabled"; |
757 // enabled: Both prerendering and prefetching. | 761 // enabled: Both prerendering and prefetching. |
758 const char kPrerenderSwitchValueEnabled[] = "enabled"; | 762 const char kPrerenderSwitchValueEnabled[] = "enabled"; |
759 // prefetch_only: No prerendering, but enable prefetching. | 763 // prefetch_only: No prerendering, but enable prefetching. |
760 const char kPrerenderSwitchValuePrefetchOnly[] = "prefetch_only"; | 764 const char kPrerenderSwitchValuePrefetchOnly[] = "prefetch_only"; |
761 | 765 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1150 |
1147 // ----------------------------------------------------------------------------- | 1151 // ----------------------------------------------------------------------------- |
1148 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1152 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1149 // | 1153 // |
1150 // You were going to just dump your switches here, weren't you? Instead, | 1154 // You were going to just dump your switches here, weren't you? Instead, |
1151 // please put them in alphabetical order above, or in order inside the | 1155 // please put them in alphabetical order above, or in order inside the |
1152 // appropriate ifdef at the bottom. The order should match the header. | 1156 // appropriate ifdef at the bottom. The order should match the header. |
1153 // ----------------------------------------------------------------------------- | 1157 // ----------------------------------------------------------------------------- |
1154 | 1158 |
1155 } // namespace switches | 1159 } // namespace switches |
OLD | NEW |