OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Whether we should prevent the new tab page from showing the first run | 177 // Whether we should prevent the new tab page from showing the first run |
178 // notification. | 178 // notification. |
179 const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run"; | 179 const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run"; |
180 | 180 |
181 // Prevent plugins from running. | 181 // Prevent plugins from running. |
182 const char kDisablePlugins[] = "disable-plugins"; | 182 const char kDisablePlugins[] = "disable-plugins"; |
183 | 183 |
184 // Disable pop-up blocking. | 184 // Disable pop-up blocking. |
185 const char kDisablePopupBlocking[] = "disable-popup-blocking"; | 185 const char kDisablePopupBlocking[] = "disable-popup-blocking"; |
186 | 186 |
| 187 // Disable requests that webkit labels TargetIsPrefetch. As of |
| 188 // writing only <link rel=prefetch...> but also eventually |
| 189 // Link: headers. |
| 190 const char kDisablePrefetch[] = "disable-prefetch"; |
| 191 |
187 // Normally when the user attempts to navigate to a page that was the result of | 192 // Normally when the user attempts to navigate to a page that was the result of |
188 // a post we prompt to make sure they want to. This switch may be used to | 193 // a post we prompt to make sure they want to. This switch may be used to |
189 // disable that check. This switch is used during automated testing. | 194 // disable that check. This switch is used during automated testing. |
190 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 195 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
191 | 196 |
192 // Disable remote web font support. SVG font should always work whether | 197 // Disable remote web font support. SVG font should always work whether |
193 // this option is specified or not. | 198 // this option is specified or not. |
194 const char kDisableRemoteFonts[] = "disable-remote-fonts"; | 199 const char kDisableRemoteFonts[] = "disable-remote-fonts"; |
195 | 200 |
196 // Turns off the accessibility in the renderer. | 201 // Turns off the accessibility in the renderer. |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 | 1132 |
1128 // ----------------------------------------------------------------------------- | 1133 // ----------------------------------------------------------------------------- |
1129 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1134 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1130 // | 1135 // |
1131 // You were going to just dump your switches here, weren't you? Instead, | 1136 // You were going to just dump your switches here, weren't you? Instead, |
1132 // please put them in alphabetical order above, or in order inside the | 1137 // please put them in alphabetical order above, or in order inside the |
1133 // appropriate ifdef at the bottom. The order should match the header. | 1138 // appropriate ifdef at the bottom. The order should match the header. |
1134 // ----------------------------------------------------------------------------- | 1139 // ----------------------------------------------------------------------------- |
1135 | 1140 |
1136 } // namespace switches | 1141 } // namespace switches |
OLD | NEW |