OLD | NEW |
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 // Defines all the command-line switches used by Chrome. | 5 // Defines all the command-line switches used by Chrome. |
6 | 6 |
7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ | 7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ |
8 #define CHROME_COMMON_CHROME_SWITCHES_H_ | 8 #define CHROME_COMMON_CHROME_SWITCHES_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 #include "base/base_switches.h" | 13 #include "base/base_switches.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 | 15 |
16 namespace switches { | 16 namespace switches { |
17 | 17 |
18 // ----------------------------------------------------------------------------- | 18 // ----------------------------------------------------------------------------- |
19 // Can't find the switch you are looking for? Try looking in | 19 // Can't find the switch you are looking for? Try looking in |
20 // ui/gfx/gl/gl_switches.cc or base/base_switches.cc or | 20 // ui/gfx/gl/gl_switches.cc or base/base_switches.cc or |
21 // content/common/content_switches.cc or media/base/media_switches.cc instead. | 21 // content/public/common/content_switches.cc or media/base/media_switches.cc |
| 22 // instead. |
22 // ----------------------------------------------------------------------------- | 23 // ----------------------------------------------------------------------------- |
23 | 24 |
24 // All switches in alphabetical order. The switches should be documented | 25 // All switches in alphabetical order. The switches should be documented |
25 // alongside the definition of their values in the .cc file. | 26 // alongside the definition of their values in the .cc file. |
26 extern const char kAllowCrossOriginAuthPrompt[]; | 27 extern const char kAllowCrossOriginAuthPrompt[]; |
27 extern const char kAllowFileAccess[]; | 28 extern const char kAllowFileAccess[]; |
28 extern const char kAllowHTTPBackgroundPage[]; | 29 extern const char kAllowHTTPBackgroundPage[]; |
29 extern const char kAllowLegacyExtensionManifests[]; | 30 extern const char kAllowLegacyExtensionManifests[]; |
30 extern const char kAllowNaClSocketAPI[]; | 31 extern const char kAllowNaClSocketAPI[]; |
31 extern const char kAllowOutdatedPlugins[]; | 32 extern const char kAllowOutdatedPlugins[]; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 extern const char kEnableSuggestionsTabPage[]; | 172 extern const char kEnableSuggestionsTabPage[]; |
172 extern const char kEnableSyncSignin[]; | 173 extern const char kEnableSyncSignin[]; |
173 extern const char kEnableSyncTabs[]; | 174 extern const char kEnableSyncTabs[]; |
174 extern const char kDisableSyncTabs[]; | 175 extern const char kDisableSyncTabs[]; |
175 extern const char kEnableSyncTabsForOtherClients[]; | 176 extern const char kEnableSyncTabsForOtherClients[]; |
176 extern const char kEnableTabGroupsContextMenu[]; | 177 extern const char kEnableTabGroupsContextMenu[]; |
177 extern const char kEnableWatchdog[]; | 178 extern const char kEnableWatchdog[]; |
178 extern const char kEnableWebsiteSettings[]; | 179 extern const char kEnableWebsiteSettings[]; |
179 extern const char kEnableWebSocketOverSpdy[]; | 180 extern const char kEnableWebSocketOverSpdy[]; |
180 extern const char kEnableWebStoreLink[]; | 181 extern const char kEnableWebStoreLink[]; |
| 182 extern const char kEventPageIdleTime[]; |
| 183 extern const char kEventPageUnloadingTime[]; |
181 extern const char kExperimentalSpellcheckerFeatures[]; | 184 extern const char kExperimentalSpellcheckerFeatures[]; |
182 extern const char kExplicitlyAllowedPorts[]; | 185 extern const char kExplicitlyAllowedPorts[]; |
183 extern const char kExtensionProcess[]; | 186 extern const char kExtensionProcess[]; |
184 extern const char kExtensionsUpdateFrequency[]; | 187 extern const char kExtensionsUpdateFrequency[]; |
185 extern const char kExternalAutofillPopup[]; | 188 extern const char kExternalAutofillPopup[]; |
186 extern const char kFlagSwitchesBegin[]; | 189 extern const char kFlagSwitchesBegin[]; |
187 extern const char kFlagSwitchesEnd[]; | 190 extern const char kFlagSwitchesEnd[]; |
188 extern const char kFeedbackServer[]; | 191 extern const char kFeedbackServer[]; |
189 extern const char kFileDescriptorLimit[]; | 192 extern const char kFileDescriptorLimit[]; |
190 extern const char kFocusExistingTabOnOpen[]; | 193 extern const char kFocusExistingTabOnOpen[]; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 #else | 415 #else |
413 extern const char kEnablePrintPreview[]; | 416 extern const char kEnablePrintPreview[]; |
414 #endif | 417 #endif |
415 | 418 |
416 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 419 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
417 // alphabetical order, or in one of the ifdefs (also in order in each section). | 420 // alphabetical order, or in one of the ifdefs (also in order in each section). |
418 | 421 |
419 } // namespace switches | 422 } // namespace switches |
420 | 423 |
421 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ | 424 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |
OLD | NEW |