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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; | 772 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process"; |
773 | 773 |
774 // Aggressively preload the default search engine's Instant URL, so it's ready | 774 // Aggressively preload the default search engine's Instant URL, so it's ready |
775 // to receive queries. Only has an effect if Instant is turned on (via "Enable | 775 // to receive queries. Only has an effect if Instant is turned on (via "Enable |
776 // Instant for faster searching and browsing" in Preferences -> Basics). | 776 // Instant for faster searching and browsing" in Preferences -> Basics). |
777 const char kPreloadInstantSearch[] = "preload-instant-search"; | 777 const char kPreloadInstantSearch[] = "preload-instant-search"; |
778 | 778 |
779 // Controls speculative prerendering of pages, and content prefetching. Both | 779 // Controls speculative prerendering of pages, and content prefetching. Both |
780 // are dispatched from <link rel=prefetch href=...> elements. | 780 // are dispatched from <link rel=prefetch href=...> elements. |
781 const char kPrerender[] = "prerender"; | 781 const char kPrerender[] = "prerender"; |
| 782 // Trigger prerendering of pages from suggestions in the omnibox. Only has an |
| 783 // effect when Instant is either disabled or restricted to search, and when |
| 784 // prerender is enabled. |
| 785 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox"; |
782 // These are the values the switch may have, as in "--prerender=auto". | 786 // These are the values the switch may have, as in "--prerender=auto". |
783 // auto: Allow field trial selection in both prerender and prefetch. | 787 // auto: Allow field trial selection in both prerender and prefetch. |
784 const char kPrerenderSwitchValueAuto[] = "auto"; | 788 const char kPrerenderSwitchValueAuto[] = "auto"; |
785 // disabled: No prerendering or prefetching. | 789 // disabled: No prerendering or prefetching. |
786 const char kPrerenderSwitchValueDisabled[] = "disabled"; | 790 const char kPrerenderSwitchValueDisabled[] = "disabled"; |
787 // enabled: Both prerendering and prefetching. | 791 // enabled: Both prerendering and prefetching. |
788 const char kPrerenderSwitchValueEnabled[] = "enabled"; | 792 const char kPrerenderSwitchValueEnabled[] = "enabled"; |
789 // prefetch_only: No prerendering, but enable prefetching. | 793 // prefetch_only: No prerendering, but enable prefetching. |
790 const char kPrerenderSwitchValuePrefetchOnly[] = "prefetch_only"; | 794 const char kPrerenderSwitchValuePrefetchOnly[] = "prefetch_only"; |
791 | 795 |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 | 1190 |
1187 // ----------------------------------------------------------------------------- | 1191 // ----------------------------------------------------------------------------- |
1188 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1192 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1189 // | 1193 // |
1190 // You were going to just dump your switches here, weren't you? Instead, | 1194 // You were going to just dump your switches here, weren't you? Instead, |
1191 // please put them in alphabetical order above, or in order inside the | 1195 // please put them in alphabetical order above, or in order inside the |
1192 // appropriate ifdef at the bottom. The order should match the header. | 1196 // appropriate ifdef at the bottom. The order should match the header. |
1193 // ----------------------------------------------------------------------------- | 1197 // ----------------------------------------------------------------------------- |
1194 | 1198 |
1195 } // namespace switches | 1199 } // namespace switches |
OLD | NEW |