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 "content/public/common/content_switches.h"
18 // -----------------------------------------------------------------------------
19 // Can't find the switch you are looking for? Try looking in
20 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the
21 // .cc files corresponding to the *_switches.h files included above
23 // -----------------------------------------------------------------------------
25 // All switches in alphabetical order. The switches should be documented
26 // alongside the definition of their values in the .cc file.
27 extern const char kAllowCreateExistingManagedUsers
[];
28 extern const char kAllowCrossOriginAuthPrompt
[];
29 extern const char kAllowFileAccess
[];
30 extern const char kAllowHttpScreenCapture
[];
31 extern const char kAllowNaClCrxFsAPI
[];
32 extern const char kAllowNaClFileHandleAPI
[];
33 extern const char kAllowNaClSocketAPI
[];
34 extern const char kAllowOutdatedPlugins
[];
35 extern const char kAllowRunningInsecureContent
[];
36 extern const char kAlwaysAuthorizePlugins
[];
37 extern const char kAppId
[];
38 extern const char kApp
[];
39 extern const char kAppListStartPageURL
[];
40 extern const char kAppsDevtool
[];
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 kChromeFrame
[];
63 extern const char kChromeVersion
[];
64 extern const char kCipherSuiteBlacklist
[];
65 extern const char kClearTokenService
[];
66 extern const char kCloudPrintDeleteFile
[];
67 extern const char kCloudPrintFile
[];
68 extern const char kCloudPrintJobTitle
[];
69 extern const char kCloudPrintFileType
[];
70 extern const char kCloudPrintPrintTicket
[];
71 extern const char kCloudPrintSetupProxy
[];
72 extern const char kCloudPrintServiceURL
[];
73 extern const char kComponentUpdater
[];
74 extern const char kConflictingModulesCheck
[];
75 extern const char kContentSettings2
[];
76 extern const char kCountry
[];
77 extern const char kCrashOnHangThreads
[];
78 extern const char kCreateBrowserOnStartupForTests
[];
79 #if defined(OS_ANDROID) || defined(OS_IOS)
80 extern const char kDataReductionProxyProbeURL
[];
82 extern const char kDebugEnableFrameToggle
[];
83 extern const char kDebugPackedApps
[];
84 extern const char kDebugPrint
[];
85 extern const char kDeviceManagementUrl
[];
86 extern const char kDiagnostics
[];
87 extern const char kDiagnosticsFormat
[];
88 extern const char kDiagnosticsRecovery
[];
89 extern const char kDisableAsyncDns
[];
90 extern const char kDisableAuthNegotiateCnameLookup
[];
91 extern const char kDisableBackgroundMode
[];
92 extern const char kDisableBackgroundNetworking
[];
93 extern const char kDisableBundledPpapiFlash
[];
94 extern const char kDisableBookmarkAutocompleteProvider
[];
95 extern const char kDisableClientSidePhishingDetection
[];
96 extern const char kDisableComponentExtensionsWithBackgroundPages
[];
97 extern const char kDisableComponentUpdate
[];
98 extern const char kDisableCRLSets
[];
99 extern const char kDisableCustomJumpList
[];
100 extern const char kDisableDefaultApps
[];
101 extern const char kDisableDeviceDiscovery
[];
102 extern const char kDisableDeviceDiscoveryNotifications
[];
103 extern const char kDisableDhcpWpad
[];
104 extern const char kDisableDnsProbes
[];
105 extern const char kDisableExtensionsFileAccessCheck
[];
106 extern const char kDisableExtensionsHttpThrottling
[];
107 extern const char kDisableExtensionsResourceWhitelist
[];
108 extern const char kDisableExtensions
[];
109 extern const char kDisableGoogleNowIntegration
[];
110 extern const char kDisableImprovedDownloadProtection
[];
111 extern const char kDisableIPv6
[];
112 extern const char kDisableIPPooling
[];
113 extern const char kDisableMinimizeOnSecondLauncherItemClick
[];
114 extern const char kDisableNTPOtherSessionsMenu
[];
115 extern const char kDisableOmniboxAutoCompletionForIme
[];
116 extern const char kDisablePasswordAutofillPublicSuffixDomainMatching
[];
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 kDisableRestoreBackgroundContents
[];
126 extern const char kDisableRestoreSessionState
[];
127 extern const char kDisableScriptedPrintThrottling
[];
128 extern const char kDisableSpdy31
[];
129 extern const char kDisableSync
[];
130 extern const char kDisableSyncAppSettings
[];
131 extern const char kDisableSyncApps
[];
132 extern const char kDisableSyncAutofill
[];
133 extern const char kDisableSyncAutofillProfile
[];
134 extern const char kDisableSyncBookmarks
[];
135 extern const char kDisableSyncDictionary
[];
136 extern const char kDisableSyncExtensionSettings
[];
137 extern const char kDisableSyncExtensions
[];
138 extern const char kDisableSyncFavicons
[];
139 extern const char kDisableSyncPasswords
[];
140 extern const char kDisableSyncPreferences
[];
141 extern const char kDisableSyncPriorityPreferences
[];
142 extern const char kDisableSyncSearchEngines
[];
143 extern const char kDisableSyncSyncedNotifications
[];
144 extern const char kDisableSyncTabs
[];
145 extern const char kDisableSyncThemes
[];
146 extern const char kDisableSyncTypedUrls
[];
147 extern const char kDisableTranslate
[];
148 extern const char kDisableTLSChannelID
[];
149 extern const char kDisableUserMediaSecurity
[];
150 extern const char kDisableWebGLDebugRendererInfo
[];
151 extern const char kDisableWebResources
[];
152 extern const char kDisableZeroBrowsersOpenForTests
[];
153 extern const char kDiskCacheDir
[];
154 extern const char kDiskCacheSize
[];
155 extern const char kDnsLogDetails
[];
156 extern const char kDnsPrefetchDisable
[];
157 extern const char kDumpBrowserHistograms
[];
158 extern const char kEmbedFlashFullscreen
[];
159 extern const char kEnableAdview
[];
160 extern const char kEnableAdviewSrcAttribute
[];
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 kEnableAutologin
[];
167 extern const char kEnableBenchmarking
[];
168 extern const char kEnableClientHints
[];
169 extern const char kEnableBookmarkUndo
[];
170 extern const char kEnableCloudPrintProxy
[];
171 extern const char kEnableContacts
[];
172 extern const char kEnableDevToolsExperiments
[];
173 extern const char kEnableDeviceDiscoveryNotifications
[];
174 extern const char kEnableDomDistiller
[];
175 extern const char kEnableEnhancedBookmarks
[];
176 extern const char kEnableEphemeralApps
[];
177 extern const char kEnableExtensionActivityLogging
[];
178 extern const char kEnableExtensionActivityLogTesting
[];
179 extern const char kEnableFastUnload
[];
180 extern const char kEnableFileCookies
[];
181 extern const char kEnableGoogleNowIntegration
[];
182 extern const char kEnableHttp2Draft04
[];
183 extern const char kEnableInlineSignin
[];
184 extern const char kEnableIPPooling
[];
185 extern const char kEnableIPv6
[];
186 extern const char kEnableLocalFirstLoadNTP
[];
187 extern const char kEnableManagedStorage
[];
188 extern const char kEnableMemoryInfo
[];
189 extern const char kEnableMetricsReportingForTesting
[];
190 extern const char kEnableNaCl
[];
191 extern const char kEnableNetBenchmarking
[];
192 extern const char kEnableNetworkTime
[];
193 extern const char kEnableNpnHttpOnly
[];
194 extern const char kEnableOmniboxAutoCompletionForIme
[];
195 extern const char kEnablePanels
[];
196 extern const char kEnablePasswordAutofillPublicSuffixDomainMatching
[];
197 extern const char kDisablePasswordManagerReauthentication
[];
198 extern const char kEnableQueryExtraction
[];
199 extern const char kDisablePeopleSearch
[];
200 extern const char kEnablePrecache
[];
201 extern const char kEnablePrintPreviewRegisterPromos
[];
202 extern const char kEnableProfiling
[];
203 extern const char kEnableQuic
[];
204 extern const char kEnableQuicHttps
[];
205 extern const char kEnableQuickofficeViewing
[];
206 extern const char kEnableResourceContentSettings
[];
207 extern const char kEnableSavePasswordBubble
[];
208 extern const char kEnableSdch
[];
209 extern const char kEnableStickyKeys
[];
210 extern const char kDisableStickyKeys
[];
211 extern const char kEnableSpdy2
[];
212 extern const char kDisableSpdy31
[];
213 extern const char kEnableSpdy4a2
[];
214 extern const char kEnableSpellingAutoCorrect
[];
215 extern const char kEnableSpellingFeedbackFieldTrial
[];
216 extern const char kEnableStackedTabStrip
[];
217 extern const char kEnableStreamlinedHostedApps
[];
218 extern const char kEnableSuggestionsTabPage
[];
219 extern const char kEnableSyncArticles
[];
220 extern const char kEnableSyncSyncedNotifications
[];
221 extern const char kEnableSyncSessionsV2
[];
222 extern const char kEnableTabGroupsContextMenu
[];
223 extern const char kEnableThumbnailRetargeting
[];
224 extern const char kEnableTranslateNewUX
[];
225 extern const char kEnableUnrestrictedSSL3Fallback
[];
226 extern const char kEnableUserAlternateProtocolPorts
[];
227 extern const char kEnableWatchdog
[];
228 extern const char kEnableWebSocketOverSpdy
[];
229 extern const char kExplicitlyAllowedPorts
[];
230 extern const char kExtensionProcess
[];
231 extern const char kExtensionsInstallVerification
[];
232 extern const char kExtensionsNotWebstore
[];
233 extern const char kExtensionsUpdateFrequency
[];
234 extern const char kExtraSearchQueryParams
[];
235 extern const char kFakeVariationsChannel
[];
236 extern const char kFastStart
[];
237 extern const char kFlagSwitchesBegin
[];
238 extern const char kFlagSwitchesEnd
[];
239 extern const char kFeedbackServer
[];
240 extern const char kFileDescriptorLimit
[];
241 extern const char kForceAppMode
[];
242 extern const char kForceFirstRun
[];
243 extern const char kForceVariationIds
[];
244 extern const char kForceLoadCloudPolicy
[];
245 extern const char kGoogleBaseURL
[];
246 extern const char kGoogleProfileInfo
[];
247 extern const char kGoogleSearchDomainCheckURL
[];
248 extern const char kGSSAPILibraryName
[];
249 extern const char kHelp
[];
250 extern const char kHelpShort
[];
251 extern const char kHideIcons
[];
252 extern const char kHistoryDisableFullHistorySync
[];
253 extern const char kHistoryEnableGroupByDomain
[];
254 extern const char kHistoryWebHistoryUrl
[];
255 extern const char kHomePage
[];
256 extern const char kHostRules
[];
257 extern const char kHostResolverParallelism
[];
258 extern const char kHostResolverRetryAttempts
[];
259 extern const char kIgnoreUrlFetcherCertRequests
[];
260 extern const char kIncognito
[];
261 extern const char kInstallFromWebstore
[];
262 extern const char kInstantProcess
[];
263 extern const char kIpcFuzzerTestcase
[];
264 extern const char kKeepAliveForTest
[];
265 extern const char kKioskMode
[];
266 extern const char kKioskModePrinting
[];
267 extern const char kLimitedInstallFromWebstore
[];
268 extern const char kLoadComponentExtension
[];
269 extern const char kLoadExtension
[];
270 extern const char kMakeDefaultBrowser
[];
271 extern const char kManagedUserId
[];
272 extern const char kManagedUserSyncToken
[];
273 extern const char kMediaCacheSize
[];
274 extern const char kMemoryProfiling
[];
275 extern const char kMessageLoopHistogrammer
[];
276 extern const char kMetricsRecordingOnly
[];
277 extern const char kMultiProfiles
[];
278 extern const char kNativeMessagingHosts
[];
279 extern const char kNetLogLevel
[];
280 extern const char kNewProfileManagement
[];
281 extern const char kNoDefaultBrowserCheck
[];
282 extern const char kNoDisplayingInsecureContent
[];
283 extern const char kNoEvents
[];
284 extern const char kNoExperiments
[];
285 extern const char kNoFirstRun
[];
286 extern const char kNoJsRandomness
[];
287 extern const char kNoNetworkProfileWarning
[];
288 extern const char kNoProxyServer
[];
289 extern const char kNoPings
[];
290 extern const char kNoServiceAutorun
[];
291 extern const char kNoStartupWindow
[];
292 extern const char kNoManagedUserAcknowledgmentCheck
[];
293 extern const char kNtpAppInstallHint
[];
294 extern const char kNumPacThreads
[];
295 extern const char kOnlyBlockSettingThirdPartyCookies
[];
296 extern const char kOpenInNewWindow
[];
297 extern const char kOrganicInstall
[];
298 extern const char kOriginToForceQuicOn
[];
299 extern const char kOriginalProcessStartTime
[];
300 extern const char kOutOfProcessPdf
[];
301 extern const char kPackExtension
[];
302 extern const char kPackExtensionKey
[];
303 extern const char kParentProfile
[];
304 extern const char kPerformanceMonitorGathering
[];
305 extern const char kPlaybackMode
[];
306 extern const char kPnaclDir
[];
307 extern const char kPpapiFlashInProcess
[];
308 extern const char kPpapiFlashPath
[];
309 extern const char kPpapiFlashVersion
[];
310 extern const char kPrerenderFromOmnibox
[];
311 extern const char kPrerenderFromOmniboxSwitchValueAuto
[];
312 extern const char kPrerenderFromOmniboxSwitchValueDisabled
[];
313 extern const char kPrerenderFromOmniboxSwitchValueEnabled
[];
314 extern const char kPrerenderMode
[];
315 extern const char kPrerenderModeSwitchValueAuto
[];
316 extern const char kPrerenderModeSwitchValueDisabled
[];
317 extern const char kPrerenderModeSwitchValueEnabled
[];
318 extern const char kPrerenderModeSwitchValuePrefetchOnly
[];
319 extern const char kPrivetIPv6Only
[];
320 extern const char kProductVersion
[];
321 extern const char kProfileDirectory
[];
322 extern const char kProfilingAtStart
[];
323 extern const char kProfilingFile
[];
324 extern const char kProfilingFlush
[];
325 extern const char kProfilingOutputFile
[];
326 extern const char kPromoServerURL
[];
327 extern const char kProxyAutoDetect
[];
328 extern const char kProxyBypassList
[];
329 extern const char kProxyPacUrl
[];
330 extern const char kProxyServer
[];
331 extern const char kPurgeMemoryButton
[];
332 extern const char kQuicMaxPacketLength
[];
333 extern const char kRecordMode
[];
334 extern const char kRemoteDebuggingFrontend
[];
335 extern const char kRendererPrintPreview
[];
336 extern const char kResetAppListInstallState
[];
337 extern const char kResetVariationState
[];
338 extern const char kRestoreLastSession
[];
339 extern const char kSavePageAsMHTML
[];
340 extern const char kSbURLPrefix
[];
341 extern const char kSbDisableAutoUpdate
[];
342 extern const char kSbDisableDownloadProtection
[];
343 extern const char kSbDisableExtensionBlacklist
[];
344 extern const char kSbDisableSideEffectFreeWhitelist
[];
345 extern const char kSbDownloadFeedbackURL
[];
346 extern const char kServiceProcess
[];
347 extern const char kSilentDebuggerExtensionAPI
[];
348 extern const char kSilentLaunch
[];
349 extern const char kSetToken
[];
350 extern const char kShowAppList
[];
351 extern const char kShowAppListStartPage
[];
352 extern const char kShowIcons
[];
353 extern const char kSigninProcess
[];
354 extern const char kSilentDumpOnDCHECK
[];
355 extern const char kSimulateUpgrade
[];
356 extern const char kSimulateCriticalUpdate
[];
357 extern const char kSimulateOutdated
[];
358 extern const char kSpeculativeResourcePrefetching
[];
359 extern const char kSpeculativeResourcePrefetchingDisabled
[];
360 extern const char kSpeculativeResourcePrefetchingLearning
[];
361 extern const char kSpdyProxyAuthFallback
[];
362 extern const char kSpdyProxyAuthOrigin
[];
363 extern const char kSpdyProxyAuthValue
[];
364 extern const char kSpeculativeResourcePrefetchingEnabled
[];
365 extern const char kSpellingServiceFeedbackUrl
[];
366 extern const char kSpellingServiceFeedbackIntervalSeconds
[];
367 extern const char kSSLVersionMax
[];
368 extern const char kSSLVersionMin
[];
369 extern const char kStartMaximized
[];
370 extern const char kSuggestionNtpFilterWidth
[];
371 extern const char kSuggestionNtpGaussianFilter
[];
372 extern const char kSuggestionNtpLinearFilter
[];
373 extern const char kSyncAllowInsecureXmppConnection
[];
374 extern const char kSyncInvalidateXmppLogin
[];
375 extern const char kSyncShortInitialRetryOverride
[];
376 extern const char kSyncNotificationHostPort
[];
377 extern const char kSyncServiceURL
[];
378 extern const char kSyncThrowUnrecoverableError
[];
379 extern const char kSyncTrySsltcpFirstForXmpp
[];
380 extern const char kSyncEnableDeferredStartup
[];
381 extern const char kSyncEnableGetUpdateAvoidance
[];
382 extern const char kSyncfsEnableDirectoryOperation
[];
383 extern const char kTabBrowserDragging
[];
384 extern const char kTabCapture
[];
385 extern const char kTestName
[];
386 extern const char kTestType
[];
387 extern const char kTestingChannelID
[];
388 extern const char kTrackActiveVisitTime
[];
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 kValidateCrx
[];
401 extern const char kVariationsServerURL
[];
402 extern const char kVersion
[];
403 extern const char kWhitelistedExtensionID
[];
404 extern const char kWindowPosition
[];
405 extern const char kWindowSize
[];
406 extern const char kWinHttpProxyResolver
[];
408 #if defined(ENABLE_PLUGIN_INSTALLATION)
409 extern const char kPluginsMetadataServerURL
[];
412 #if defined(OS_ANDROID) || defined(OS_IOS)
413 extern const char kEnableSpdyProxyAuth
[];
414 #endif // defined(OS_ANDROID) || defined(OS_IOS)
416 #if defined(OS_ANDROID)
417 extern const char kDisableAddToHomescreen
[];
418 extern const char kDisableNewNTP
[];
419 extern const char kDisableZeroSuggest
[];
420 extern const char kEnableAccessibilityTabSwitcher
[];
421 extern const char kEnableAddToHomescreen
[];
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 kDisableSystemFullscreenForTesting
[];
444 extern const char kEnableAppShims
[];
445 extern const char kEnableExposeForTabs
[];
446 extern const char kEnableSimplifiedFullscreen
[];
447 extern const char kKeychainReauthorize
[];
448 extern const char kRelauncherProcess
[];
449 extern const char kUseMockKeychain
[];
453 extern const char kEnableProfileShortcutManager
[];
454 extern const char kForceImmersive
[];
455 extern const char kForceDesktop
[];
456 extern const char kPrintRaster
[];
457 extern const char kRelaunchShortcut
[];
458 extern const char kWaitForMutex
[];
459 extern const char kWindows8Search
[];
462 #if defined(OS_WIN) && defined(USE_AURA)
463 extern const char kViewerConnect
[];
464 extern const char kViewerLaunchViaAppId
[];
468 extern const char kFileManagerExtensionPath
[];
469 extern const char kImageLoaderExtensionPath
[];
472 #if defined(GOOGLE_CHROME_BUILD)
473 extern const char kDisablePrintPreview
[];
475 extern const char kEnablePrintPreview
[];
478 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
479 // alphabetical order, or in one of the ifdefs (also in order in each section).
481 } // namespace switches
483 #endif // CHROME_COMMON_CHROME_SWITCHES_H_