Home | History | Annotate | Download | only in common
      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 
     16 namespace switches {
     17 
     18 // -----------------------------------------------------------------------------
     19 // Can't find the switch you are looking for? Try looking in
     20 // ui/gfx/gl/gl_switches.cc or base/base_switches.cc or
     21 // content/common/content_switches.cc or 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.
     26 extern const char kActivateOnLaunch[];
     27 extern const char kAllowFileAccess[];
     28 extern const char kAllowOutdatedPlugins[];
     29 extern const char kAllowHTTPBackgroundPage[];
     30 extern const char kAllowScriptingGallery[];
     31 extern const char kAlwaysAuthorizePlugins[];
     32 extern const char kAlwaysEnableDevTools[];
     33 extern const char kApp[];
     34 extern const char kAppId[];
     35 extern const char kAppsCheckoutURL[];
     36 extern const char kAppsGalleryReturnTokens[];
     37 extern const char kAppsGalleryURL[];
     38 extern const char kAppsGalleryUpdateURL[];
     39 extern const char kAppsNoThrob[];
     40 extern const char kAuthNegotiateDelegateWhitelist[];
     41 extern const char kAuthSchemes[];
     42 extern const char kAuthServerWhitelist[];
     43 extern const char kAutomationClientChannelID[];
     44 extern const char kBlockReadingThirdPartyCookies[];
     45 extern const char kBrowserAssertTest[];
     46 extern const char kBrowserCrashTest[];
     47 extern const char kCheckForUpdateIntervalSec[];
     48 extern const char kChromeFrame[];
     49 extern const char kChromeVersion[];
     50 extern const char kCloudPrintFile[];
     51 extern const char kCloudPrintJobTitle[];
     52 extern const char kCloudPrintFileType[];
     53 extern const char kCloudPrintProxyId[];
     54 extern const char kCloudPrintServiceURL[];
     55 extern const char kConflictingModulesCheck[];
     56 extern const char kCountry[];
     57 extern const char kDebugDevTools[];
     58 extern const char kDebugPrint[];
     59 extern const char kDeviceManagementUrl[];
     60 extern const char kDiagnostics[];
     61 extern const char kDisableAcceleratedLayers[];
     62 extern const char kDisableAcceleratedVideo[];
     63 extern const char kDisableAltWinstation[];
     64 extern const char kDisableAuthNegotiateCnameLookup[];
     65 extern const char kDisableBackgroundMode[];
     66 extern const char kDisableBackgroundNetworking[];
     67 extern const char kDisableBlockContentAnimation[];
     68 extern const char kDisableClientSidePhishingDetection[];
     69 extern const char kDisableConnectBackupJobs[];
     70 extern const char kDisableCustomJumpList[];
     71 extern const char kDisableDevTools[];
     72 extern const char kDisableExtensionsFileAccessCheck[];
     73 extern const char kDisableExtensions[];
     74 extern const char kDisableFlashSandbox[];
     75 extern const char kDisableHangMonitor[];
     76 extern const char kDisableHistoryQuickProvider[];
     77 extern const char kDisableHistoryURLProvider[];
     78 extern const char kDisableInteractiveFormValidation[];
     79 extern const char kDisableInternalFlash[];
     80 extern const char kDisableIPv6[];
     81 extern const char kDisableIPPooling[];
     82 extern const char kDisableNewTabFirstRun[];
     83 extern const char kDisablePreconnect[];
     84 extern const char kDisablePromptOnRepost[];
     85 extern const char kDisableRemoteFonts[];
     86 extern const char kDisableRendererAccessibility[];
     87 extern const char kDisableRestoreBackgroundContents[];
     88 extern const char kDisableSiteSpecificQuirks[];
     89 extern const char kDisableSSLFalseStart[];
     90 extern const char kDisableSync[];
     91 extern const char kDisableSyncApps[];
     92 extern const char kDisableSyncAutofill[];
     93 extern const char kDisableSyncAutofillProfile[];
     94 extern const char kDisableSyncBookmarks[];
     95 extern const char kDisableSyncExtensions[];
     96 extern const char kDisableSyncPasswords[];
     97 extern const char kDisableSyncPreferences[];
     98 extern const char kDisableSyncThemes[];
     99 extern const char kDisableTabCloseableStateWatcher[];
    100 extern const char kDisableTranslate[];
    101 extern const char kDisableWebResources[];
    102 extern const char kDisableWebSecurity[];
    103 extern const char kDisableXSSAuditor[];
    104 extern const char kDiskCacheDir[];
    105 extern const char kDiskCacheSize[];
    106 extern const char kDnsLogDetails[];
    107 extern const char kDnsPrefetchDisable[];
    108 extern const char kDnsServer[];
    109 extern const char kDomAutomationController[];
    110 extern const char kDumpHistogramsOnExit[];
    111 extern const char kEnableAccelerated2dCanvas[];
    112 extern const char kEnableAcceleratedPlugins[];
    113 extern const char kEnableAeroPeekTabs[];
    114 extern const char kEnableAuthNegotiatePort[];
    115 extern const char kEnableClientSidePhishingInterstitial[];
    116 extern const char kEnableClearServerData[];
    117 extern const char kEnableClickToPlay[];
    118 extern const char kEnableCloudPrintProxy[];
    119 extern const char kEnableCloudPrint[];
    120 extern const char kEnableCompositeToTexture[];
    121 extern const char kEnableConnectBackupJobs[];
    122 extern const char kEnableCrxlessWebApps[];
    123 extern const char kEnableDNSCertProvenanceChecking[];
    124 extern const char kEnableDNSSECCerts[];
    125 extern const char kEnableExperimentalAppManifests[];
    126 extern const char kEnableExperimentalExtensionApis[];
    127 extern const char kEnableExtensionTimelineApi[];
    128 extern const char kEnableFastback[];
    129 extern const char kEnableFileCookies[];
    130 extern const char kEnableFullScreen[];
    131 extern const char kEnableHistoryQuickProvider[];
    132 extern const char kEnableInBrowserThumbnailing[];
    133 extern const char kEnableIPv6[];
    134 extern const char kEnableIPPooling[];
    135 extern const char kEnableMemoryInfo[];
    136 extern const char kEnableNaCl[];
    137 extern const char kEnableNaClDebug[];
    138 extern const char kEnablePanels[];
    139 extern const char kEnablePreconnect[];
    140 extern const char kEnablePrintPreview[];
    141 extern const char kEnableRemoting[];
    142 extern const char kEnableResourceContentSettings[];
    143 extern const char kEnableSearchProviderApiV2[];
    144 extern const char kEnableSnapStart[];
    145 extern const char kEnableSync[];
    146 extern const char kEnableSyncAutofill[];
    147 extern const char kEnableSyncPreferences[];
    148 extern const char kEnableSyncSessions[];
    149 extern const char kEnableSyncTypedUrls[];
    150 extern const char kEnableTabGroupsContextMenu[];
    151 extern const char kEnableTcpFastOpen[];
    152 extern const char kEnableTopSites[];
    153 extern const char kEnableVerticalTabs[];
    154 extern const char kEnableWatchdog[];
    155 extern const char kExperimentalSpellcheckerFeatures[];
    156 extern const char kExplicitlyAllowedPorts[];
    157 extern const char kExtensionsUpdateFrequency[];
    158 extern const char kFlagSwitchesBegin[];
    159 extern const char kFlagSwitchesEnd[];
    160 extern const char kFeedbackServer[];
    161 extern const char kFileDescriptorLimit[];
    162 extern const char kFocusExistingTabOnOpen[];
    163 extern const char kFirstRun[];
    164 extern const char kForceAppsPromoVisible[];
    165 extern const char kForceCompositingMode[];
    166 extern const char kForceRendererAccessibility[];
    167 extern const char kForceStubLibcros[];
    168 extern const char kGSSAPILibraryName[];
    169 extern const char kHelp[];
    170 extern const char kHelpShort[];
    171 extern const char kHideIcons[];
    172 extern const char kHomePage[];
    173 extern const char kHostRules[];
    174 extern const char kHostResolverParallelism[];
    175 extern const char kHostResolverRules[];
    176 extern const char kIgnoreGpuBlacklist[];
    177 extern const char kImport[];
    178 extern const char kImportFromFile[];
    179 extern const char kIncognito[];
    180 extern const char kInstantURL[];
    181 extern const char kKeepAliveForTest[];
    182 extern const char kLoadExtension[];
    183 extern const char kLoadOpencryptoki[];
    184 extern const char kUninstallExtension[];
    185 extern const char kLogNetLog[];
    186 extern const char kMakeDefaultBrowser[];
    187 extern const char kMediaCacheSize[];
    188 extern const char kMemoryProfiling[];
    189 extern const char kMessageLoopHistogrammer[];
    190 extern const char kMetricsRecordingOnly[];
    191 extern const char kMinClearSiteDataFlashVersion[];
    192 extern const char kMultiProfiles[];
    193 extern const char kNaClDebugIP[];
    194 extern const char kNaClDebugPorts[];
    195 extern const char kNaClBrokerProcess[];
    196 extern const char kNaClStartupDialog[];
    197 extern const char kNewTabPage4[];
    198 extern const char kNoDefaultBrowserCheck[];
    199 extern const char kNoEvents[];
    200 extern const char kNoExperiments[];
    201 extern const char kNoFirstRun[];
    202 extern const char kNoProxyServer[];
    203 extern const char kNoPings[];
    204 extern const char kNoServiceAutorun[];
    205 extern const char kNoStartupWindow[];
    206 extern const char kNotifyCloudPrintTokenExpired[];
    207 extern const char kNumPacThreads[];
    208 extern const char kOpenInNewWindow[];
    209 extern const char kOrganicInstall[];
    210 extern const char kPackExtension[];
    211 extern const char kPackExtensionKey[];
    212 extern const char kParentProfile[];
    213 extern const char kPpapiFlashInProcess[];
    214 extern const char kPrerender[];
    215 extern const char kPrerenderSwitchValueAuto[];
    216 extern const char kPrerenderSwitchValueDisabled[];
    217 extern const char kPrerenderSwitchValueEnabled[];
    218 extern const char kPrerenderSwitchValuePrefetchOnly[];
    219 extern const char kPrint[];
    220 extern const char kProductVersion[];
    221 extern const char kProfilingAtStart[];
    222 extern const char kProfilingFile[];
    223 extern const char kProfilingFlush[];
    224 extern const char kProxyAutoDetect[];
    225 extern const char kProxyBypassList[];
    226 extern const char kProxyPacUrl[];
    227 extern const char kProxyServer[];
    228 extern const char kPurgeMemoryButton[];
    229 extern const char kReloadKilledTabs[];
    230 extern const char kRemoteDebuggingPort[];
    231 extern const char kRemoteShellPort[];
    232 extern const char kRestoreLastSession[];
    233 extern const char kSbInfoURLPrefix[];
    234 extern const char kSbMacKeyURLPrefix[];
    235 extern const char kSbDisableAutoUpdate[];
    236 extern const char kSbDisableDownloadProtection[];
    237 extern const char kSdchFilter[];
    238 extern const char kSearchInOmniboxHint[];
    239 extern const char kServiceAccountLsid[];
    240 extern const char kShowCompositedLayerBorders[];
    241 extern const char kShowCompositedLayerTree[];
    242 extern const char kShowFPSCounter[];
    243 extern const char kShowIcons[];
    244 extern const char kSilentDumpOnDCHECK[];
    245 extern const char kStartMaximized[];
    246 extern const char kSyncAllowInsecureXmppConnection[];
    247 extern const char kSyncInvalidateXmppLogin[];
    248 extern const char kSyncerThreadTimedStop[];
    249 extern const char kSyncNotificationMethod[];
    250 extern const char kSyncNotificationHost[];
    251 extern const char kSyncServiceURL[];
    252 extern const char kSyncTrySsltcpFirstForXmpp[];
    253 extern const char kTestNaClSandbox[];
    254 extern const char kTestName[];
    255 extern const char kTestType[];
    256 extern const char kTestingChannelID[];
    257 extern const char kTrustedPlugins[];
    258 extern const char kTryChromeAgain[];
    259 extern const char kUninstall[];
    260 extern const char kUseSpdy[];
    261 extern const char kIgnoreCertificateErrors[];
    262 extern const char kMaxSpdySessionsPerDomain[];
    263 extern const char kMaxSpdyConcurrentStreams[];
    264 extern const char kUserDataDir[];
    265 extern const char kUserScriptsDir[];
    266 extern const char kUtilityCmdPrefix[];
    267 extern const char kVersion[];
    268 extern const char kWinHttpProxyResolver[];
    269 
    270 #if defined(OS_CHROMEOS)
    271 extern const char kDOMLogin[];
    272 extern const char kEnableDevicePolicy[];
    273 extern const char kEnableExperimentalEap[];
    274 extern const char kEnableVPN[];
    275 extern const char kEnableGView[];
    276 extern const char kEnableLoginImages[];
    277 extern const char kLoginManager[];
    278 // TODO(avayvod): Remove this flag when it's unnecessary for testing
    279 // purposes.
    280 extern const char kLoginScreen[];
    281 extern const char kLoginScreenSize[];
    282 extern const char kTestLoadLibcros[];
    283 extern const char kLoginProfile[];
    284 extern const char kLoginUser[];
    285 extern const char kLoginPassword[];
    286 extern const char kLoginUserWithNewPassword[];
    287 extern const char kParallelAuth[];
    288 extern const char kChromeosFrame[];
    289 extern const char kCandidateWindowLang[];
    290 extern const char kGuestSession[];
    291 extern const char kStubCros[];
    292 extern const char kScreenSaverUrl[];
    293 extern const char kCompressSystemFeedback[];
    294 extern const char kSkipChromeOSComponents[];
    295 #endif
    296 
    297 #if defined(OS_LINUX)
    298 extern const char kScrollPixels[];
    299 #endif
    300 
    301 #if defined(OS_MACOSX) || defined(OS_WIN)
    302 extern const char kUseSystemSSL[];
    303 #endif
    304 
    305 #if defined(OS_POSIX)
    306 extern const char kEnableCrashReporter[];
    307 extern const char kNoProcessSingletonDialog[];
    308 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
    309 extern const char kPasswordStore[];
    310 #endif
    311 #endif
    312 
    313 #if defined(OS_MACOSX)
    314 extern const char kEnableExposeForTabs[];
    315 #endif
    316 
    317 #if !defined(OS_MACOSX)
    318 extern const char kKioskMode[];
    319 #endif
    320 
    321 #if defined(TOOLKIT_GTK)
    322 extern const char kGlobalGnomeMenu[];
    323 #endif
    324 
    325 #if defined(TOOLKIT_VIEWS)
    326 extern const char kDebugViewsPaint[];
    327 #endif
    328 
    329 #if defined(TOUCH_UI)
    330 extern const char kKeepMouseCursor[];
    331 #endif
    332 
    333 #ifndef NDEBUG
    334 extern const char kClearTokenService[];
    335 extern const char kSetToken[];
    336 extern const char kWebSocketLiveExperimentHost[];
    337 extern const char kExposePrivateExtensionApi[];
    338 #endif
    339 
    340 #if defined(HAVE_XINPUT2)
    341 extern const char kTouchDevices[];
    342 #endif
    343 
    344 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
    345 // alphabetical order, or in one of the ifdefs (also in order in each section).
    346 
    347 }  // namespace switches
    348 
    349 #endif  // CHROME_COMMON_CHROME_SWITCHES_H_
    350