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 the shared command-line switches used by code in the Chrome | 5 // Defines the shared command-line switches used by code in the Chrome |
6 // directory that don't have anywhere more specific to go. | 6 // directory that don't have anywhere more specific to go. |
7 | 7 |
8 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ | 8 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ |
9 #define CHROME_COMMON_CHROME_SWITCHES_H_ | 9 #define CHROME_COMMON_CHROME_SWITCHES_H_ |
10 | 10 |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 // Don't add more switch files here. This is linked into some places like the | 13 // Don't add more switch files here. This is linked into some places like the |
14 // installer where dependencies should be limited. Instead, have files | 14 // installer where dependencies should be limited. Instead, have files |
15 // directly include your switch file. | 15 // directly include your switch file. |
16 | 16 |
| 17 namespace base { |
| 18 class CommandLine; |
| 19 }; |
| 20 |
17 namespace switches { | 21 namespace switches { |
18 | 22 |
19 // ----------------------------------------------------------------------------- | 23 // ----------------------------------------------------------------------------- |
20 // Can't find the switch you are looking for? Try looking in | 24 // Can't find the switch you are looking for? Try looking in |
21 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the | 25 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the |
22 // .cc files corresponding to the *_switches.h files included above | 26 // .cc files corresponding to the *_switches.h files included above |
23 // instead. | 27 // instead. |
24 // ----------------------------------------------------------------------------- | 28 // ----------------------------------------------------------------------------- |
25 | 29 |
26 // All switches in alphabetical order. The switches should be documented | 30 // All switches in alphabetical order. The switches should be documented |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 extern const char kDisableCastStreamingHWEncoding[]; | 71 extern const char kDisableCastStreamingHWEncoding[]; |
68 extern const char kDisableChildAccountDetection[]; | 72 extern const char kDisableChildAccountDetection[]; |
69 extern const char kDisableClearBrowsingDataCounters[]; | 73 extern const char kDisableClearBrowsingDataCounters[]; |
70 extern const char kDisableClientSidePhishingDetection[]; | 74 extern const char kDisableClientSidePhishingDetection[]; |
71 extern const char kDisableComponentExtensionsWithBackgroundPages[]; | 75 extern const char kDisableComponentExtensionsWithBackgroundPages[]; |
72 extern const char kDisableComponentUpdate[]; | 76 extern const char kDisableComponentUpdate[]; |
73 extern const char kDisableDefaultApps[]; | 77 extern const char kDisableDefaultApps[]; |
74 extern const char kDisableDeviceDiscoveryNotifications[]; | 78 extern const char kDisableDeviceDiscoveryNotifications[]; |
75 extern const char kDisableDomainReliability[]; | 79 extern const char kDisableDomainReliability[]; |
76 extern const char kDisableExtensions[]; | 80 extern const char kDisableExtensions[]; |
| 81 extern const char kDisableExtensionsExcept[]; |
77 extern const char kDisableExtensionsFileAccessCheck[]; | 82 extern const char kDisableExtensionsFileAccessCheck[]; |
78 extern const char kDisableExtensionsHttpThrottling[]; | 83 extern const char kDisableExtensionsHttpThrottling[]; |
79 extern const char kDisableFieldTrialTestingConfig[]; | 84 extern const char kDisableFieldTrialTestingConfig[]; |
80 extern const char kDisableHttp2[]; | 85 extern const char kDisableHttp2[]; |
81 extern const char kDisableMinimizeOnSecondLauncherItemClick[]; | 86 extern const char kDisableMinimizeOnSecondLauncherItemClick[]; |
82 extern const char kDisableNewBookmarkApps[]; | 87 extern const char kDisableNewBookmarkApps[]; |
83 extern const char kDisableOfflineAutoReload[]; | 88 extern const char kDisableOfflineAutoReload[]; |
84 extern const char kDisableOfflineAutoReloadVisibleOnly[]; | 89 extern const char kDisableOfflineAutoReloadVisibleOnly[]; |
85 extern const char kDisableOutOfProcessPac[]; | 90 extern const char kDisableOutOfProcessPac[]; |
86 extern const char kDisablePermissionActionReporting[]; | 91 extern const char kDisablePermissionActionReporting[]; |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 #if defined(ENABLE_WAYLAND_SERVER) | 383 #if defined(ENABLE_WAYLAND_SERVER) |
379 extern const char kEnableWaylandServer[]; | 384 extern const char kEnableWaylandServer[]; |
380 #endif | 385 #endif |
381 | 386 |
382 #if defined(OS_WIN) || defined(OS_LINUX) | 387 #if defined(OS_WIN) || defined(OS_LINUX) |
383 extern const char kDisableInputImeAPI[]; | 388 extern const char kDisableInputImeAPI[]; |
384 extern const char kEnableInputImeAPI[]; | 389 extern const char kEnableInputImeAPI[]; |
385 #endif | 390 #endif |
386 | 391 |
387 bool AboutInSettingsEnabled(); | 392 bool AboutInSettingsEnabled(); |
| 393 bool ExtensionsDisabled(const base::CommandLine& command_line); |
388 bool MdFeedbackEnabled(); | 394 bool MdFeedbackEnabled(); |
389 bool MdPolicyPageEnabled(); | 395 bool MdPolicyPageEnabled(); |
390 bool PdfMaterialUIEnabled(); | 396 bool PdfMaterialUIEnabled(); |
391 bool SettingsWindowEnabled(); | 397 bool SettingsWindowEnabled(); |
392 | 398 |
393 #if defined(OS_CHROMEOS) | 399 #if defined(OS_CHROMEOS) |
394 bool PowerOverlayEnabled(); | 400 bool PowerOverlayEnabled(); |
395 #endif | 401 #endif |
396 | 402 |
397 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 403 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
398 // alphabetical order, or in one of the ifdefs (also in order in each section). | 404 // alphabetical order, or in one of the ifdefs (also in order in each section). |
399 | 405 |
400 } // namespace switches | 406 } // namespace switches |
401 | 407 |
402 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ | 408 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |
OLD | NEW |