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/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
15 #include "components/password_manager/core/common/password_manager_switches.h"
16 #include "components/signin/core/common/signin_switches.h"
17 #include "content/public/common/content_switches.h"
21 // -----------------------------------------------------------------------------
22 // Can't find the switch you are looking for? Try looking in
23 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the
24 // .cc files corresponding to the *_switches.h files included above
26 // -----------------------------------------------------------------------------
28 // All switches in alphabetical order. The switches should be documented
29 // alongside the definition of their values in the .cc file.
30 extern const char kAllowCrossOriginAuthPrompt
[];
31 extern const char kAllowFileAccess
[];
32 extern const char kAllowHttpScreenCapture
[];
33 extern const char kAllowInsecureLocalhost
[];
34 extern const char kAllowOutdatedPlugins
[];
35 extern const char kAllowRunningInsecureContent
[];
36 extern const char kAlternateProtocolProbabilityThreshold
[];
37 extern const char kAlwaysAuthorizePlugins
[];
38 extern const char kAppId
[];
39 extern const char kApp
[];
40 extern const char kAppsCheckoutURL
[];
41 extern const char kAppsGalleryDownloadURL
[];
42 extern const char kAppsGalleryURL
[];
43 extern const char kAppsGalleryUpdateURL
[];
44 extern const char kAppModeAuthCode
[];
45 extern const char kAppModeOAuth2Token
[];
46 extern const char kAuthExtensionPath
[];
47 extern const char kAutoLaunchAtStartup
[];
48 extern const char kAutoSelectDesktopCaptureSource
[];
49 extern const char kBypassAppBannerEngagementChecks
[];
50 extern const char kCertificateTransparencyLog
[];
51 extern const char kCheckForUpdateIntervalSec
[];
52 extern const char kCheckCloudPrintConnectorPolicy
[];
53 extern const char kCipherSuiteBlacklist
[];
54 extern const char kCloudPrintFile
[];
55 extern const char kCloudPrintJobTitle
[];
56 extern const char kCloudPrintFileType
[];
57 extern const char kCloudPrintPrintTicket
[];
58 extern const char kCloudPrintSetupProxy
[];
59 extern const char kCrashOnHangThreads
[];
60 extern const char kCreateBrowserOnStartupForTests
[];
61 extern const char kDebugEnableFrameToggle
[];
62 extern const char kDebugPackedApps
[];
63 extern const char kDiagnostics
[];
64 extern const char kDiagnosticsFormat
[];
65 extern const char kDiagnosticsRecovery
[];
66 extern const char kDisableAboutInSettings
[];
67 extern const char kDisableAsyncDns
[];
68 extern const char kDisableBackgroundNetworking
[];
69 extern const char kDisableBundledPpapiFlash
[];
70 extern const char kDisableCastStreamingHWEncoding
[];
71 extern const char kDisableClientSidePhishingDetection
[];
72 extern const char kDisableComponentExtensionsWithBackgroundPages
[];
73 extern const char kDisableComponentUpdate
[];
74 extern const char kDisableDefaultApps
[];
75 extern const char kDisableDeviceDiscoveryNotifications
[];
76 extern const char kDisableDomainReliability
[];
77 extern const char kDisableExtensionsFileAccessCheck
[];
78 extern const char kDisableExtensionsHttpThrottling
[];
79 extern const char kDisableExtensions
[];
80 extern const char kDisableIPv6
[];
81 extern const char kDisableJavaScriptHarmonyShipping
[];
82 extern const char kDisableMinimizeOnSecondLauncherItemClick
[];
83 extern const char kDisableNewBookmarkApps
[];
84 extern const char kDisableNewOfflineErrorPage
[];
85 extern const char kDisableNTPOtherSessionsMenu
[];
86 extern const char kDisableOfflineAutoReload
[];
87 extern const char kDisableOfflineAutoReloadVisibleOnly
[];
88 extern const char kDisableOutOfProcessPdf
[];
89 extern const char kDisablePasswordManagerReauthentication
[];
90 extern const char kDisablePdfMaterialUI
[];
91 extern const char kDisablePermissionsBubbles
[];
92 extern const char kDisablePopupBlocking
[];
93 extern const char kDisablePreconnect
[];
94 extern const char kDisablePrerenderLocalPredictor
[];
95 extern const char kDisablePrintPreview
[];
96 extern const char kDisablePromptOnRepost
[];
97 extern const char kDisableQuic
[];
98 extern const char kDisableQuicPacing
[];
99 extern const char kDisableQuicPortSelection
[];
100 extern const char kDisableSavePasswordBubble
[];
101 extern const char kDisableSessionCrashedBubble
[];
102 extern const char kDisableSuggestionsService
[];
103 extern const char kDisableSupervisedUserBlacklist
[];
104 extern const char kDisableSupervisedUserSafeSites
[];
105 extern const char kDisableSync
[];
106 extern const char kDisableSyncTypes
[];
107 extern const char kDisableWebResources
[];
108 extern const char kDisableZeroBrowsersOpenForTests
[];
109 extern const char kDiskCacheDir
[];
110 extern const char kDiskCacheSize
[];
111 extern const char kDnsLogDetails
[];
112 extern const char kDnsPrefetchDisable
[];
113 extern const char kDumpBrowserHistograms
[];
114 extern const char kEasyUnlockAppPath
[];
115 extern const char kEnableAppList
[];
116 extern const char kEnableAppsFileAssociations
[];
117 extern const char kEnableAsyncDns
[];
118 extern const char kEnableBenchmarking
[];
119 extern const char kEnableBookmarkUndo
[];
120 extern const char kEnableCloudPrintProxy
[];
121 extern const char kEnableDevToolsExperiments
[];
122 extern const char kEnableDeviceDiscoveryNotifications
[];
123 extern const char kEnableDomDistiller
[];
124 extern const char kEnhancedBookmarksExperiment
[];
125 extern const char kEnableDomainReliability
[];
126 extern const char kEnableEphemeralAppsInWebstore
[];
127 extern const char kDisableExperimentalHotwording
[];
128 extern const char kEnableExperimentalHotwordHardware
[];
129 extern const char kEnableExtensionActivityLogging
[];
130 extern const char kEnableExtensionActivityLogTesting
[];
131 extern const char kEnableFastUnload
[];
132 extern const char kEnableIPv6
[];
133 extern const char kEnableLinkableEphemeralApps
[];
134 extern const char kEnableMaterialDesignSettings
[];
135 extern const char kEnableNaCl
[];
136 extern const char kEnableNetBenchmarking
[];
137 extern const char kEnableNewBookmarkApps
[];
138 extern const char kEnableNpnHttpOnly
[];
139 extern const char kEnableOfflineAutoReload
[];
140 extern const char kEnableOfflineAutoReloadVisibleOnly
[];
141 extern const char kEnableOfflineLoadStaleCache
[];
142 extern const char kDisableOfflineLoadStaleCache
[];
143 extern const char kEnableOutOfProcessPdf
[];
144 extern const char kEnablePanels
[];
145 extern const char kEnablePdfMaterialUI
[];
146 extern const char kEnablePermissionsBubbles
[];
147 extern const char kEnablePluginPlaceholderShadowDom
[];
148 extern const char kEnablePotentiallyAnnoyingSecurityFeatures
[];
149 extern const char kEnablePowerOverlay
[];
150 extern const char kEnablePrintPreviewRegisterPromos
[];
151 extern const char kEnablePrivetStorage
[];
152 extern const char kEnableProfiling
[];
153 extern const char kEnableQueryExtraction
[];
154 extern const char kEnableQuic
[];
155 extern const char kEnableQuicPacing
[];
156 extern const char kEnableQuicPortSelection
[];
157 extern const char kEnableReaderModeToolbarIcon
[];
158 extern const char kEnableSavePasswordBubble
[];
159 extern const char kEnableSdchOverHttps
[];
160 extern const char kEnableSessionCrashedBubble
[];
161 extern const char kEnableSettingsWindow
[];
162 extern const char kEnableShowModalDialog
[];
163 extern const char kDisableSettingsWindow
[];
164 extern const char kEnableSpdy4
[];
165 extern const char kEnableSSLConnectJobWaiting
[];
166 extern const char kEnableStaleWhileRevalidate
[];
167 extern const char kEnableSuggestionsService
[];
168 extern const char kEnableSupervisedUserBlacklist
[];
169 extern const char kEnableSupervisedUserManagedBookmarksFolder
[];
170 extern const char kEnableSupervisedUserSafeSites
[];
171 extern const char kEnableSyncArticles
[];
172 extern const char kEnableTabAudioMuting
[];
173 extern const char kEnableThumbnailRetargeting
[];
174 extern const char kEnableTranslateNewUX
[];
175 extern const char kEnableUserAlternateProtocolPorts
[];
176 extern const char kEnableWebAppFrame
[];
177 extern const char kEnableWebsiteSettingsManager
[];
178 extern const char kEnableWifiCredentialSync
[];
179 extern const char kEnhancedBookmarksExperiment
[];
180 extern const char kExplicitlyAllowedPorts
[];
181 extern const char kExtensionContentVerificationBootstrap
[];
182 extern const char kExtensionContentVerificationEnforceStrict
[];
183 extern const char kExtensionContentVerificationEnforce
[];
184 extern const char kExtensionContentVerification
[];
185 extern const char kExtensionsInstallVerification
[];
186 extern const char kExtensionsNotWebstore
[];
187 extern const char kExtensionsUpdateFrequency
[];
188 extern const char kFakeVariationsChannel
[];
189 extern const char kFastStart
[];
190 extern const char kFlagSwitchesBegin
[];
191 extern const char kFlagSwitchesEnd
[];
192 extern const char kForceAppMode
[];
193 extern const char kForceFirstRun
[];
194 extern const char kForceVariationIds
[];
195 extern const char kHelp
[];
196 extern const char kHelpShort
[];
197 extern const char kHideIcons
[];
198 extern const char kHistoryEnableGroupByDomain
[];
199 extern const char kHomePage
[];
200 extern const char kHostRules
[];
201 extern const char kHostResolverRetryAttempts
[];
202 extern const char kIgnoreUrlFetcherCertRequests
[];
203 extern const char kIncognito
[];
204 extern const char kInstallChromeApp
[];
205 extern const char kInstallEphemeralAppFromWebstore
[];
206 extern const char kInstallSupervisedUserWhitelists
[];
207 extern const char kInstantProcess
[];
208 extern const char kInvalidationUseGCMChannel
[];
209 extern const char kIpcFuzzerTestcase
[];
210 extern const char kJavaScriptHarmony
[];
211 extern const char kKeepAliveForTest
[];
212 extern const char kKioskMode
[];
213 extern const char kKioskModePrinting
[];
214 extern const char kLoadComponentExtension
[];
215 extern const char kLoadExtension
[];
216 extern const char kMakeDefaultBrowser
[];
217 extern const char kManualEnhancedBookmarks
[];
218 extern const char kManualEnhancedBookmarksOptout
[];
219 extern const char kMarkNonSecureAs
[];
220 extern const char kMarkNonSecureAsNeutral
[];
221 extern const char kMarkNonSecureAsDubious
[];
222 extern const char kMarkNonSecureAsNonSecure
[];
223 extern const char kMediaCacheSize
[];
224 extern const char kMessageLoopHistogrammer
[];
225 extern const char kMetricsRecordingOnly
[];
226 extern const char kNetLogLevel
[];
227 extern const char kNoDefaultBrowserCheck
[];
228 extern const char kNoDisplayingInsecureContent
[];
229 extern const char kNoEvents
[];
230 extern const char kNoExperiments
[];
231 extern const char kNoFirstRun
[];
232 extern const char kNoNetworkProfileWarning
[];
233 extern const char kNoProxyServer
[];
234 extern const char kNoPings
[];
235 extern const char kNoServiceAutorun
[];
236 extern const char kNoStartupWindow
[];
237 extern const char kNoSupervisedUserAcknowledgmentCheck
[];
238 extern const char kNumPacThreads
[];
239 extern const char kOpenInNewWindow
[];
240 extern const char kOriginToForceQuicOn
[];
241 extern const char kOriginalProcessStartTime
[];
242 extern const char kPackExtension
[];
243 extern const char kPackExtensionKey
[];
244 extern const char kParentProfile
[];
245 extern const char kPermissionRequestApiScope
[];
246 extern const char kPermissionRequestApiUrl
[];
247 extern const char kPlaybackMode
[];
248 extern const char kPpapiFlashPath
[];
249 extern const char kPpapiFlashVersion
[];
250 extern const char kPrefetchSearchResults
[];
251 extern const char kPrerenderFromOmnibox
[];
252 extern const char kPrerenderFromOmniboxSwitchValueAuto
[];
253 extern const char kPrerenderFromOmniboxSwitchValueDisabled
[];
254 extern const char kPrerenderFromOmniboxSwitchValueEnabled
[];
255 extern const char kPrerenderMode
[];
256 extern const char kPrerenderModeSwitchValueAuto
[];
257 extern const char kPrerenderModeSwitchValueDisabled
[];
258 extern const char kPrerenderModeSwitchValueEnabled
[];
259 extern const char kPrivetIPv6Only
[];
260 extern const char kProductVersion
[];
261 extern const char kProfileDirectory
[];
262 extern const char kProfilingAtStart
[];
263 extern const char kProfilingFile
[];
264 extern const char kProfilingFlush
[];
265 extern const char kProfilingOutputFile
[];
266 extern const char kProxyAutoDetect
[];
267 extern const char kProxyBypassList
[];
268 extern const char kProxyPacUrl
[];
269 extern const char kProxyServer
[];
270 extern const char kQuicConnectionOptions
[];
271 extern const char kQuicMaxPacketLength
[];
272 extern const char kQuicVersion
[];
273 extern const char kRecordMode
[];
274 extern const char kRememberCertErrorDecisions
[];
275 extern const char kRequireCTForEV
[];
276 extern const char kResetAppListInstallState
[];
277 extern const char kRestoreLastSession
[];
278 extern const char kSavePageAsMHTML
[];
279 extern const char kSbDisableAutoUpdate
[];
280 extern const char kSbDisableDownloadProtection
[];
281 extern const char kSbDisableExtensionBlacklist
[];
282 extern const char kSbDisableSideEffectFreeWhitelist
[];
283 extern const char kServiceProcess
[];
284 extern const char kSilentDebuggerExtensionAPI
[];
285 extern const char kSilentLaunch
[];
286 extern const char kSetToken
[];
287 extern const char kShowAppList
[];
288 extern const char kShowIcons
[];
289 extern const char kSigninProcess
[];
290 extern const char kSimulateElevatedRecovery
[];
291 extern const char kSimulateUpgrade
[];
292 extern const char kSimulateCriticalUpdate
[];
293 extern const char kSimulateOutdated
[];
294 extern const char kSimulateOutdatedNoAU
[];
295 extern const char kSpeculativeResourcePrefetching
[];
296 extern const char kSpeculativeResourcePrefetchingDisabled
[];
297 extern const char kSpeculativeResourcePrefetchingEnabled
[];
298 extern const char kSpeculativeResourcePrefetchingLearning
[];
299 #if defined(ENABLE_SPELLCHECK)
300 extern const char kEnableSpellingAutoCorrect
[];
302 extern const char kSSLVersionMax
[];
303 extern const char kSSLVersionMin
[];
304 extern const char kSSLVersionFallbackMin
[];
305 extern const char kSSLVersionSSLv3
[];
306 extern const char kSSLVersionTLSv1
[];
307 extern const char kSSLVersionTLSv11
[];
308 extern const char kSSLVersionTLSv12
[];
309 extern const char kStartMaximized
[];
310 extern const char kSupervisedUserId
[];
311 extern const char kSupervisedUserSyncToken
[];
312 extern const char kSyncShortInitialRetryOverride
[];
313 extern const char kSyncServiceURL
[];
314 extern const char kSyncDisableDeferredStartup
[];
315 extern const char kSyncDeferredStartupTimeoutSeconds
[];
316 extern const char kSyncEnableGetUpdateAvoidance
[];
317 extern const char kSyncDisableBackup
[];
318 extern const char kSyncDisableRollback
[];
319 extern const char kTestName
[];
320 extern const char kTrustedSpdyProxy
[];
321 extern const char kTryChromeAgain
[];
322 extern const char kUninstall
[];
323 extern const char kUnlimitedStorage
[];
324 extern const char kUseSimpleCacheBackend
[];
325 extern const char kUseSpdy
[];
326 extern const char kUserAgent
[];
327 extern const char kUserDataDir
[];
328 extern const char kValidateCrx
[];
329 extern const char kVariationsServerURL
[];
330 extern const char kVersion
[];
331 extern const char kWindowPosition
[];
332 extern const char kWindowSize
[];
333 extern const char kWinHttpProxyResolver
[];
334 extern const char kWinJumplistAction
[];
336 #if defined(OS_ANDROID)
337 extern const char kDisableCast
[];
338 extern const char kDisableContextualSearch
[];
339 extern const char kDisableZeroSuggest
[];
340 extern const char kEnableAccessibilityTabSwitcher
[];
341 extern const char kEnableAppInstallAlerts
[];
342 extern const char kEnableContextualSearch
[];
343 extern const char kEnableZeroSuggestMostVisited
[];
344 extern const char kEnableZeroSuggestMostVisitedWithoutSerp
[];
345 extern const char kEnableInstantSearchClicks
[];
349 extern const char kOpenAsh
[];
352 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
353 extern const char kPasswordStore
[];
356 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
357 extern const char kMigrateDataDirForSxS
[];
360 #if defined(OS_MACOSX)
361 extern const char kAppsKeepChromeAliveInTests
[];
362 extern const char kHostedAppQuitNotification
[];
363 extern const char kDisableHostedAppShimCreation
[];
364 extern const char kDisableSystemFullscreenForTesting
[];
365 extern const char kRelauncherProcess
[];
369 extern const char kEnableCloudPrintXps
[];
370 extern const char kEnableProfileShortcutManager
[];
371 extern const char kForceDesktop
[];
372 extern const char kForceImmersive
[];
373 extern const char kRelaunchShortcut
[];
374 extern const char kViewerLaunchViaAppId
[];
375 extern const char kWaitForMutex
[];
376 extern const char kWindows8Search
[];
379 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
380 extern const char kDebugPrint
[];
383 #if defined(ENABLE_PLUGINS)
384 extern const char kAllowNaClCrxFsAPI
[];
385 extern const char kAllowNaClFileHandleAPI
[];
386 extern const char kAllowNaClSocketAPI
[];
390 extern const char kFileManagerExtensionPath
[];
393 bool AboutInSettingsEnabled();
394 bool MdSettingsEnabled();
395 bool NewOfflineErrorPageEnabled();
396 bool OutOfProcessPdfEnabled();
397 bool PdfMaterialUIEnabled();
398 bool SettingsWindowEnabled();
400 #if defined(OS_CHROMEOS)
401 bool PowerOverlayEnabled();
404 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
405 // alphabetical order, or in one of the ifdefs (also in order in each section).
407 } // namespace switches
409 #endif // CHROME_COMMON_CHROME_SWITCHES_H_