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