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 "components/autofill/core/common/autofill_switches.h"
14 #include "components/password_manager/core/common/password_manager_switches.h"
15 #include "content/public/common/content_switches.h"
19 // -----------------------------------------------------------------------------
20 // Can't find the switch you are looking for? Try looking in
21 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the
22 // .cc files corresponding to the *_switches.h files included above
24 // -----------------------------------------------------------------------------
26 // All switches in alphabetical order. The switches should be documented
27 // alongside the definition of their values in the .cc file.
28 extern const char kAllowCreateExistingManagedUsers
[];
29 extern const char kAllowCrossOriginAuthPrompt
[];
30 extern const char kAllowFileAccess
[];
31 extern const char kAllowHttpScreenCapture
[];
32 extern const char kAllowNaClCrxFsAPI
[];
33 extern const char kAllowNaClFileHandleAPI
[];
34 extern const char kAllowNaClSocketAPI
[];
35 extern const char kAllowOutdatedPlugins
[];
36 extern const char kAllowRunningInsecureContent
[];
37 extern const char kAlwaysAuthorizePlugins
[];
38 extern const char kAppId
[];
39 extern const char kApp
[];
40 extern const char kAppListStartPageURL
[];
41 extern const char kAppWindowSize
[];
42 extern const char kAppsCheckoutURL
[];
43 extern const char kAppsGalleryDownloadURL
[];
44 extern const char kAppsGalleryInstallAutoConfirmForTests
[];
45 extern const char kAppsGalleryURL
[];
46 extern const char kAppsGalleryUpdateURL
[];
47 extern const char kAppModeAuthCode
[];
48 extern const char kAppModeOAuth2Token
[];
49 extern const char kAppsNewInstallBubble
[];
50 extern const char kAppsUseNativeFrame
[];
51 extern const char kAuthExtensionPath
[];
52 extern const char kAuthNegotiateDelegateWhitelist
[];
53 extern const char kAuthSchemes
[];
54 extern const char kAuthServerWhitelist
[];
55 extern const char kAutoLaunchAtStartup
[];
56 extern const char kAutomationClientChannelID
[];
57 extern const char kAutomationReinitializeOnChannelError
[];
58 extern const char kCancelFirstRun
[];
59 extern const char kCertificateTransparencyLog
[];
60 extern const char kCheckForUpdateIntervalSec
[];
61 extern const char kCheckCloudPrintConnectorPolicy
[];
62 extern const char kCipherSuiteBlacklist
[];
63 extern const char kClearTokenService
[];
64 extern const char kCloudPrintDeleteFile
[];
65 extern const char kCloudPrintFile
[];
66 extern const char kCloudPrintJobTitle
[];
67 extern const char kCloudPrintFileType
[];
68 extern const char kCloudPrintPrintTicket
[];
69 extern const char kCloudPrintSetupProxy
[];
70 extern const char kCloudPrintServiceURL
[];
71 extern const char kComponentUpdater
[];
72 extern const char kConflictingModulesCheck
[];
73 extern const char kContentSettings2
[];
74 extern const char kCountry
[];
75 extern const char kCrashOnHangThreads
[];
76 extern const char kCreateBrowserOnStartupForTests
[];
77 #if defined(OS_ANDROID) || defined(OS_IOS)
78 extern const char kDataReductionProxyProbeURL
[];
80 extern const char kDebugEnableFrameToggle
[];
81 extern const char kDebugPackedApps
[];
82 extern const char kDebugPrint
[];
83 extern const char kDiagnostics
[];
84 extern const char kDiagnosticsFormat
[];
85 extern const char kDiagnosticsRecovery
[];
86 extern const char kDisableAsyncDns
[];
87 extern const char kDisableAuthNegotiateCnameLookup
[];
88 extern const char kDisableBackgroundMode
[];
89 extern const char kDisableBackgroundNetworking
[];
90 extern const char kDisableBundledPpapiFlash
[];
91 extern const char kDisableBookmarkAutocompleteProvider
[];
92 extern const char kDisableClientSidePhishingDetection
[];
93 extern const char kDisableComponentExtensionsWithBackgroundPages
[];
94 extern const char kDisableComponentUpdate
[];
95 extern const char kDisableCRLSets
[];
96 extern const char kDisableCreateExistingManagedUsers
[];
97 extern const char kDisableCustomJumpList
[];
98 extern const char kDisableDefaultApps
[];
99 extern const char kDisableDeviceDiscovery
[];
100 extern const char kDisableDeviceDiscoveryNotifications
[];
101 extern const char kDisableDhcpWpad
[];
102 extern const char kDisableDnsProbes
[];
103 extern const char kDisableExtensionsFileAccessCheck
[];
104 extern const char kDisableExtensionsHttpThrottling
[];
105 extern const char kDisableExtensionsResourceWhitelist
[];
106 extern const char kDisableExtensions
[];
107 extern const char kDisableGoogleNowIntegration
[];
108 extern const char kDisableImprovedDownloadProtection
[];
109 extern const char kDisableIPv6
[];
110 extern const char kDisableIPPooling
[];
111 extern const char kDisableMinimizeOnSecondLauncherItemClick
[];
112 extern const char kDisableNTPOtherSessionsMenu
[];
113 extern const char kDisableOmniboxAutoCompletionForIme
[];
114 extern const char kDisableOriginChip
[];
115 extern const char kDisablePasswordManagerReauthentication
[];
116 extern const char kDisablePeopleSearch
[];
117 extern const char kDisablePnacl
[];
118 extern const char kDisablePopupBlocking
[];
119 extern const char kDisablePreconnect
[];
120 extern const char kDisablePrerenderLocalPredictor
[];
121 extern const char kDisablePrivetLocalPrinting
[];
122 extern const char kDisablePromptOnRepost
[];
123 extern const char kDisableQuic
[];
124 extern const char kDisableQuicHttps
[];
125 extern const char kDisableQuicPortSelection
[];
126 extern const char kDisableRestoreBackgroundContents
[];
127 extern const char kDisableRestoreSessionState
[];
128 extern const char kDisableSearchButtonInOmnibox
[];
129 extern const char kDisableScriptedPrintThrottling
[];
130 extern const char kDisableSpdy31
[];
131 extern const char kDisableSync
[];
132 extern const char kDisableSyncAppSettings
[];
133 extern const char kDisableSyncApps
[];
134 extern const char kDisableSyncAutofill
[];
135 extern const char kDisableSyncAutofillProfile
[];
136 extern const char kDisableSyncBookmarks
[];
137 extern const char kDisableSyncDictionary
[];
138 extern const char kDisableSyncExtensionSettings
[];
139 extern const char kDisableSyncExtensions
[];
140 extern const char kDisableSyncFavicons
[];
141 extern const char kDisableSyncPasswords
[];
142 extern const char kDisableSyncPreferences
[];
143 extern const char kDisableSyncPriorityPreferences
[];
144 extern const char kDisableSyncSearchEngines
[];
145 extern const char kDisableSyncSessionsV2
[];
146 extern const char kDisableSyncSyncedNotifications
[];
147 extern const char kDisableSyncTabs
[];
148 extern const char kDisableSyncThemes
[];
149 extern const char kDisableSyncTypedUrls
[];
150 extern const char kDisableTLSChannelID
[];
151 extern const char kDisableUserMediaSecurity
[];
152 extern const char kDisableWebResources
[];
153 extern const char kDisableZeroBrowsersOpenForTests
[];
154 extern const char kDiskCacheDir
[];
155 extern const char kDiskCacheSize
[];
156 extern const char kDnsLogDetails
[];
157 extern const char kDnsPrefetchDisable
[];
158 extern const char kDumpBrowserHistograms
[];
159 extern const char kEmbedFlashFullscreen
[];
160 extern const char kEnableAdview
[];
161 extern const char kEnableAppList
[];
162 extern const char kEnableAppWindowControls
[];
163 extern const char kEnableAppsShowOnFirstPaint
[];
164 extern const char kEnableAsyncDns
[];
165 extern const char kEnableAuthNegotiatePort
[];
166 extern const char kEnableAutofillAddressI18n
[];
167 extern const char kEnableAutologin
[];
168 extern const char kEnableBenchmarking
[];
169 extern const char kEnableClientHints
[];
170 extern const char kEnableBookmarkUndo
[];
171 extern const char kEnableCloudPrintProxy
[];
172 extern const char kEnableContacts
[];
173 extern const char kEnableDevToolsExperiments
[];
174 extern const char kEnableDeviceDiscoveryNotifications
[];
175 extern const char kEnableDomDistiller
[];
176 extern const char kEnableEnhancedBookmarks
[];
177 extern const char kEnableEphemeralApps
[];
178 extern const char kEnableExtensionActivityLogging
[];
179 extern const char kEnableExtensionActivityLogTesting
[];
180 extern const char kEnableFastUnload
[];
181 extern const char kEnableGoogleNowIntegration
[];
182 extern const char kEnableHttp2Draft04
[];
183 extern const char kEnableWebBasedSignin
[];
184 extern const char kEnableIPPooling
[];
185 extern const char kEnableIPv6
[];
186 extern const char kEnableLinkableEphemeralApps
[];
187 extern const char kEnableLocalFirstLoadNTP
[];
188 extern const char kEnableManagedStorage
[];
189 extern const char kEnableMemoryInfo
[];
190 extern const char kEnableMetricsReportingForTesting
[];
191 extern const char kEnableNaCl
[];
192 extern const char kEnableNetBenchmarking
[];
193 extern const char kEnableNetworkTime
[];
194 extern const char kEnableNpnHttpOnly
[];
195 extern const char kEnableOfflineAutoReload
[];
196 extern const char kEnableOmniboxAutoCompletionForIme
[];
197 extern const char kEnableOriginChip
[];
198 extern const char kEnableOriginChipLeadingLocationBar
[];
199 extern const char kEnableOriginChipTrailingLocationBar
[];
200 extern const char kEnableOriginChipLeadingMenuButton
[];
201 extern const char kEnablePanels
[];
202 extern const char kEnablePasswordAutofillPublicSuffixDomainMatching
[];
203 extern const char kEnablePermissionsBubbles
[];
204 extern const char kEnableQueryExtraction
[];
205 extern const char kEnablePrivetStorage
[];
206 extern const char kEnableProfiling
[];
207 extern const char kEnableQuic
[];
208 extern const char kEnableQuicHttps
[];
209 extern const char kEnableQuicPortSelection
[];
210 extern const char kEnableResourceContentSettings
[];
211 extern const char kEnableSavePasswordBubble
[];
212 extern const char kEnableSdch
[];
213 extern const char kEnableSearchButtonInOmniboxAlways
[];
214 extern const char kEnableSearchButtonInOmniboxForStr
[];
215 extern const char kEnableSearchButtonInOmniboxForStrOrIip
[];
216 extern const char kEnableSpdy2
[];
217 extern const char kEnableSpdy4a2
[];
218 extern const char kEnableSpellingAutoCorrect
[];
219 extern const char kEnableSpellingFeedbackFieldTrial
[];
220 extern const char kEnableStackedTabStrip
[];
221 extern const char kEnableStreamlinedHostedApps
[];
222 extern const char kEnableSuggestionsTabPage
[];
223 extern const char kEnableSyncAppList
[];
224 extern const char kEnableSyncArticles
[];
225 extern const char kEnableSyncSyncedNotifications
[];
226 extern const char kEnableTabGroupsContextMenu
[];
227 extern const char kEnableThumbnailRetargeting
[];
228 extern const char kEnableTranslateNewUX
[];
229 extern const char kEnableUnrestrictedSSL3Fallback
[];
230 extern const char kEnableUserAlternateProtocolPorts
[];
231 extern const char kEnableWatchdog
[];
232 extern const char kEnableWebSocketOverSpdy
[];
233 extern const char kExplicitlyAllowedPorts
[];
234 extern const char kExtensionsInstallVerification
[];
235 extern const char kExtensionsNotWebstore
[];
236 extern const char kExtensionsUpdateFrequency
[];
237 extern const char kExtraSearchQueryParams
[];
238 extern const char kFakeVariationsChannel
[];
239 extern const char kFastStart
[];
240 extern const char kFlagSwitchesBegin
[];
241 extern const char kFlagSwitchesEnd
[];
242 extern const char kFeedbackServer
[];
243 extern const char kFileDescriptorLimit
[];
244 extern const char kForceAppMode
[];
245 extern const char kForceFirstRun
[];
246 extern const char kForceVariationIds
[];
247 extern const char kForceLoadCloudPolicy
[];
248 extern const char kGoogleBaseURL
[];
249 extern const char kGoogleProfileInfo
[];
250 extern const char kGoogleSearchDomainCheckURL
[];
251 extern const char kGSSAPILibraryName
[];
252 extern const char kHelp
[];
253 extern const char kHelpShort
[];
254 extern const char kHideIcons
[];
255 extern const char kHistoryDisableFullHistorySync
[];
256 extern const char kHistoryEnableGroupByDomain
[];
257 extern const char kHistoryWebHistoryUrl
[];
258 extern const char kHomePage
[];
259 extern const char kHostRules
[];
260 extern const char kHostResolverParallelism
[];
261 extern const char kHostResolverRetryAttempts
[];
262 extern const char kIgnoreUrlFetcherCertRequests
[];
263 extern const char kIncognito
[];
264 extern const char kInstallFromWebstore
[];
265 extern const char kInstantProcess
[];
266 extern const char kIpcFuzzerTestcase
[];
267 extern const char kKeepAliveForTest
[];
268 extern const char kKioskMode
[];
269 extern const char kKioskModePrinting
[];
270 extern const char kLimitedInstallFromWebstore
[];
271 extern const char kLoadComponentExtension
[];
272 extern const char kLoadExtension
[];
273 extern const char kMakeDefaultBrowser
[];
274 extern const char kManagedUserId
[];
275 extern const char kManagedUserSyncToken
[];
276 extern const char kManualEnhancedBookmarks
[];
277 extern const char kMediaCacheSize
[];
278 extern const char kMemoryProfiling
[];
279 extern const char kMessageLoopHistogrammer
[];
280 extern const char kMetricsRecordingOnly
[];
281 extern const char kMultiProfiles
[];
282 extern const char kNativeMessagingHosts
[];
283 extern const char kNetLogLevel
[];
284 extern const char kNewProfileManagement
[];
285 extern const char kNoDefaultBrowserCheck
[];
286 extern const char kNoDisplayingInsecureContent
[];
287 extern const char kNoEvents
[];
288 extern const char kNoExperiments
[];
289 extern const char kNoFirstRun
[];
290 extern const char kNoJsRandomness
[];
291 extern const char kNoNetworkProfileWarning
[];
292 extern const char kNoProxyServer
[];
293 extern const char kNoPings
[];
294 extern const char kNoServiceAutorun
[];
295 extern const char kNoStartupWindow
[];
296 extern const char kNoManagedUserAcknowledgmentCheck
[];
297 extern const char kNtpAppInstallHint
[];
298 extern const char kNumPacThreads
[];
299 extern const char kOnlyBlockSettingThirdPartyCookies
[];
300 extern const char kOpenInNewWindow
[];
301 extern const char kOrganicInstall
[];
302 extern const char kOriginToForceQuicOn
[];
303 extern const char kOriginalProcessStartTime
[];
304 extern const char kOutOfProcessPdf
[];
305 extern const char kPackExtension
[];
306 extern const char kPackExtensionKey
[];
307 extern const char kParentProfile
[];
308 extern const char kPerformanceMonitorGathering
[];
309 extern const char kPlaybackMode
[];
310 extern const char kPnaclDir
[];
311 extern const char kPpapiFlashInProcess
[];
312 extern const char kPpapiFlashPath
[];
313 extern const char kPpapiFlashVersion
[];
314 extern const char kPrerenderFromOmnibox
[];
315 extern const char kPrerenderFromOmniboxSwitchValueAuto
[];
316 extern const char kPrerenderFromOmniboxSwitchValueDisabled
[];
317 extern const char kPrerenderFromOmniboxSwitchValueEnabled
[];
318 extern const char kPrerenderMode
[];
319 extern const char kPrerenderModeSwitchValueAuto
[];
320 extern const char kPrerenderModeSwitchValueDisabled
[];
321 extern const char kPrerenderModeSwitchValueEnabled
[];
322 extern const char kPrerenderModeSwitchValuePrefetchOnly
[];
323 extern const char kPrivetIPv6Only
[];
324 extern const char kProductVersion
[];
325 extern const char kProfileDirectory
[];
326 extern const char kProfilingAtStart
[];
327 extern const char kProfilingFile
[];
328 extern const char kProfilingFlush
[];
329 extern const char kProfilingOutputFile
[];
330 extern const char kPromoServerURL
[];
331 extern const char kProxyAutoDetect
[];
332 extern const char kProxyBypassList
[];
333 extern const char kProxyPacUrl
[];
334 extern const char kProxyServer
[];
335 extern const char kPurgeMemoryButton
[];
336 extern const char kQuicMaxPacketLength
[];
337 extern const char kQuicVersion
[];
338 extern const char kRecordMode
[];
339 extern const char kRemoteDebuggingFrontend
[];
340 extern const char kRendererPrintPreview
[];
341 extern const char kResetAppListInstallState
[];
342 extern const char kResetVariationState
[];
343 extern const char kRestoreLastSession
[];
344 extern const char kSavePageAsMHTML
[];
345 extern const char kSbURLPrefix
[];
346 extern const char kSbDisableAutoUpdate
[];
347 extern const char kSbDisableDownloadProtection
[];
348 extern const char kSbDisableExtensionBlacklist
[];
349 extern const char kSbDisableSideEffectFreeWhitelist
[];
350 extern const char kSbDownloadFeedbackURL
[];
351 extern const char kServiceProcess
[];
352 extern const char kSilentDebuggerExtensionAPI
[];
353 extern const char kSilentLaunch
[];
354 extern const char kSetToken
[];
355 extern const char kShowAppList
[];
356 extern const char kShowAppListStartPage
[];
357 extern const char kShowIcons
[];
358 extern const char kSigninProcess
[];
359 extern const char kSilentDumpOnDCHECK
[];
360 extern const char kSimulateUpgrade
[];
361 extern const char kSimulateCriticalUpdate
[];
362 extern const char kSimulateOutdated
[];
363 extern const char kSpdyProxyAuthFallback
[];
364 extern const char kSpdyProxyAuthOrigin
[];
365 extern const char kSpdyProxyAuthValue
[];
366 extern const char kSpdyProxyDevAuthOrigin
[];
367 extern const char kSpellingServiceFeedbackUrl
[];
368 extern const char kSpellingServiceFeedbackIntervalSeconds
[];
369 extern const char kSSLVersionMax
[];
370 extern const char kSSLVersionMin
[];
371 extern const char kStartMaximized
[];
372 extern const char kSuggestionNtpFilterWidth
[];
373 extern const char kSuggestionNtpGaussianFilter
[];
374 extern const char kSuggestionNtpLinearFilter
[];
375 extern const char kSyncAllowInsecureXmppConnection
[];
376 extern const char kSyncInvalidateXmppLogin
[];
377 extern const char kSyncShortInitialRetryOverride
[];
378 extern const char kSyncNotificationHostPort
[];
379 extern const char kSyncServiceURL
[];
380 extern const char kSyncThrowUnrecoverableError
[];
381 extern const char kSyncTrySsltcpFirstForXmpp
[];
382 extern const char kSyncEnableDeferredStartup
[];
383 extern const char kSyncEnableGetUpdateAvoidance
[];
384 extern const char kSyncfsEnableDirectoryOperation
[];
385 extern const char kTabCapture
[];
386 extern const char kTestName
[];
387 extern const char kTestType
[];
388 extern const char kTestingChannelID
[];
389 extern const char kTranslateScriptURL
[];
390 extern const char kTrustedSpdyProxy
[];
391 extern const char kTryChromeAgain
[];
392 extern const char kUninstallExtension
[];
393 extern const char kUninstall
[];
394 extern const char kUnlimitedStorage
[];
395 extern const char kUseSimpleCacheBackend
[];
396 extern const char kUseSpdy
[];
397 extern const char kUseSpellingSuggestions
[];
398 extern const char kMaxSpdyConcurrentStreams
[];
399 extern const char kUserDataDir
[];
400 extern const char kUseSystemTitleBar
[];
401 extern const char kValidateCrx
[];
402 extern const char kVariationsServerURL
[];
403 extern const char kVersion
[];
404 extern const char kWhitelistedExtensionID
[];
405 extern const char kWindowPosition
[];
406 extern const char kWindowSize
[];
407 extern const char kWinHttpProxyResolver
[];
409 #if defined(ENABLE_PLUGIN_INSTALLATION)
410 extern const char kPluginsMetadataServerURL
[];
413 #if defined(OS_ANDROID) || defined(OS_IOS)
414 extern const char kEnableSpdyProxyAuth
[];
415 #endif // defined(OS_ANDROID) || defined(OS_IOS)
417 #if defined(OS_ANDROID)
418 extern const char kDisableAppBanners
[];
419 extern const char kDisableNewNTP
[];
420 extern const char kDisableZeroSuggest
[];
421 extern const char kEnableAccessibilityTabSwitcher
[];
422 extern const char kEnableNewNTP
[];
423 extern const char kEnableTranslate
[];
424 extern const char kEnableCast
[];
425 extern const char kEnableZeroSuggestEtherSerp
[];
426 extern const char kEnableZeroSuggestEtherNoSerp
[];
427 extern const char kEnableZeroSuggestMostVisited
[];
431 extern const char kOpenAsh
[];
434 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
435 extern const char kPasswordStore
[];
438 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
439 extern const char kMigrateDataDirForSxS
[];
442 #if defined(OS_MACOSX)
443 extern const char kDisableAppShims
[];
444 extern const char kDisableCoreAnimationLayerSquashing
[];
445 extern const char kDisableSystemFullscreenForTesting
[];
446 extern const char kEnableExposeForTabs
[];
447 extern const char kEnableSimplifiedFullscreen
[];
448 extern const char kKeychainReauthorize
[];
449 extern const char kRelauncherProcess
[];
450 extern const char kUseMockKeychain
[];
454 extern const char kEnableProfileShortcutManager
[];
455 extern const char kForceImmersive
[];
456 extern const char kForceDesktop
[];
457 extern const char kPrintRaster
[];
458 extern const char kRelaunchShortcut
[];
459 extern const char kViewerConnect
[];
460 extern const char kViewerLaunchViaAppId
[];
461 extern const char kWaitForMutex
[];
462 extern const char kWindows8Search
[];
466 extern const char kFileManagerExtensionPath
[];
467 extern const char kImageLoaderExtensionPath
[];
470 #if defined(GOOGLE_CHROME_BUILD)
471 extern const char kDisablePrintPreview
[];
473 extern const char kEnablePrintPreview
[];
476 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
477 // alphabetical order, or in one of the ifdefs (also in order in each section).
479 } // namespace switches
481 #endif // CHROME_COMMON_CHROME_SWITCHES_H_