blob: af22c51184c106c3b16444423a4edb21e96e473b [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[];
blundell6e85b7c2015-09-29 12:33:3522extern const char kForceFieldTrials[];
[email protected]46fe10d62011-05-26 22:03:2823extern const char kFullMemoryCrashReport[];
Francois Doray177da2c2019-06-20 14:14:2224extern const char kLogBestEffortTasks[];
[email protected]46fe10d62011-05-26 22:03:2825extern const char kNoErrorDialogs[];
Bryce Thomas96b07772018-11-07 03:04:1526extern const char kProfilingAtStart[];
fsamuel2573dfb2016-07-08 23:02:4427extern const char kProfilingFile[];
Bryce Thomas96b07772018-11-07 03:04:1528extern const char kProfilingFlush[];
[email protected]46fe10d62011-05-26 22:03:2829extern const char kTestChildProcess[];
wfh8f20e832016-03-12 02:09:5930extern const char kTestDoNotInitializeIcu[];
enne04213de2014-09-25 19:49:5631extern const char kTraceToFile[];
32extern const char kTraceToFileName[];
[email protected]46fe10d62011-05-26 22:03:2833extern const char kV[];
34extern const char kVModule[];
35extern const char kWaitForDebugger[];
initial.commitd7cae122008-07-26 21:49:3836
jschuhb156d5b2015-06-23 13:36:2837#if defined(OS_WIN)
Brandon Waldermanac7514b2019-08-05 21:20:0138extern const char kDisableHighResTimer[];
jschuhb156d5b2015-06-23 13:36:2839extern const char kDisableUsbKeyboardDetect[];
40#endif
41
Yuta Hijikata000df18f2020-11-18 06:55:5842// 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 Vallet1824e572017-12-14 00:46:0846extern const char kDisableDevShmUsage[];
47#endif
48
[email protected]6664958a2013-11-07 08:35:2949#if defined(OS_POSIX)
50extern const char kEnableCrashReporterForTesting[];
51#endif
52
Benoit Lize3c355312017-11-23 15:32:2653#if defined(OS_ANDROID)
Alexandr Ilin0455bb92019-02-12 11:52:4354extern const char kEnableReachedCodeProfiler[];
ssid12cd16a2020-06-26 00:05:0255extern const char kReachedCodeSamplingIntervalUs[];
Nate Fischer646065c2020-08-11 02:36:0956extern const char kDefaultCountryCodeAtInstall[];
57extern const char kEnableIdleTracing[];
58extern const char kForceFieldTrialParams[];
Benoit Lize3c355312017-11-23 15:32:2659#endif
60
Sean McAllister39b8d342020-08-25 09:08:3261#if defined(OS_LINUX) || defined(OS_CHROMEOS)
Andrew Comminos66057672019-05-01 00:03:3462extern const char kEnableThreadInstructionCount[];
Andreas Haasc02f4862021-02-11 10:19:3163
64// TODO(crbug.com/1176772): Remove kEnableCrashpad and IsCrashpadEnabled() when
65// Crashpad is fully enabled on Linux.
66extern const char kEnableCrashpad[];
Andrew Comminos66057672019-05-01 00:03:3467#endif
68
Ikjoon Jang033c69e2020-12-15 08:18:1269#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
70extern const char kSchedulerBoostUrgent[];
71#endif
72
initial.commitd7cae122008-07-26 21:49:3873} // namespace switches
74
[email protected]71a76d02009-03-17 12:47:1475#endif // BASE_BASE_SWITCHES_H_