Removing flow to demote App Launcher to App Host, so app_host.exe can be deleted...
[chromium-blink-merge.git] / chrome / common / chrome_switches.h
blob1d70053899ae3c5f423cec6cc1d8742108bd5d1a
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
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_
10 #include "build/build_config.h"
12 #include "base/base_switches.h"
13 #include "content/public/common/content_switches.h"
15 namespace switches {
17 // -----------------------------------------------------------------------------
18 // Can't find the switch you are looking for? Try looking in
19 // ui/gl/gl_switches.cc or base/base_switches.cc or
20 // content/public/common/content_switches.cc or media/base/media_switches.cc
21 // instead.
22 // -----------------------------------------------------------------------------
24 // All switches in alphabetical order. The switches should be documented
25 // alongside the definition of their values in the .cc file.
26 extern const char kActionBox[];
27 extern const char kAllowCrossOriginAuthPrompt[];
28 extern const char kAllowFileAccess[];
29 extern const char kAllowHTTPBackgroundPage[];
30 extern const char kAllowLegacyExtensionManifests[];
31 extern const char kAllowNaClSocketAPI[];
32 extern const char kAllowOutdatedPlugins[];
33 extern const char kAllowRunningInsecureContent[];
34 extern const char kAllowScriptingGallery[];
35 extern const char kAlwaysAuthorizePlugins[];
36 extern const char kAppId[];
37 extern const char kApp[];
38 extern const char kAppsDebugger[];
39 extern const char kAppWindowSize[];
40 extern const char kAppNotifyChannelServerURL[];
41 extern const char kAppsCheckoutURL[];
42 extern const char kAppsGalleryDownloadURL[];
43 extern const char kAppsGalleryInstallAutoConfirmForTests[];
44 extern const char kAppsGalleryReturnTokens[];
45 extern const char kAppsGalleryURL[];
46 extern const char kAppsGalleryUpdateURL[];
47 extern const char kAppsNewInstallBubble[];
48 extern const char kAppsNoThrob[];
49 extern const char kAuthNegotiateDelegateWhitelist[];
50 extern const char kAuthSchemes[];
51 extern const char kAuthServerWhitelist[];
52 extern const char kAutoLaunchAtStartup[];
53 extern const char kAutofillServiceUrl[];
54 extern const char kAutomationClientChannelID[];
55 extern const char kAutomationReinitializeOnChannelError[];
56 extern const char kCheckForUpdateIntervalSec[];
57 extern const char kCheckCloudPrintConnectorPolicy[];
58 extern const char kChromeFrameShutdownDelay[];
59 extern const char kChromeVersion[];
60 extern const char kCipherSuiteBlacklist[];
61 extern const char kClearTokenService[];
62 extern const char kCloudPrintDeleteFile[];
63 extern const char kCloudPrintFile[];
64 extern const char kCloudPrintJobTitle[];
65 extern const char kCloudPrintFileType[];
66 extern const char kCloudPrintPrintTicket[];
67 extern const char kCloudPrintProxyId[];
68 extern const char kCloudPrintServiceURL[];
69 extern const char kComponentUpdaterDebug[];
70 extern const char kConflictingModulesCheck[];
71 extern const char kContentSettings2[];
72 extern const char kCountry[];
73 extern const char kCrashOnHangSeconds[];
74 extern const char kCrashOnHangThreads[];
75 extern const char kCrashOnLive[];
76 extern const char kCreateBrowserOnStartupForTests[];
77 extern const char kDebugEnableFrameToggle[];
78 extern const char kDebugPackedApps[];
79 extern const char kDebugPrint[];
80 extern const char kDeviceManagementUrl[];
81 extern const char kDiagnostics[];
82 extern const char kDisableAsyncDns[];
83 extern const char kDisableAuthNegotiateCnameLookup[];
84 extern const char kDisableBackgroundMode[];
85 extern const char kDisableBackgroundNetworking[];
86 extern const char kDisableBundledPpapiFlash[];
87 extern const char kDisableBookmarkAutocompleteProvider[];
88 extern const char kDisableClientSidePhishingDetection[];
89 extern const char kDisableCloudPolicyService[];
90 extern const char kDisableComponentUpdate[];
91 extern const char kDisableCRLSets[];
92 extern const char kDisableCustomJumpList[];
93 extern const char kDisableDefaultApps[];
94 extern const char kDisableDhcpWpad[];
95 extern const char kDisableExtensionsFileAccessCheck[];
96 extern const char kDisableExtensionsHttpThrottling[];
97 extern const char kDisableExtensionsResourceWhitelist[];
98 extern const char kDisableExtensions[];
99 extern const char kDisableImprovedDownloadProtection[];
100 extern const char kDisableInternalFlash[];
101 extern const char kDisableIPv6[];
102 extern const char kDisableIPPooling[];
103 extern const char kDisableNTPOtherSessionsMenu[];
104 extern const char kDisablePopupBlocking[];
105 extern const char kDisablePreconnect[];
106 extern const char kDisablePromptOnRepost[];
107 extern const char kDisableRestoreBackgroundContents[];
108 extern const char kDisableRestoreSessionState[];
109 extern const char kDisableScriptedPrintThrottling[];
110 extern const char kDisableSync[];
111 extern const char kDisableSyncAppSettings[];
112 extern const char kDisableSyncApps[];
113 extern const char kDisableSyncAppNotifications[];
114 extern const char kDisableSyncAutofill[];
115 extern const char kDisableSyncAutofillProfile[];
116 extern const char kDisableSyncBookmarks[];
117 extern const char kDisableSyncExtensionSettings[];
118 extern const char kDisableSyncExtensions[];
119 extern const char kDisableSyncPasswords[];
120 extern const char kDisableSyncPreferences[];
121 extern const char kDisableSyncSearchEngines[];
122 extern const char kDisableSyncThemes[];
123 extern const char kDisableSyncTypedUrls[];
124 extern const char kDisableTranslate[];
125 extern const char kDisableTLSChannelID[];
126 extern const char kDisableWebResources[];
127 extern const char kDisableWebsiteSettings[];
128 extern const char kDisableZeroBrowsersOpenForTests[];
129 extern const char kDiskCacheDir[];
130 extern const char kDiskCacheSize[];
131 extern const char kDnsLogDetails[];
132 extern const char kDnsPrefetchDisable[];
133 extern const char kDumpHistogramsOnExit[];
134 extern const char kDisableSyncTabs[];
135 extern const char kEasyOffStoreExtensionInstall[];
136 extern const char kEnableAppListOptIn[];
137 extern const char kEnableAsyncDns[];
138 extern const char kEnableAuthNegotiatePort[];
139 extern const char kEnableAutologin[];
140 extern const char kEnableBenchmarking[];
141 extern const char kEnableBundledPpapiFlash[];
142 extern const char kEnableChromeStyleDialogs[];
143 extern const char kEnableCloudPrintProxy[];
144 extern const char kEnableContacts[];
145 extern const char kEnableCrxlessWebApps[];
146 extern const char kEnableDesktopGuestMode[];
147 extern const char kEnableDevToolsExperiments[];
148 extern const char kEnableExperimentalExtensionApis[];
149 extern const char kEnableExperimentalFormFilling[];
150 extern const char kEnableExtensionActivityLogging[];
151 extern const char kEnableExtensionActivityUI[];
152 extern const char kEnableFileCookies[];
153 extern const char kEnableGoogleNowIntegration[];
154 extern const char kEnableHttpPipelining[];
155 extern const char kEnableInstantExtendedAPI[];
156 extern const char kEnableInteractiveAutocomplete[];
157 extern const char kEnableIPCFuzzing[];
158 extern const char kEnableIPPooling[];
159 extern const char kEnableIPv6[];
160 extern const char kEnableManagedStorage[];
161 extern const char kEnableManagedUsers[];
162 extern const char kEnableMemoryInfo[];
163 extern const char kEnableMetricsReportingForTesting[];
164 extern const char kEnableNaCl[];
165 extern const char kEnableNaClDebug[];
166 extern const char kEnableNaClExceptionHandling[];
167 extern const char kEnableNaClSRPCProxy[];
168 extern const char kEnableNativeMessaging[];
169 extern const char kEnableNewAutofillHeuristics[];
170 extern const char kEnableNewAutofillUi[];
171 extern const char kEnableNpn[];
172 extern const char kEnableNpnHttpOnly[];
173 extern const char kEnablePanels[];
174 extern const char kEnablePasswordGeneration[];
175 extern const char kEnablePnacl[];
176 extern const char kEnableProfiling[];
177 extern const char kEnableResourceContentSettings[];
178 extern const char kEnableRichNotifications[];
179 extern const char kEnableSdch[];
180 extern const char kEnableSpdy3[];
181 extern const char kEnableSpdyCredentialFrames[];
182 extern const char kEnableSpellingAutoCorrect[];
183 extern const char kEnableStackedTabStrip[];
184 extern const char kEnableSuggestionsTabPage[];
185 extern const char kEnableSyncHistoryDeleteDirectives[];
186 extern const char kEnableTabGroupsContextMenu[];
187 extern const char kEnableWatchdog[];
188 extern const char kEnableWebSocketOverSpdy[];
189 extern const char kExtensionsInActionBox[];
190 extern const char kEventPageIdleTime[];
191 extern const char kEventPageUnloadingTime[];
192 extern const char kExplicitlyAllowedPorts[];
193 extern const char kExtensionProcess[];
194 extern const char kExtensionsUpdateFrequency[];
195 extern const char kFlagSwitchesBegin[];
196 extern const char kFlagSwitchesEnd[];
197 extern const char kFeedbackServer[];
198 extern const char kFileDescriptorLimit[];
199 extern const char kFirstRun[];
200 extern const char kGaiaProfileInfo[];
201 extern const char kGoogleSearchDomainCheckURL[];
202 extern const char kGSSAPILibraryName[];
203 extern const char kHelp[];
204 extern const char kHelpShort[];
205 extern const char kHideIcons[];
206 extern const char kHistoryEnableFullHistorySync[];
207 extern const char kHistoryDisableFullistorySync[];
208 extern const char kHistoryWebHistoryUrl[];
209 extern const char kHomePage[];
210 extern const char kHostRules[];
211 extern const char kHostResolverParallelism[];
212 extern const char kHostResolverRetryAttempts[];
213 extern const char kHstsHosts[];
214 extern const char kImport[];
215 extern const char kImportFromFile[];
216 extern const char kIncognito[];
217 extern const char kInstallFromWebstore[];
218 extern const char kInstantURL[];
219 extern const char kKeepAliveForTest[];
220 extern const char kKioskMode[];
221 extern const char kKioskModePrinting[];
222 extern const char kLoadComponentExtension[];
223 extern const char kLoadCloudPolicyOnSignin[];
224 extern const char kLoadExtension[];
225 extern const char kLoadOpencryptoki[];
226 extern const char kUninstallExtension[];
227 extern const char kLogNetLog[];
228 extern const char kMakeDefaultBrowser[];
229 extern const char kManaged[];
230 extern const char kMediaCacheSize[];
231 extern const char kMemoryProfiling[];
232 extern const char kMessageLoopHistogrammer[];
233 extern const char kMetricsRecordingOnly[];
234 extern const char kMultiProfiles[];
235 extern const char kNaClDebugMask[];
236 extern const char kNaClGdb[];
237 extern const char kNaClGdbScript[];
238 extern const char kNaClLoaderCmdPrefix[];
239 extern const char kNetLogLevel[];
240 extern const char kNoDefaultBrowserCheck[];
241 extern const char kNoDisplayingInsecureContent[];
242 extern const char kNoEvents[];
243 extern const char kNoExperiments[];
244 extern const char kNoFirstRun[];
245 extern const char kNoJsRandomness[];
246 extern const char kNoManaged[];
247 extern const char kNoNetworkProfileWarning[];
248 extern const char kNoProxyServer[];
249 extern const char kNoPings[];
250 extern const char kNoServiceAutorun[];
251 extern const char kNoStartupWindow[];
252 extern const char kNotifyCloudPrintTokenExpired[];
253 extern const char kNtpAppInstallHint[];
254 extern const char kNumPacThreads[];
255 extern const char kOmniboxHistoryQuickProviderNewScoring[];
256 extern const char kOmniboxHistoryQuickProviderNewScoringEnabled[];
257 extern const char kOmniboxHistoryQuickProviderNewScoringDisabled[];
258 extern const char kOmniboxHistoryQuickProviderReorderForInlining[];
259 extern const char kOmniboxHistoryQuickProviderReorderForInliningEnabled[];
260 extern const char kOmniboxHistoryQuickProviderReorderForInliningDisabled[];
261 extern const char kOmniboxInlineHistoryQuickProvider[];
262 extern const char kOmniboxInlineHistoryQuickProviderAllowed[];
263 extern const char kOmniboxInlineHistoryQuickProviderProhibited[];
264 extern const char kOnlyBlockSettingThirdPartyCookies[];
265 extern const char kOpenInNewWindow[];
266 extern const char kOrganicInstall[];
267 extern const char kPackExtension[];
268 extern const char kPackExtensionKey[];
269 extern const char kParentProfile[];
270 extern const char kPerformanceMonitorGathering[];
271 extern const char kPerformCrashAnalysis[];
272 extern const char kPlaybackMode[];
273 extern const char kPnaclDir[];
274 extern const char kPpapiFlashInProcess[];
275 extern const char kPpapiFlashPath[];
276 extern const char kPpapiFlashVersion[];
277 extern const char kPrerenderFromOmnibox[];
278 extern const char kPrerenderFromOmniboxSwitchValueAuto[];
279 extern const char kPrerenderFromOmniboxSwitchValueDisabled[];
280 extern const char kPrerenderFromOmniboxSwitchValueEnabled[];
281 extern const char kPrerenderMode[];
282 extern const char kPrerenderModeSwitchValueAuto[];
283 extern const char kPrerenderModeSwitchValueDisabled[];
284 extern const char kPrerenderModeSwitchValueEnabled[];
285 extern const char kPrerenderModeSwitchValuePrefetchOnly[];
286 extern const char kProductVersion[];
287 extern const char kProfileDirectory[];
288 extern const char kProfilingAtStart[];
289 extern const char kProfilingFile[];
290 extern const char kProfilingFlush[];
291 extern const char kProfilingOutputFile[];
292 extern const char kPromoServerURL[];
293 extern const char kPromptForExternalExtensions[];
294 extern const char kProtector[];
295 extern const char kProxyAutoDetect[];
296 extern const char kProxyBypassList[];
297 extern const char kProxyPacUrl[];
298 extern const char kProxyServer[];
299 extern const char kPurgeMemoryButton[];
300 extern const char kRecordStats[];
301 extern const char kRecordMode[];
302 extern const char kRemoteDebuggingFrontend[];
303 extern const char kRendererPrintPreview[];
304 extern const char kResetVariationState[];
305 extern const char kRestoreLastSession[];
306 extern const char kSavePageAsMHTML[];
307 extern const char kSbURLPrefix[];
308 extern const char kSbDisableAutoUpdate[];
309 extern const char kSbDisableDownloadProtection[];
310 extern const char kScriptBadges[];
311 extern const char kScriptBubble[];
312 extern const char kSearchInOmniboxHint[];
313 extern const char kSideloadWipeout[];
314 extern const char kSilentLaunch[];
315 extern const char kSetToken[];
316 extern const char kShowAppList[];
317 extern const char kShowAppListShortcut[];
318 extern const char kShowAutofillTypePredictions[];
319 extern const char kShowComponentExtensionOptions[];
320 extern const char kShowIcons[];
321 extern const char kShowLauncherAlignmentMenu[];
322 extern const char kSilentDumpOnDCHECK[];
323 extern const char kSimulateUpgrade[];
324 extern const char kSocketReusePolicy[];
325 extern const char kSpeculativeResourcePrefetching[];
326 extern const char kSpeculativeResourcePrefetchingDisabled[];
327 extern const char kSpeculativeResourcePrefetchingLearning[];
328 extern const char kSpdyProxyOrigin[];
329 extern const char kSpeculativeResourcePrefetchingEnabled[];
330 extern const char kSSLVersionMax[];
331 extern const char kSSLVersionMin[];
332 extern const char kStartMaximized[];
333 extern const char kSuggestionNtpFilterWidth[];
334 extern const char kSuggestionNtpGaussianFilter[];
335 extern const char kSuggestionNtpLinearFilter[];
336 extern const char kSyncAllowInsecureXmppConnection[];
337 extern const char kSyncInvalidateXmppLogin[];
338 extern const char kSyncKeystoreEncryption[];
339 extern const char kSyncShortInitialRetryOverride[];
340 extern const char kSyncNotificationMethod[];
341 extern const char kSyncNotificationHostPort[];
342 extern const char kSyncServiceURL[];
343 extern const char kSyncTabFavicons[];
344 extern const char kSyncThrowUnrecoverableError[];
345 extern const char kSyncTrySsltcpFirstForXmpp[];
346 extern const char kTabBrowserDragging[];
347 extern const char kTabCapture[];
348 extern const char kTestNaClSandbox[];
349 extern const char kTestName[];
350 extern const char kTestType[];
351 extern const char kTestingChannelID[];
352 extern const char kTrustedSpdyProxy[];
353 extern const char kTryChromeAgain[];
354 extern const char kUninstall[];
355 extern const char kUseSpdy[];
356 extern const char kUseGpuInTests[];
357 extern const char kUseSpellingService[];
358 extern const char kMaxSpdySessionsPerDomain[];
359 extern const char kMaxSpdyConcurrentStreams[];
360 extern const char kUserDataDir[];
361 extern const char kUseWebBasedSigninFlow[];
362 extern const char kVariationsServerURL[];
363 extern const char kVersion[];
364 extern const char kViewerConnection[];
365 extern const char kVisitURLs[];
366 extern const char kWebIntentsNativeServicesEnabled[];
367 extern const char kWhitelistedExtensionID[];
368 extern const char kWindowPosition[];
369 extern const char kWindowSize[];
370 extern const char kWinHttpProxyResolver[];
372 #if defined(ENABLE_PLUGIN_INSTALLATION)
373 extern const char kPluginsMetadataServerURL[];
374 #endif
376 #if defined(OS_ANDROID)
377 extern const char kTabletUI[];
378 #endif
380 #if defined(USE_ASH)
381 extern const char kAshEnableTabScrubbing[];
382 #endif
384 #if defined(OS_CHROMEOS)
385 // Keep switches in alphabetical order.
386 extern const char kAshWebUIInit[];
387 extern const char kDisableBootAnimation[];
388 extern const char kDisableChromeCaptivePortalDetector[];
389 extern const char kDisableDrivePrefetch[];
390 extern const char kDisableDrive[];
391 extern const char kDisableLoginAnimations[];
392 extern const char kDisableNewOobe[];
393 extern const char kDisableNewPasswordChangedDialog[];
394 extern const char kDisableOobeAnimation[];
395 extern const char kDisableStubEthernet[];
396 extern const char kEnableBackgroundLoader[];
397 extern const char kEnableCarrierSwitching[];
398 extern const char kEnableChromeCaptivePortalDetector[];
399 extern const char kEnableChromebookFunctionKey[];
400 extern const char kEnableTouchpadThreeFingerClick[];
401 extern const char kEnableTouchpadThreeFingerSwipe[];
402 extern const char kSkipOAuthLogin[];
403 extern const char kEnableKioskMode[];
404 extern const char kDisableLocalAccounts[];
405 extern const char kEnableRequestTabletSite[];
406 extern const char kEnableStaticIPConfig[];
407 extern const char kFirstBoot[];
408 extern const char kHasChromeOSKeyboard[];
409 extern const char kKioskModeScreensaverPath[];
410 extern const char kLoginManager[];
411 // TODO(avayvod): Remove this flag when it's unnecessary for testing
412 // purposes.
413 extern const char kLoginScreen[];
414 extern const char kLoginScreenSize[];
415 extern const char kLoginProfile[];
416 extern const char kLoginUser[];
417 extern const char kLoginPassword[];
418 extern const char kNaturalScrollDefault[];
419 extern const char kNoDiscardTabs[];
420 extern const char kGuestSession[];
421 extern const char kEchoExtensionPath[];
422 extern const char kStubCrosSettings[];
423 extern const char kAuthExtensionPath[];
424 extern const char kEnterpriseEnrollmentInitialModulus[];
425 extern const char kEnterpriseEnrollmentModulusLimit[];
426 extern const char kFileManagerPackaged[];
427 #ifndef NDEBUG
428 extern const char kOobeSkipPostLogin[];
429 #endif
430 #endif
432 #if defined(OS_POSIX)
433 extern const char kEnableCrashReporter[];
434 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
435 extern const char kPasswordStore[];
436 #endif
437 #endif
439 #if defined(OS_MACOSX)
440 extern const char kEnableExposeForTabs[];
441 extern const char kKeychainReauthorize[];
442 extern const char kRelauncherProcess[];
443 extern const char kUseMockKeychain[];
444 #endif
446 #if defined(OS_WIN)
447 extern const char kDisableDesktopShortcuts[];
448 extern const char kForceImmersive[];
449 extern const char kForceDesktop[];
450 extern const char kOverlappedRead[];
451 extern const char kPrintRaster[];
452 extern const char kRelaunchShortcut[];
453 extern const char kWaitForMutex[];
454 #endif
456 #ifndef NDEBUG
457 extern const char kFileManagerExtensionPath[];
458 extern const char kDumpProfileDependencyGraph[];
459 #endif
461 #if defined(GOOGLE_CHROME_BUILD)
462 extern const char kDisablePrintPreview[];
463 #else
464 extern const char kEnablePrintPreview[];
465 #endif
467 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
468 // alphabetical order, or in one of the ifdefs (also in order in each section).
470 } // namespace switches
472 namespace chrome {
474 // Returns true if the chrome style dialog is enabled.
475 // TODO(sail): Remove this once the feature is fully baked.
476 bool UseChromeStyleDialogs();
478 } // namespace chrome
480 #endif // CHROME_COMMON_CHROME_SWITCHES_H_