[email protected] | 3455af4e | 2012-03-12 15:35:12 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 4 | |
5 | // Defines all the "base" command-line switches. | ||||
6 | |||||
[email protected] | 71a76d0 | 2009-03-17 12:47:14 | [diff] [blame] | 7 | #ifndef BASE_BASE_SWITCHES_H_ |
8 | #define BASE_BASE_SWITCHES_H_ | ||||
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 9 | |
[email protected] | 8ab19f69 | 2013-07-18 08:09:32 | [diff] [blame] | 10 | #include "build/build_config.h" |
Hidehiko Abe | 7c68f58 | 2020-09-03 15:47:25 | [diff] [blame] | 11 | #include "build/chromeos_buildflags.h" |
[email protected] | 8ab19f69 | 2013-07-18 08:09:32 | [diff] [blame] | 12 | |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 13 | namespace switches { |
14 | |||||
Yue Ru Sun | a50a80f | 2019-02-08 05:02:58 | [diff] [blame] | 15 | extern const char kDisableBestEffortTasks[]; |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 16 | extern const char kDisableBreakpad[]; |
Trent Apted | c5e504d | 2017-10-26 23:19:26 | [diff] [blame] | 17 | extern const char kDisableFeatures[]; |
ruuda | 07bb15e | 2015-10-12 12:30:41 | [diff] [blame] | 18 | extern const char kDisableLowEndDeviceMode[]; |
[email protected] | f672776 | 2013-10-22 21:19:01 | [diff] [blame] | 19 | extern const char kEnableCrashReporter[]; |
Trent Apted | c5e504d | 2017-10-26 23:19:26 | [diff] [blame] | 20 | extern const char kEnableFeatures[]; |
ruuda | 07bb15e | 2015-10-12 12:30:41 | [diff] [blame] | 21 | extern const char kEnableLowEndDeviceMode[]; |
blundell | 6e85b7c | 2015-09-29 12:33:35 | [diff] [blame] | 22 | extern const char kForceFieldTrials[]; |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 23 | extern const char kFullMemoryCrashReport[]; |
Francois Doray | 177da2c | 2019-06-20 14:14:22 | [diff] [blame] | 24 | extern const char kLogBestEffortTasks[]; |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 25 | extern const char kNoErrorDialogs[]; |
Bryce Thomas | 96b0777 | 2018-11-07 03:04:15 | [diff] [blame] | 26 | extern const char kProfilingAtStart[]; |
fsamuel | 2573dfb | 2016-07-08 23:02:44 | [diff] [blame] | 27 | extern const char kProfilingFile[]; |
Bryce Thomas | 96b0777 | 2018-11-07 03:04:15 | [diff] [blame] | 28 | extern const char kProfilingFlush[]; |
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 29 | extern const char kTestChildProcess[]; |
wfh | 8f20e83 | 2016-03-12 02:09:59 | [diff] [blame] | 30 | extern const char kTestDoNotInitializeIcu[]; |
enne | 04213de | 2014-09-25 19:49:56 | [diff] [blame] | 31 | extern const char kTraceToFile[]; |
32 | extern const char kTraceToFileName[]; | ||||
[email protected] | 46fe10d6 | 2011-05-26 22:03:28 | [diff] [blame] | 33 | extern const char kV[]; |
34 | extern const char kVModule[]; | ||||
35 | extern const char kWaitForDebugger[]; | ||||
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 36 | |
jschuh | b156d5b | 2015-06-23 13:36:28 | [diff] [blame] | 37 | #if defined(OS_WIN) |
Brandon Walderman | ac7514b | 2019-08-05 21:20:01 | [diff] [blame] | 38 | extern const char kDisableHighResTimer[]; |
jschuh | b156d5b | 2015-06-23 13:36:28 | [diff] [blame] | 39 | extern const char kDisableUsbKeyboardDetect[]; |
40 | #endif | ||||
41 | |||||
Yuta Hijikata | 000df18f | 2020-11-18 06:55:58 | [diff] [blame] | 42 | // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch |
43 | // of lacros-chrome is complete. | ||||
44 | #if defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \ | ||||
45 | !BUILDFLAG(IS_CHROMEOS_LACROS) | ||||
David Vallet | 1824e57 | 2017-12-14 00:46:08 | [diff] [blame] | 46 | extern const char kDisableDevShmUsage[]; |
47 | #endif | ||||
48 | |||||
[email protected] | 6664958a | 2013-11-07 08:35:29 | [diff] [blame] | 49 | #if defined(OS_POSIX) |
50 | extern const char kEnableCrashReporterForTesting[]; | ||||
51 | #endif | ||||
52 | |||||
Benoit Lize | 3c35531 | 2017-11-23 15:32:26 | [diff] [blame] | 53 | #if defined(OS_ANDROID) |
Alexandr Ilin | 0455bb9 | 2019-02-12 11:52:43 | [diff] [blame] | 54 | extern const char kEnableReachedCodeProfiler[]; |
ssid | 12cd16a | 2020-06-26 00:05:02 | [diff] [blame] | 55 | extern const char kReachedCodeSamplingIntervalUs[]; |
Nate Fischer | 646065c | 2020-08-11 02:36:09 | [diff] [blame] | 56 | extern const char kDefaultCountryCodeAtInstall[]; |
57 | extern const char kEnableIdleTracing[]; | ||||
58 | extern const char kForceFieldTrialParams[]; | ||||
Benoit Lize | 3c35531 | 2017-11-23 15:32:26 | [diff] [blame] | 59 | #endif |
60 | |||||
Sean McAllister | 39b8d34 | 2020-08-25 09:08:32 | [diff] [blame] | 61 | #if defined(OS_LINUX) || defined(OS_CHROMEOS) |
Andrew Comminos | 6605767 | 2019-05-01 00:03:34 | [diff] [blame] | 62 | extern const char kEnableThreadInstructionCount[]; |
Andreas Haas | c02f486 | 2021-02-11 10:19:31 | [diff] [blame] | 63 | |
64 | // TODO(crbug.com/1176772): Remove kEnableCrashpad and IsCrashpadEnabled() when | ||||
65 | // Crashpad is fully enabled on Linux. | ||||
66 | extern const char kEnableCrashpad[]; | ||||
Andrew Comminos | 6605767 | 2019-05-01 00:03:34 | [diff] [blame] | 67 | #endif |
68 | |||||
Ikjoon Jang | 033c69e | 2020-12-15 08:18:12 | [diff] [blame] | 69 | #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) |
70 | extern const char kSchedulerBoostUrgent[]; | ||||
71 | #endif | ||||
72 | |||||
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 73 | } // namespace switches |
74 | |||||
[email protected] | 71a76d0 | 2009-03-17 12:47:14 | [diff] [blame] | 75 | #endif // BASE_BASE_SWITCHES_H_ |