blob: 2285b89fa2eeedf288464c50e37732be3e83d75e [file] [log] [blame]
[email protected]3455af4e2012-03-12 15:35:121// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commitd7cae122008-07-26 21:49:384
5// Defines all the "base" command-line switches.
6
[email protected]71a76d02009-03-17 12:47:147#ifndef BASE_BASE_SWITCHES_H_
8#define BASE_BASE_SWITCHES_H_
initial.commitd7cae122008-07-26 21:49:389
[email protected]8ab19f692013-07-18 08:09:3210#include "build/build_config.h"
Hidehiko Abe7c68f582020-09-03 15:47:2511#include "build/chromeos_buildflags.h"
[email protected]8ab19f692013-07-18 08:09:3212
initial.commitd7cae122008-07-26 21:49:3813namespace switches {
14
Yue Ru Suna50a80f2019-02-08 05:02:5815extern const char kDisableBestEffortTasks[];
[email protected]46fe10d62011-05-26 22:03:2816extern const char kDisableBreakpad[];
Trent Aptedc5e504d2017-10-26 23:19:2617extern const char kDisableFeatures[];
ruuda07bb15e2015-10-12 12:30:4118extern const char kDisableLowEndDeviceMode[];
[email protected]f6727762013-10-22 21:19:0119extern const char kEnableCrashReporter[];
Trent Aptedc5e504d2017-10-26 23:19:2620extern const char kEnableFeatures[];
ruuda07bb15e2015-10-12 12:30:4121extern const char kEnableLowEndDeviceMode[];
Eric Seckler2802fc652021-03-16 23:33:0322extern const char kEnableBackgroundThreadPool[];
Fabrice de Gans24f4a802021-11-05 19:57:1423extern const char kFieldTrialHandle[];
blundell6e85b7c2015-09-29 12:33:3524extern const char kForceFieldTrials[];
[email protected]46fe10d62011-05-26 22:03:2825extern const char kFullMemoryCrashReport[];
Francois Doray177da2c2019-06-20 14:14:2226extern const char kLogBestEffortTasks[];
[email protected]46fe10d62011-05-26 22:03:2827extern const char kNoErrorDialogs[];
Bryce Thomas96b07772018-11-07 03:04:1528extern const char kProfilingAtStart[];
fsamuel2573dfb2016-07-08 23:02:4429extern const char kProfilingFile[];
Bryce Thomas96b07772018-11-07 03:04:1530extern const char kProfilingFlush[];
[email protected]46fe10d62011-05-26 22:03:2831extern const char kTestChildProcess[];
wfh8f20e832016-03-12 02:09:5932extern const char kTestDoNotInitializeIcu[];
enne04213de2014-09-25 19:49:5633extern const char kTraceToFile[];
34extern const char kTraceToFileName[];
[email protected]46fe10d62011-05-26 22:03:2835extern const char kV[];
36extern const char kVModule[];
37extern const char kWaitForDebugger[];
initial.commitd7cae122008-07-26 21:49:3838
jschuhb156d5b2015-06-23 13:36:2839#if defined(OS_WIN)
Brandon Waldermanac7514b2019-08-05 21:20:0140extern const char kDisableHighResTimer[];
jschuhb156d5b2015-06-23 13:36:2841extern const char kDisableUsbKeyboardDetect[];
42#endif
43
Yuta Hijikata000df18f2020-11-18 06:55:5844// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
45// of lacros-chrome is complete.
46#if defined(OS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \
47 !BUILDFLAG(IS_CHROMEOS_LACROS)
David Vallet1824e572017-12-14 00:46:0848extern const char kDisableDevShmUsage[];
49#endif
50
[email protected]6664958a2013-11-07 08:35:2951#if defined(OS_POSIX)
52extern const char kEnableCrashReporterForTesting[];
53#endif
54
Benoit Lize3c355312017-11-23 15:32:2655#if defined(OS_ANDROID)
Alexandr Ilin0455bb92019-02-12 11:52:4356extern const char kEnableReachedCodeProfiler[];
ssid12cd16a2020-06-26 00:05:0257extern const char kReachedCodeSamplingIntervalUs[];
Nate Fischer646065c2020-08-11 02:36:0958extern const char kDefaultCountryCodeAtInstall[];
59extern const char kEnableIdleTracing[];
60extern const char kForceFieldTrialParams[];
Benoit Lize3c355312017-11-23 15:32:2661#endif
62
Sean McAllister39b8d342020-08-25 09:08:3263#if defined(OS_LINUX) || defined(OS_CHROMEOS)
Andrew Comminos66057672019-05-01 00:03:3464extern const char kEnableThreadInstructionCount[];
Andreas Haasc02f4862021-02-11 10:19:3165
66// TODO(crbug.com/1176772): Remove kEnableCrashpad and IsCrashpadEnabled() when
67// Crashpad is fully enabled on Linux.
68extern const char kEnableCrashpad[];
Andrew Comminos66057672019-05-01 00:03:3469#endif
70
Ikjoon Jang033c69e2020-12-15 08:18:1271#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
72extern const char kSchedulerBoostUrgent[];
73#endif
74
initial.commitd7cae122008-07-26 21:49:3875} // namespace switches
76
[email protected]71a76d02009-03-17 12:47:1477#endif // BASE_BASE_SWITCHES_H_