Turning WebGL and the accelerated compositor on by default (linux and windows only...
[chromium-blink-merge.git] / chrome / common / chrome_switches.h
bloba944d8d2d29c99128be6d1db8ac2cb35d3ab699b
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Defines all the command-line switches used by Chrome.
7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_
8 #define CHROME_COMMON_CHROME_SWITCHES_H_
9 #pragma once
11 #include "build/build_config.h"
12 #include "base/base_switches.h"
14 namespace switches {
16 // -----------------------------------------------------------------------------
17 // Can't find the switch you are looking for? Try looking in
18 // base/base_switches.cc instead.
19 // -----------------------------------------------------------------------------
21 // All switches in alphabetical order. The switches should be documented
22 // alongside the definition of their values in the .cc file.
23 extern const char kActivateOnLaunch[];
24 extern const char kAllowFileAccessFromFiles[];
25 extern const char kAllowSSLMITMProxies[];
26 extern const char kAllowSandboxDebugging[];
27 extern const char kAllowScriptingGallery[];
28 extern const char kAlwaysEnableDevTools[];
29 extern const char kApp[];
30 extern const char kAppId[];
31 extern const char kAppLaunchAsPanel[];
32 extern const char kAppsDebug[];
33 extern const char kAppsPanel[];
34 extern const char kAppsGalleryURL[];
35 extern const char kAppsNoThrob[];
36 extern const char kAuthNegotiateDelegateWhitelist[];
37 extern const char kAuthSchemes[];
38 extern const char kAuthServerWhitelist[];
39 extern const char kAutomationClientChannelID[];
40 extern const char kBlockNonSandboxedPlugins[];
41 extern const char kBrowserAssertTest[];
42 extern const char kBrowserCrashTest[];
43 extern const char kBrowserSubprocessPath[];
44 extern const char kChromeFrame[];
45 extern const char kCloudPrintProxyId[];
46 extern const char kCloudPrintServiceURL[];
47 extern const char kCountry[];
48 extern const char kDebugPrint[];
49 extern const char kDiagnostics[];
50 extern const char kDisableAcceleratedCompositing[];
51 extern const char kDisableAltWinstation[];
52 extern const char kDisableApplicationCache[];
53 extern const char kDisableApps[];
54 extern const char kDisableAudio[];
55 extern const char kDisableAuthNegotiateCnameLookup[];
56 extern const char kDisableBackingStoreLimit[];
57 extern const char kDisableByteRangeSupport[];
58 extern const char kDisableClickToPlay[];
59 extern const char kDisableConnectBackupJobs[];
60 extern const char kDisableContentPrefetch[];
61 extern const char kDisableCustomJumpList[];
62 extern const char kDisableDatabases[];
63 extern const char kDisableDesktopNotifications[];
64 extern const char kDisableDevTools[];
65 extern const char kDisableDeviceOrientation[];
66 extern const char kDisableExperimentalWebGL[];
67 extern const char kDisableExtensions[];
68 extern const char kDisableExtensionsFileAccessCheck[];
69 extern const char kDisableGeolocation[];
70 extern const char kDisableGLSLTranslator[];
71 extern const char kDisableHangMonitor[];
72 extern const char kDisableInternalFlash[];
73 extern const char kDisableIPv6[];
74 extern const char kDisableJavaScript[];
75 extern const char kDisableJava[];
76 extern const char kDisableLocalStorage[];
77 extern const char kDisableLogging[];
78 extern const char kDisableNewTabFirstRun[];
79 extern const char kDisableOutdatedPlugins[];
80 extern const char kDisablePlugins[];
81 extern const char kDisablePopupBlocking[];
82 extern const char kDisablePreconnect[];
83 extern const char kDisablePromptOnRepost[];
84 extern const char kDisableRemoteFonts[];
85 extern const char kDisableRendererAccessibility[];
86 extern const char kDisableRestoreBackgroundContents[];
87 extern const char kDisableSessionStorage[];
88 extern const char kDisableSharedWorkers[];
89 extern const char kDisableSiteSpecificQuirks[];
90 extern const char kDisableSpeechInput[];
91 extern const char kDisableSSLFalseStart[];
92 extern const char kDisableSync[];
93 extern const char kDisableSyncApps[];
94 extern const char kDisableSyncAutofill[];
95 extern const char kDisableSyncBookmarks[];
96 extern const char kDisableSyncExtensions[];
97 extern const char kDisableSyncPasswords[];
98 extern const char kDisableSyncPreferences[];
99 extern const char kDisableSyncThemes[];
100 extern const char kDisableSyncTypedUrls[];
101 extern const char kDisableSyncSessions[];
102 extern const char kDisableTabCloseableStateWatcher[];
103 extern const char kDisableTranslate[];
104 extern const char kDisableWebResources[];
105 extern const char kDisableWebSecurity[];
106 extern const char kDisableWebSockets[];
107 extern const char kDiskCacheDir[];
108 extern const char kDiskCacheSize[];
109 extern const char kDnsLogDetails[];
110 extern const char kDnsPrefetchDisable[];
111 extern const char kDomAutomationController[];
112 extern const char kDumpHistogramsOnExit[];
113 extern const char kEnableAcceleratedCompositing[];
114 extern const char kEnableAccelerated2dCanvas[];
115 extern const char kEnableAeroPeekTabs[];
116 extern const char kEnableAuthNegotiatePort[];
117 extern const char kEnableBackgroundMode[];
118 extern const char kEnableBenchmarking[];
119 extern const char kEnableRemoting[];
120 extern const char kEnableCloudPrintProxy[];
121 extern const char kEnableCloudPrint[];
122 extern const char kEnableConnectBackupJobs[];
123 extern const char kEnableContentPrefetch[];
124 extern const char kEnableCookiePrompt[];
125 extern const char kEnableDeviceMotion[];
126 extern const char kEnableDNSSECCerts[];
127 extern const char kEnableExperimentalExtensionApis[];
128 extern const char kEnableExtensionTimelineApi[];
129 extern const char kEnableFastback[];
130 extern const char kEnableFileCookies[];
131 extern const char kEnableFileSystem[];
132 extern const char kEnableGPUPlugin[];
133 extern const char kEnableGPURendering[];
134 extern const char kEnableIndexedDatabase[];
135 extern const char kEnableInMemoryURLIndex[];
136 extern const char kEnableIPv6[];
137 extern const char kEnableLogging[];
138 extern const char kEnableMatchPreview[];
139 extern const char kEnableMemoryInfo[];
140 extern const char kEnableMonitorProfile[];
141 extern const char kEnableNaCl[];
142 extern const char kEnableNaClDebug[];
143 extern const char kEnableNativeWebWorkers[];
144 extern const char kEnableNewPageInfoBubble[];
145 extern const char kEnablePreconnect[];
146 extern const char kEnablePreparsedJsCaching[];
147 extern const char kEnablePrintPreview[];
148 extern const char kEnableResourceContentSettings[];
149 extern const char kEnableSearchProviderApiV2[];
150 extern const char kEnableSpeechInput[];
151 extern const char kEnableStatsTable[];
152 extern const char kEnableSync[];
153 extern const char kEnableSyncApps[];
154 extern const char kEnableSyncAutofill[];
155 extern const char kEnableSyncBookmarks[];
156 extern const char kEnableSyncExtensions[];
157 extern const char kEnableSyncPasswords[];
158 extern const char kEnableSyncPreferences[];
159 extern const char kEnableSyncSessions[];
160 extern const char kEnableSyncThemes[];
161 extern const char kEnableSyncTypedUrls[];
162 extern const char kEnableTabbedOptions[];
163 extern const char kEnableTouch[];
164 extern const char kEnableVerticalTabs[];
165 extern const char kEnableVideoFullscreen[];
166 extern const char kEnableVideoLayering[];
167 extern const char kEnableVideoLogging[];
168 extern const char kEnableWatchdog[];
169 extern const char kEnableWin7Location[];
170 extern const char kEnableXSSAuditor[];
171 // Experimental features.
172 extern const char kExperimentalSpellcheckerFeatures[];
173 // End experimental features.
174 extern const char kExplicitlyAllowedPorts[];
175 extern const char kExtensionProcess[];
176 extern const char kExtensionsUpdateFrequency[];
177 extern const char kFeedbackServer[];
178 extern const char kFileDescriptorLimit[];
179 extern const char kFirstRun[];
180 extern const char kForceFieldTestNameAndValue[];
181 extern const char kGpuLauncher[];
182 extern const char kGpuProcess[];
183 extern const char kGpuStartupDialog[];
184 extern const char kHelp[];
185 extern const char kHelpShort[];
186 extern const char kHideIcons[];
187 extern const char kHomePage[];
188 extern const char kHostRules[];
189 extern const char kHostResolverParallelism[];
190 extern const char kHostResolverRules[];
191 extern const char kImport[];
192 extern const char kImportFromFile[];
193 extern const char kInProcessPlugins[];
194 extern const char kInProcessWebGL[];
195 extern const char kIncognito[];
196 extern const char kInstallerTestBackup[];
197 extern const char kInstallerTestBuild[];
198 extern const char kInstallerTestClean[];
199 extern const char kInstallerTestForce[];
200 extern const char kInternalNaCl[];
201 extern const char kInternalPepper[];
202 extern const char kIssue35198ExtraLogging[];
203 extern const char kJavaScriptFlags[];
204 extern const char kKeepAliveForTest[];
205 extern const char kLoadExtension[];
206 extern const char kLoadPlugin[];
207 extern const char kExtraPluginDir[];
208 extern const char kLogFilterPrefix[];
209 extern const char kLogNetLog[];
210 extern const char kLogPluginMessages[];
211 extern const char kLoggingLevel[];
212 extern const char kMakeDefaultBrowser[];
213 extern const char kMediaCacheSize[];
214 extern const char kMemoryProfiling[];
215 extern const char kMessageLoopHistogrammer[];
216 extern const char kMetricsRecordingOnly[];
217 extern const char kNaClDebugIP[];
218 extern const char kNaClDebugPorts[];
219 extern const char kNaClBrokerProcess[];
220 extern const char kNaClLoaderProcess[];
221 extern const char kNaClStartupDialog[];
222 extern const char kNoDefaultBrowserCheck[];
223 extern const char kNoEvents[];
224 extern const char kNoFirstRun[];
225 extern const char kNoJsRandomness[];
226 extern const char kNoProxyServer[];
227 extern const char kNoReferrers[];
228 extern const char kNoSandbox[];
229 extern const char kNoStartupWindow[];
230 extern const char kNoTopSites[];
231 extern const char kNumPacThreads[];
232 extern const char kOpenInNewWindow[];
233 extern const char kOrganicInstall[];
234 extern const char kPackExtension[];
235 extern const char kPackExtensionKey[];
236 extern const char kParentProfile[];
237 extern const char kPlaybackMode[];
238 extern const char kPluginDataDir[];
239 extern const char kPluginLauncher[];
240 extern const char kPluginPath[];
241 extern const char kPluginProcess[];
242 extern const char kPluginStartupDialog[];
243 extern const char kPrelaunchGpuProcess[];
244 extern const char kPrint[];
245 extern const char kProcessPerSite[];
246 extern const char kProcessPerTab[];
247 extern const char kProcessType[];
248 extern const char kProductVersion[];
249 extern const char kProfileImportProcess[];
250 extern const char kProxyAutoDetect[];
251 extern const char kProxyBypassList[];
252 extern const char kProxyPacUrl[];
253 extern const char kProxyServer[];
254 extern const char kPurgeMemoryButton[];
255 extern const char kRecordMode[];
256 extern const char kRegisterPepperPlugins[];
257 extern const char kRemoteDebuggingPort[];
258 extern const char kRemoteShellPort[];
259 extern const char kRendererAssertTest[];
260 extern const char kRendererCmdPrefix[];
261 extern const char kRendererCrashTest[];
262 extern const char kRendererProcess[];
263 extern const char kRendererStartupDialog[];
264 extern const char kRestoreLastSession[];
265 extern const char kSafePlugins[];
266 extern const char kSafeBrowsingDatabaseStore[];
267 extern const char kSbInfoURLPrefix[];
268 extern const char kSbMacKeyURLPrefix[];
269 extern const char kSbDisableAutoUpdate[];
270 extern const char kSdchFilter[];
271 extern const char kSearchInOmniboxHint[];
272 extern const char kServiceProcess[];
273 extern const char kServiceAccountLsid[];
274 extern const char kShowCompositedLayerBorders[];
275 extern const char kShowIcons[];
276 extern const char kShowPaintRects[];
277 extern const char kShowPrivacyDashboardLink[];
278 extern const char kSilentDumpOnDCHECK[];
279 extern const char kSimpleDataSource[];
280 extern const char kSingleProcess[];
281 extern const char kStartMaximized[];
282 extern const char kSyncAllowPlain[];
283 extern const char kSyncDisableChromeAsyncSocket[];
284 extern const char kSyncDisableTls[];
285 extern const char kSyncEmail[];
286 extern const char kSyncerThreadTimedStop[];
287 extern const char kSyncNotificationMethod[];
288 extern const char kSyncPassword[];
289 extern const char kSyncPort[];
290 extern const char kSyncServer[];
291 extern const char kSyncServiceURL[];
292 extern const char kSyncUseSslTcp[];
293 extern const char kSyncUseCacheInvalidation[];
294 extern const char kTestNaClSandbox[];
295 extern const char kTestName[];
296 extern const char kTestSandbox[];
297 extern const char kTestType[];
298 extern const char kTestingChannelID[];
299 extern const char kTrustedPlugins[];
300 extern const char kTryChromeAgain[];
301 extern const char kUninstall[];
302 extern const char kUseSpdy[];
303 extern const char kIgnoreCertificateErrors[];
304 extern const char kMaxSpdySessionsPerDomain[];
305 extern const char kUseLowFragHeapCrt[];
306 extern const char kUserAgent[];
307 extern const char kUserDataDir[];
308 extern const char kUserScriptsDir[];
309 extern const char kUtilityCmdPrefix[];
310 extern const char kUtilityProcess[];
311 extern const char kUtilityProcessAllowedDir[];
312 extern const char kVersion[];
313 extern const char kWaitForDebuggerChildren[];
314 extern const char kWebWorkerProcessPerCore[];
315 extern const char kWebWorkerShareProcesses[];
316 extern const char kWinHttpProxyResolver[];
317 extern const char kWorkerProcess[];
318 extern const char kZygoteCmdPrefix[];
319 extern const char kZygoteProcess[];
321 #if defined(OS_CHROMEOS)
322 extern const char kEnableGView[];
323 extern const char kEnableLoginImages[];
324 extern const char kLoginManager[];
325 // TODO(avayvod): Remove this flag when it's unnecessary for testing
326 // purposes.
327 extern const char kLoginScreen[];
328 extern const char kLoginScreenSize[];
329 extern const char kTestLoadLibcros[];
330 extern const char kLoginProfile[];
331 extern const char kLoginUser[];
332 extern const char kLoginPassword[];
333 extern const char kChromeosFrame[];
334 extern const char kChromeosLogToFile[];
335 extern const char kBWSI[];
336 extern const char kStubCros[];
337 extern const char kScreenSaverUrl[];
338 #endif
340 #if defined(OS_LINUX)
341 extern const char kScrollPixels[];
342 #endif
344 #if defined(OS_MACOSX) || defined(OS_WIN)
345 extern const char kUseSystemSSL[];
346 #endif
348 #if defined(OS_POSIX)
349 extern const char kEnableCrashReporter[];
350 extern const char kNoProcessSingletonDialog[];
351 #if !defined(OS_MACOSX)
352 extern const char kPasswordStore[];
353 #endif
354 #endif
356 #if defined(OS_MACOSX)
357 extern const char kDisableFlashCoreAnimation[];
358 extern const char kDisableHolePunching[];
359 extern const char kEnableExposeForTabs[];
360 extern const char kEnableSandboxLogging[];
361 #else
362 extern const char kKioskMode[];
363 #endif
365 #ifndef NDEBUG
366 extern const char kGearsPluginPathOverride[];
367 extern const char kInvalidateSyncLogin[];
368 extern const char kInvalidateSyncXmppLogin[];
369 extern const char kWebSocketLiveExperimentHost[];
370 #endif
372 #if !defined(OFFICIAL_BUILD)
373 extern const char kRendererCheckFalseTest[];
374 #endif
376 #if defined(USE_SECCOMP_SANDBOX)
377 extern const char kDisableSeccompSandbox[];
378 #else
379 extern const char kEnableSeccompSandbox[];
380 #endif
381 // Return true if the switches indicate the seccomp sandbox is enabled.
382 bool SeccompSandboxEnabled();
384 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
385 // alphabetical order, or in one of the ifdefs (also in order in each section).
387 } // namespace switches
389 #endif // CHROME_COMMON_CHROME_SWITCHES_H_