chrome_switches.h revision dc0f95d653279beabeb9817299e2902918ba123e
1// Copyright (c) 2011 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. 4 5// Defines all the command-line switches used by Chrome. 6 7#ifndef CHROME_COMMON_CHROME_SWITCHES_H_ 8#define CHROME_COMMON_CHROME_SWITCHES_H_ 9#pragma once 10 11#include "build/build_config.h" 12 13#include "base/base_switches.h" 14#include "content/common/content_switches.h" 15 16namespace switches { 17 18// ----------------------------------------------------------------------------- 19// Can't find the switch you are looking for? Try looking in app/app_switches.cc 20// or base/base_switches.cc or content/common/content_switches.cc or 21// media/base/media_switches.cc instead. 22// ----------------------------------------------------------------------------- 23 24// All switches in alphabetical order. The switches should be documented 25// alongside the definition of their values in the .cc file. 26extern const char kActivateOnLaunch[]; 27extern const char kAllowFileAccess[]; 28extern const char kAllowOutdatedPlugins[]; 29extern const char kAllowSSLMITMProxies[]; 30extern const char kAllowScriptingGallery[]; 31extern const char kAlwaysAuthorizePlugins[]; 32extern const char kAlwaysEnableDevTools[]; 33extern const char kApp[]; 34extern const char kAppId[]; 35extern const char kAppsGalleryReturnTokens[]; 36extern const char kAppsGalleryURL[]; 37extern const char kAppsGalleryUpdateURL[]; 38extern const char kAppsNoThrob[]; 39extern const char kAuthNegotiateDelegateWhitelist[]; 40extern const char kAuthSchemes[]; 41extern const char kAuthServerWhitelist[]; 42extern const char kAutomationClientChannelID[]; 43extern const char kBlockReadingThirdPartyCookies[]; 44extern const char kBrowserAssertTest[]; 45extern const char kBrowserCrashTest[]; 46extern const char kBrowserSubprocessPath[]; 47extern const char kCheckForUpdateIntervalSec[]; 48extern const char kChromeFrame[]; 49extern const char kChromeVersion[]; 50extern const char kCloudPrintFile[]; 51extern const char kCloudPrintJobTitle[]; 52extern const char kCloudPrintProxyId[]; 53extern const char kCloudPrintServiceURL[]; 54extern const char kConflictingModulesCheck[]; 55extern const char kCountry[]; 56extern const char kDebugPrint[]; 57extern const char kDeviceManagementUrl[]; 58extern const char kDevicePolicyCacheDir[]; 59extern const char kDiagnostics[]; 60extern const char kDisable3DAPIs[]; 61extern const char kDisableAcceleratedCompositing[]; 62extern const char kDisableAcceleratedLayers[]; 63extern const char kDisableAcceleratedVideo[]; 64extern const char kDisableAltWinstation[]; 65extern const char kDisableApplicationCache[]; 66extern const char kDisableAudio[]; 67extern const char kDisableAuthNegotiateCnameLookup[]; 68extern const char kDisableBackgroundMode[]; 69extern const char kDisableBackgroundNetworking[]; 70extern const char kDisableBlockContentAnimation[]; 71extern const char kDisableConfirmToQuit[]; 72extern const char kDisableConnectBackupJobs[]; 73extern const char kDisableCustomJumpList[]; 74extern const char kDisableDatabases[]; 75extern const char kDisableDesktopNotifications[]; 76extern const char kDisableDevTools[]; 77extern const char kDisableDeviceOrientation[]; 78extern const char kDisableEnforcedThrottling[]; 79extern const char kDisableExperimentalWebGL[]; 80extern const char kDisableExtensionsFileAccessCheck[]; 81extern const char kDisableExtensions[]; 82extern const char kDisableFlashSandbox[]; 83extern const char kDisableGLMultisampling[]; 84extern const char kDisableGLSLTranslator[]; 85extern const char kDisableGeolocation[]; 86extern const char kDisableHangMonitor[]; 87extern const char kDisableHistoryQuickProvider[]; 88extern const char kDisableHistoryURLProvider[]; 89extern const char kDisableInteractiveFormValidation[]; 90extern const char kDisableInternalFlash[]; 91extern const char kDisableIndexedDatabase[]; 92extern const char kDisableIPv6[]; 93extern const char kDisableJavaScript[]; 94extern const char kDisableJava[]; 95extern const char kDisableLocalStorage[]; 96extern const char kDisableNewTabFirstRun[]; 97extern const char kDisablePreconnect[]; 98extern const char kDisablePromptOnRepost[]; 99extern const char kDisableRemoteFonts[]; 100extern const char kDisableRendererAccessibility[]; 101extern const char kDisableRestoreBackgroundContents[]; 102extern const char kDisableSessionStorage[]; 103extern const char kDisableSharedWorkers[]; 104extern const char kDisableSiteSpecificQuirks[]; 105extern const char kDisableSpeechInput[]; 106extern const char kDisableSSLFalseStart[]; 107extern const char kDisableSync[]; 108extern const char kDisableSyncApps[]; 109extern const char kDisableSyncAutofill[]; 110extern const char kDisableSyncAutofillProfile[]; 111extern const char kDisableSyncBookmarks[]; 112extern const char kDisableSyncExtensions[]; 113extern const char kDisableSyncPreferences[]; 114extern const char kDisableSyncThemes[]; 115extern const char kDisableTabbedOptions[]; 116extern const char kDisableTabCloseableStateWatcher[]; 117extern const char kDisableTranslate[]; 118extern const char kDisableWebResources[]; 119extern const char kDisableWebSecurity[]; 120extern const char kDisableXSSAuditor[]; 121extern const char kDiskCacheDir[]; 122extern const char kDiskCacheSize[]; 123extern const char kDnsLogDetails[]; 124extern const char kDnsPrefetchDisable[]; 125extern const char kDnsServer[]; 126extern const char kDomAutomationController[]; 127extern const char kDumpHistogramsOnExit[]; 128extern const char kEnableAccelerated2dCanvas[]; 129extern const char kEnableAcceleratedPlugins[]; 130extern const char kEnableAccessibility[]; 131extern const char kEnableAeroPeekTabs[]; 132extern const char kEnableAuthNegotiatePort[]; 133extern const char kEnableClientSidePhishingDetection[]; 134extern const char kEnableClientSidePhishingInterstitial[]; 135extern const char kEnableClearServerData[]; 136extern const char kEnableClickToPlay[]; 137extern const char kEnableCloudPrintProxy[]; 138extern const char kEnableCloudPrint[]; 139extern const char kEnableCompositeToTexture[]; 140extern const char kEnableConnectBackupJobs[]; 141extern const char kEnableCrxlessWebApps[]; 142extern const char kEnableDeviceMotion[]; 143extern const char kEnableDNSCertProvenanceChecking[]; 144extern const char kEnableDNSSECCerts[]; 145extern const char kEnableExperimentalExtensionApis[]; 146extern const char kEnableExtensionTimelineApi[]; 147extern const char kEnableFastback[]; 148extern const char kEnableFileCookies[]; 149extern const char kEnableFullScreen[]; 150extern const char kEnableHistoryQuickProvider[]; 151extern const char kEnableInBrowserThumbnailing[]; 152extern const char kEnableIPv6[]; 153extern const char kEnableJavaScriptI18NAPI[]; 154extern const char kEnableMemoryInfo[]; 155extern const char kEnableNaCl[]; 156extern const char kEnableNaClDebug[]; 157extern const char kEnableP2PApi[]; 158extern const char kEnablePreconnect[]; 159extern const char kEnablePrintPreview[]; 160extern const char kEnableRemoting[]; 161extern const char kEnableResourceContentSettings[]; 162extern const char kEnableSearchProviderApiV2[]; 163extern const char kEnableSnapStart[]; 164extern const char kEnableSync[]; 165extern const char kEnableSyncAutofill[]; 166extern const char kEnableSyncPreferences[]; 167extern const char kEnableSyncSessions[]; 168extern const char kEnableSyncTypedUrls[]; 169extern const char kEnableTcpFastOpen[]; 170extern const char kEnableTopSites[]; 171extern const char kEnableTouch[]; 172extern const char kEnableVerticalTabs[]; 173extern const char kEnableVideoFullscreen[]; 174extern const char kEnableVideoLogging[]; 175extern const char kEnableWatchdog[]; 176extern const char kEnableWebAudio[]; 177extern const char kExperimentalSpellcheckerFeatures[]; 178extern const char kExplicitlyAllowedPorts[]; 179extern const char kExtensionProcess[]; 180extern const char kExtensionsUpdateFrequency[]; 181extern const char kFlagSwitchesBegin[]; 182extern const char kFlagSwitchesEnd[]; 183extern const char kFeedbackServer[]; 184extern const char kFileDescriptorLimit[]; 185extern const char kFocusExistingTabOnOpen[]; 186extern const char kFirstRun[]; 187extern const char kForceAppsPromoVisible[]; 188extern const char kForceFieldTestNameAndValue[]; 189extern const char kForceRendererAccessibility[]; 190extern const char kForceStubLibcros[]; 191extern const char kGSSAPILibraryName[]; 192extern const char kHelp[]; 193extern const char kHelpShort[]; 194extern const char kHideIcons[]; 195extern const char kHomePage[]; 196extern const char kHostRules[]; 197extern const char kHostResolverParallelism[]; 198extern const char kHostResolverRules[]; 199extern const char kIgnoreGpuBlacklist[]; 200extern const char kImport[]; 201extern const char kImportFromFile[]; 202extern const char kInProcessPlugins[]; 203extern const char kInProcessWebGL[]; 204extern const char kIncognito[]; 205extern const char kInstantURL[]; 206extern const char kInternalPepper[]; 207extern const char kJavaScriptFlags[]; 208extern const char kKeepAliveForTest[]; 209extern const char kLoadExtension[]; 210extern const char kUninstallExtension[]; 211extern const char kLogNetLog[]; 212extern const char kMakeDefaultBrowser[]; 213extern const char kMediaCacheSize[]; 214extern const char kMemoryProfiling[]; 215extern const char kMessageLoopHistogrammer[]; 216extern const char kMetricsRecordingOnly[]; 217extern const char kMinClearSiteDataFlashVersion[]; 218extern const char kMultiProfiles[]; 219extern const char kNaClDebugIP[]; 220extern const char kNaClDebugPorts[]; 221extern const char kNaClBrokerProcess[]; 222extern const char kNaClLoaderProcess[]; 223extern const char kNaClStartupDialog[]; 224extern const char kNoDefaultBrowserCheck[]; 225extern const char kNoEvents[]; 226extern const char kNoExperiments[]; 227extern const char kNoFirstRun[]; 228extern const char kNoJsRandomness[]; 229extern const char kNoProxyServer[]; 230extern const char kNoPings[]; 231extern const char kNoSandbox[]; 232extern const char kNoServiceAutorun[]; 233extern const char kNoStartupWindow[]; 234extern const char kNotifyCloudPrintTokenExpired[]; 235extern const char kNumPacThreads[]; 236extern const char kOpenInNewWindow[]; 237extern const char kOrganicInstall[]; 238extern const char kPackExtension[]; 239extern const char kPackExtensionKey[]; 240extern const char kParentProfile[]; 241extern const char kPlaybackMode[]; 242extern const char kPluginDataDir[]; 243extern const char kPrerender[]; 244extern const char kPrerenderSwitchValueAuto[]; 245extern const char kPrerenderSwitchValueDisabled[]; 246extern const char kPrerenderSwitchValueEnabled[]; 247extern const char kPrerenderSwitchValuePrefetchOnly[]; 248extern const char kPrint[]; 249extern const char kProductVersion[]; 250extern const char kProfileImportProcess[]; 251extern const char kProfilingAtStart[]; 252extern const char kProfilingFile[]; 253extern const char kProfilingFlush[]; 254extern const char kProxyAutoDetect[]; 255extern const char kProxyBypassList[]; 256extern const char kProxyPacUrl[]; 257extern const char kProxyServer[]; 258extern const char kPurgeMemoryButton[]; 259extern const char kRecordMode[]; 260extern const char kReloadKilledTabs[]; 261extern const char kRemoteDebuggingPort[]; 262extern const char kRemoteShellPort[]; 263extern const char kRendererAssertTest[]; 264extern const char kRestoreLastSession[]; 265extern const char kSbInfoURLPrefix[]; 266extern const char kSbMacKeyURLPrefix[]; 267extern const char kSbDisableAutoUpdate[]; 268extern const char kSbEnableDownloadProtection[]; 269extern const char kSbEnableDownloadWarningUI[]; 270extern const char kSdchFilter[]; 271extern const char kSearchInOmniboxHint[]; 272extern const char kServiceProcess[]; 273extern const char kServiceAccountLsid[]; 274extern const char kShowCompositedLayerBorders[]; 275extern const char kShowCompositedLayerTree[]; 276extern const char kShowFPSCounter[]; 277extern const char kShowIcons[]; 278extern const char kShowPaintRects[]; 279extern const char kSilentDumpOnDCHECK[]; 280extern const char kSimpleDataSource[]; 281extern const char kStartMaximized[]; 282extern const char kSyncAllowInsecureXmppConnection[]; 283extern const char kSyncInvalidateXmppLogin[]; 284extern const char kSyncerThreadTimedStop[]; 285extern const char kSyncNotificationMethod[]; 286extern const char kSyncNotificationHost[]; 287extern const char kSyncServiceURL[]; 288extern const char kSyncTrySsltcpFirstForXmpp[]; 289extern const char kNewSyncerThread[]; 290extern const char kTestNaClSandbox[]; 291extern const char kTestName[]; 292extern const char kTestType[]; 293extern const char kTestingChannelID[]; 294extern const char kTrustedPlugins[]; 295extern const char kTryChromeAgain[]; 296extern const char kUninstall[]; 297extern const char kUseSpdy[]; 298extern const char kIgnoreCertificateErrors[]; 299extern const char kMaxSpdySessionsPerDomain[]; 300extern const char kMaxSpdyConcurrentStreams[]; 301extern const char kUserDataDir[]; 302extern const char kUserScriptsDir[]; 303extern const char kUtilityCmdPrefix[]; 304extern const char kUtilityProcess[]; 305extern const char kUtilityProcessAllowedDir[]; 306extern const char kVersion[]; 307extern const char kWinHttpProxyResolver[]; 308 309#if defined(OS_CHROMEOS) 310extern const char kEnableGView[]; 311extern const char kEnableLoginImages[]; 312extern const char kLoginManager[]; 313// TODO(avayvod): Remove this flag when it's unnecessary for testing 314// purposes. 315extern const char kLoginScreen[]; 316extern const char kLoginScreenSize[]; 317extern const char kTestLoadLibcros[]; 318extern const char kLoginProfile[]; 319extern const char kLoginUser[]; 320extern const char kLoginPassword[]; 321extern const char kLoginUserWithNewPassword[]; 322extern const char kParallelAuth[]; 323extern const char kChromeosFrame[]; 324extern const char kCandidateWindowLang[]; 325extern const char kGuestSession[]; 326extern const char kStubCros[]; 327extern const char kScreenSaverUrl[]; 328extern const char kCompressSystemFeedback[]; 329extern const char kEnableWebUIMenu[]; 330extern const char kEnableMediaPlayer[]; 331extern const char kEnableAdvancedFileSystem[]; 332#endif 333 334#if defined(OS_LINUX) 335extern const char kScrollPixels[]; 336#endif 337 338#if defined(OS_MACOSX) || defined(OS_WIN) 339extern const char kUseSystemSSL[]; 340#endif 341 342#if defined(OS_POSIX) 343extern const char kEnableCrashReporter[]; 344extern const char kNoProcessSingletonDialog[]; 345#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 346extern const char kPasswordStore[]; 347#endif 348#endif 349 350#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 351// Linux, mostly, but also BSDs and such. Password syncing and GNOME Keyring 352// don't play together at the moment so we require explicit opt-in for it. 353extern const char kEnableSyncPasswords[]; 354#else 355extern const char kDisableSyncPasswords[]; 356#endif 357 358#if !defined(OS_MACOSX) 359extern const char kKioskMode[]; 360#endif 361 362#if defined(TOOLKIT_VIEWS) 363extern const char kDebugViewsPaint[]; 364#endif 365 366#ifndef NDEBUG 367extern const char kClearTokenService[]; 368extern const char kGearsPluginPathOverride[]; 369extern const char kSetToken[]; 370extern const char kWebSocketLiveExperimentHost[]; 371#endif 372 373#if !defined(OFFICIAL_BUILD) 374extern const char kRendererCheckFalseTest[]; 375#endif 376 377#if defined(HAVE_XINPUT2) 378extern const char kTouchDevices[]; 379#endif 380 381// DON'T ADD RANDOM STUFF HERE. Put it in the main section above in 382// alphabetical order, or in one of the ifdefs (also in order in each section). 383 384} // namespace switches 385 386#endif // CHROME_COMMON_CHROME_SWITCHES_H_ 387