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 kAlternativeServiceProbabilityThreshold
[];
37 extern const char kAlwaysAuthorizePlugins
[];
38 extern const char kAppId
[];
39 extern const char kApp
[];
40 extern const char kAppsGalleryDownloadURL
[];
41 extern const char kAppsGalleryURL
[];
42 extern const char kAppsGalleryUpdateURL
[];
43 extern const char kAppModeAuthCode
[];
44 extern const char kAppModeOAuth2Token
[];
45 extern const char kAuthExtensionPath
[];
46 extern const char kAuthServerWhitelist
[];
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 kCipherSuiteBlacklist
[];
53 extern const char kCloudPrintFile
[];
54 extern const char kCloudPrintJobTitle
[];
55 extern const char kCloudPrintFileType
[];
56 extern const char kCloudPrintPrintTicket
[];
57 extern const char kCloudPrintSetupProxy
[];
58 extern const char kCrashOnHangThreads
[];
59 extern const char kCreateBrowserOnStartupForTests
[];
60 extern const char kDebugEnableFrameToggle
[];
61 extern const char kDebugPackedApps
[];
62 extern const char kDiagnostics
[];
63 extern const char kDiagnosticsFormat
[];
64 extern const char kDiagnosticsRecovery
[];
65 extern const char kDisableAboutInSettings
[];
66 extern const char kDisableAddToShelf
[];
67 extern const char kDisableAsyncDns
[];
68 extern const char kDisableBackgroundNetworking
[];
69 extern const char kDisableBundledPpapiFlash
[];
70 extern const char kDisableCastStreamingHWEncoding
[];
71 extern const char kDisableChildAccountDetection
[];
72 extern const char kDisableClientSidePhishingDetection
[];
73 extern const char kDisableComponentExtensionsWithBackgroundPages
[];
74 extern const char kDisableComponentUpdate
[];
75 extern const char kDisableDefaultApps
[];
76 extern const char kDisableDeviceDiscoveryNotifications
[];
77 extern const char kDisableDinosaurEasterEgg
[];
78 extern const char kDisableDomainReliability
[];
79 extern const char kDisableExtensionsFileAccessCheck
[];
80 extern const char kDisableExtensionsHttpThrottling
[];
81 extern const char kDisableExtensions
[];
82 extern const char kDisableFeatures
[];
83 extern const char kDisableFieldTrialTestingConfig
[];
84 extern const char kDisableJavaScriptHarmonyShipping
[];
85 extern const char kDisableMaterialDesignDownloads
[];
86 extern const char kDisableMinimizeOnSecondLauncherItemClick
[];
87 extern const char kDisableNewBookmarkApps
[];
88 extern const char kDisableNTPPopularSites
[];
89 extern const char kDisableOfflineAutoReload
[];
90 extern const char kDisableOfflineAutoReloadVisibleOnly
[];
91 extern const char kDisableOutOfProcessPac
[];
92 extern const char kDisablePasswordManagerReauthentication
[];
93 extern const char kDisablePdfMaterialUI
[];
94 extern const char kDisablePermissionsBubbles
[];
95 extern const char kDisablePopupBlocking
[];
96 extern const char kDisablePreconnect
[];
97 extern const char kDisablePrintPreview
[];
98 extern const char kDisablePromptOnRepost
[];
99 extern const char kDisableQuic
[];
100 extern const char kDisableQuicPortSelection
[];
101 extern const char kDisableSavePasswordBubble
[];
102 extern const char kDisableSdchPersistence
[];
103 extern const char kDisableSessionCrashedBubble
[];
104 extern const char kDisableSiteEngagementService
[];
105 extern const char kDisableSuggestionsService
[];
106 extern const char kDisableSync
[];
107 extern const char kDisableSyncTypes
[];
108 extern const char kDisableWebResources
[];
109 extern const char kDisableZeroBrowsersOpenForTests
[];
110 extern const char kDiskCacheDir
[];
111 extern const char kDiskCacheSize
[];
112 extern const char kDnsLogDetails
[];
113 extern const char kDnsPrefetchDisable
[];
114 extern const char kDumpBrowserHistograms
[];
115 extern const char kEasyUnlockAppPath
[];
116 extern const char kEnableAddToShelf
[];
117 extern const char kEnableAppsFileAssociations
[];
118 extern const char kEnableBenchmarking
[];
119 extern const char kEnableBookmarkUndo
[];
120 extern const char kEnableChildAccountDetection
[];
121 extern const char kEnableClearBrowsingDataCounters
[];
122 extern const char kEnableCloudPrintProxy
[];
123 extern const char kEnableDevToolsExperiments
[];
124 extern const char kEnableDeviceDiscoveryNotifications
[];
125 extern const char kEnableDownloadNotification
[];
126 extern const char kEnableDomainReliability
[];
127 extern const char kEnableEphemeralAppsInWebstore
[];
128 extern const char kEnableExperimentalHotwordHardware
[];
129 extern const char kEnableExtensionActivityLogging
[];
130 extern const char kEnableExtensionActivityLogTesting
[];
131 extern const char kEnableFastUnload
[];
132 extern const char kEnableFeatures
[];
133 extern const char kEnableInsecureQuic
[];
134 extern const char kEnableMaterialDesignDownloads
[];
135 extern const char kEnableMaterialDesignSettings
[];
136 extern const char kEnableMediaRouter
[];
137 extern const char kEnableNaCl
[];
138 extern const char kEnableNavigationTracing
[];
139 extern const char kEnableNetBenchmarking
[];
140 extern const char kEnableNewBookmarkApps
[];
141 extern const char kEnableNTPPopularSites
[];
142 extern const char kEnableOfflineAutoReload
[];
143 extern const char kEnableOfflineAutoReloadVisibleOnly
[];
144 extern const char kEnablePanels
[];
145 extern const char kEnablePdfMaterialUI
[];
146 extern const char kEnablePermissionsBubbles
[];
147 extern const char kEnablePotentiallyAnnoyingSecurityFeatures
[];
148 extern const char kEnablePowerOverlay
[];
149 extern const char kEnablePrintPreviewRegisterPromos
[];
150 extern const char kEnableProfiling
[];
151 extern const char kEnablePushApiBackgroundMode
[];
152 extern const char kDisablePushApiBackgroundMode
[];
153 extern const char kEnableQuic
[];
154 extern const char kEnableQuicPortSelection
[];
155 extern const char kEnableSavePasswordBubble
[];
156 extern const char kEnableSdchPersistence
[];
157 extern const char kEnableSessionCrashedBubble
[];
158 extern const char kEnableSettingsWindow
[];
159 extern const char kDisableSettingsWindow
[];
160 extern const char kEnableSimplifiedFullscreenUI
[];
161 extern const char kDisableSimplifiedFullscreenUI
[];
162 extern const char kEnableSiteEngagementService
[];
163 extern const char kEnableSuggestionsService
[];
164 extern const char kEnableSupervisedUserManagedBookmarksFolder
[];
165 extern const char kEnableTabAudioMuting
[];
166 extern const char kEnableThumbnailRetargeting
[];
167 extern const char kEnableUserAlternateProtocolPorts
[];
168 extern const char kEnableWebAppFrame
[];
169 extern const char kEnableWebUsbNotifications
[];
170 extern const char kEnableWifiCredentialSync
[];
171 extern const char kExtensionContentVerificationBootstrap
[];
172 extern const char kExtensionContentVerificationEnforceStrict
[];
173 extern const char kExtensionContentVerificationEnforce
[];
174 extern const char kExtensionContentVerification
[];
175 extern const char kExtensionsInstallVerification
[];
176 extern const char kExtensionsNotWebstore
[];
177 extern const char kExtensionsUpdateFrequency
[];
178 extern const char kFastStart
[];
179 extern const char kFlagSwitchesBegin
[];
180 extern const char kFlagSwitchesEnd
[];
181 extern const char kForceAppMode
[];
182 extern const char kForceFieldTrialParams
[];
183 extern const char kForceFirstRun
[];
184 extern const char kForceVariationIds
[];
185 extern const char kForceLocalNtp
[];
186 extern const char kHistoryEnableGroupByDomain
[];
187 extern const char kHomePage
[];
188 extern const char kHostRules
[];
189 extern const char kHostResolverRetryAttempts
[];
190 extern const char kIgnoreUrlFetcherCertRequests
[];
191 extern const char kIncognito
[];
192 extern const char kInstallChromeApp
[];
193 extern const char kInstallSupervisedUserWhitelists
[];
194 extern const char kInstantProcess
[];
195 extern const char kInvalidationUseGCMChannel
[];
196 extern const char kIpcDumpDirectory
[];
197 extern const char kJavaScriptHarmony
[];
198 extern const char kKeepAliveForTest
[];
199 extern const char kKioskMode
[];
200 extern const char kKioskModePrinting
[];
201 extern const char kLoadComponentExtension
[];
202 extern const char kLoadExtension
[];
203 #if !defined(OFFICIAL_BUILD)
204 extern const char kLocalNtpReload
[];
206 extern const char kMakeDefaultBrowser
[];
207 extern const char kManualEnhancedBookmarks
[];
208 extern const char kManualEnhancedBookmarksOptout
[];
209 extern const char kMarkNonSecureAs
[];
210 extern const char kMarkNonSecureAsNeutral
[];
211 extern const char kMarkNonSecureAsNonSecure
[];
212 extern const char kMediaCacheSize
[];
213 extern const char kMessageLoopHistogrammer
[];
214 extern const char kMetricsRecordingOnly
[];
215 extern const char kMonitoringDestinationID
[];
216 extern const char kNetLogCaptureMode
[];
217 extern const char kNoDefaultBrowserCheck
[];
218 extern const char kNoDisplayingInsecureContent
[];
219 extern const char kNoExperiments
[];
220 extern const char kNoFirstRun
[];
221 extern const char kNoProxyServer
[];
222 extern const char kNoPings
[];
223 extern const char kNoServiceAutorun
[];
224 extern const char kNoStartupWindow
[];
225 extern const char kNoSupervisedUserAcknowledgmentCheck
[];
226 extern const char kNumPacThreads
[];
227 extern const char kOpenInNewWindow
[];
228 extern const char kOriginToForceQuicOn
[];
229 extern const char kOriginalProcessStartTime
[];
230 extern const char kPackExtension
[];
231 extern const char kPackExtensionKey
[];
232 extern const char kParentProfile
[];
233 extern const char kPermissionRequestApiScope
[];
234 extern const char kPermissionRequestApiUrl
[];
235 extern const char kPpapiFlashPath
[];
236 extern const char kPpapiFlashVersion
[];
237 extern const char kPrerenderFromOmnibox
[];
238 extern const char kPrerenderFromOmniboxSwitchValueAuto
[];
239 extern const char kPrerenderFromOmniboxSwitchValueDisabled
[];
240 extern const char kPrerenderFromOmniboxSwitchValueEnabled
[];
241 extern const char kPrerenderMode
[];
242 extern const char kPrerenderModeSwitchValueDisabled
[];
243 extern const char kPrerenderModeSwitchValueEnabled
[];
244 extern const char kPrivetIPv6Only
[];
245 extern const char kProductVersion
[];
246 extern const char kProfileDirectory
[];
247 extern const char kProfilingAtStart
[];
248 extern const char kProfilingFile
[];
249 extern const char kProfilingFlush
[];
250 extern const char kProxyAutoDetect
[];
251 extern const char kProxyBypassList
[];
252 extern const char kProxyPacUrl
[];
253 extern const char kProxyServer
[];
254 extern const char kQuicConnectionOptions
[];
255 extern const char kQuicMaxPacketLength
[];
256 extern const char kQuicVersion
[];
257 extern const char kRemoteDebuggingTargets
[];
258 extern const char kRestoreLastSession
[];
259 extern const char kRestrictIFramePermissions
[];
260 extern const char kSavePageAsMHTML
[];
261 extern const char kSbDisableAutoUpdate
[];
262 extern const char kSbDisableDownloadProtection
[];
263 extern const char kSbDisableExtensionBlacklist
[];
264 extern const char kServiceProcess
[];
265 extern const char kSilentDebuggerExtensionAPI
[];
266 extern const char kSilentLaunch
[];
267 extern const char kShowAppList
[];
268 extern const char kShowSavedCopy
[];
269 extern const char kEnableShowSavedCopyPrimary
[];
270 extern const char kEnableShowSavedCopySecondary
[];
271 extern const char kDisableShowSavedCopy
[];
272 extern const char kSimulateElevatedRecovery
[];
273 extern const char kSimulateUpgrade
[];
274 extern const char kSimulateCriticalUpdate
[];
275 extern const char kSimulateOutdated
[];
276 extern const char kSimulateOutdatedNoAU
[];
277 extern const char kSpeculativeResourcePrefetching
[];
278 extern const char kSpeculativeResourcePrefetchingDisabled
[];
279 extern const char kSpeculativeResourcePrefetchingEnabled
[];
280 extern const char kSpeculativeResourcePrefetchingLearning
[];
281 #if defined(ENABLE_SPELLCHECK)
282 #if defined(OS_ANDROID)
283 extern const char kEnableAndroidSpellChecker
[];
285 extern const char kEnableMultilingualSpellChecker
[];
286 extern const char kEnableSpellingAutoCorrect
[];
287 extern const char kEnableSpellingFeedbackFieldTrial
[];
288 extern const char kSpellingServiceFeedbackUrl
[];
289 extern const char kSpellingServiceFeedbackIntervalSeconds
[];
291 extern const char kSSLVersionMax
[];
292 extern const char kSSLVersionMin
[];
293 extern const char kSSLVersionFallbackMin
[];
294 extern const char kSSLVersionTLSv1
[];
295 extern const char kSSLVersionTLSv11
[];
296 extern const char kSSLVersionTLSv12
[];
297 extern const char kStartMaximized
[];
298 extern const char kSupervisedUserId
[];
299 extern const char kSupervisedUserSafeSites
[];
300 extern const char kSupervisedUserSyncToken
[];
301 extern const char kSystemLogUploadFrequency
[];
302 extern const char kTestName
[];
303 extern const char kTrustedSpdyProxy
[];
304 extern const char kTryChromeAgain
[];
305 extern const char kUnlimitedStorage
[];
306 extern const char kUnsafelyTreatInsecureOriginAsSecure
[];
307 extern const char kUseSimpleCacheBackend
[];
308 extern const char kUseSpdy
[];
309 extern const char kUserAgent
[];
310 extern const char kUserDataDir
[];
311 extern const char kV8PacMojoInProcess
[];
312 extern const char kV8PacMojoOutOfProcess
[];
313 extern const char kValidateCrx
[];
314 extern const char kVersion
[];
315 extern const char kWindowPosition
[];
316 extern const char kWindowSize
[];
317 extern const char kWinHttpProxyResolver
[];
318 extern const char kWinJumplistAction
[];
320 #if defined(OS_ANDROID)
321 extern const char kAuthAndroidNegotiateAccountType
[];
322 extern const char kDisableContextualSearch
[];
323 extern const char kEnableAccessibilityTabSwitcher
[];
324 extern const char kEnableContextualSearch
[];
325 extern const char kEnableDomDistillerButtonAnimation
[];
326 extern const char kEnableHostedMode
[];
327 extern const char kEnableReaderModeToolbarIcon
[];
328 extern const char kProgressBarAnimation
[];
329 #endif // defined(OS_ANDROID)
332 extern const char kOpenAsh
[];
335 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
336 extern const char kHelp
[];
337 extern const char kHelpShort
[];
338 extern const char kPasswordStore
[];
341 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
342 extern const char kMigrateDataDirForSxS
[];
345 #if defined(OS_MACOSX)
346 extern const char kAppsKeepChromeAliveInTests
[];
347 extern const char kHostedAppQuitNotification
[];
348 extern const char kDisableAppInfoDialogMac
[];
349 extern const char kDisableAppWindowCycling
[];
350 extern const char kDisableHostedAppShimCreation
[];
351 extern const char kDisableHostedAppsInWindows
[];
352 extern const char kDisableMacViewsNativeAppWindows
[];
353 extern const char kDisableTranslateNewUX
[];
354 extern const char kEnableAppInfoDialogMac
[];
355 extern const char kEnableAppWindowCycling
[];
356 extern const char kEnableHostedAppsInWindows
[];
357 extern const char kEnableMacViewsNativeAppWindows
[];
358 extern const char kEnableMacViewsDialogs
[];
359 extern const char kEnableTranslateNewUX
[];
360 extern const char kMetricsClientID
[];
361 extern const char kRelauncherProcess
[];
362 #endif // defined(OS_MACOSX)
365 extern const char kEnableCloudPrintXps
[];
366 extern const char kEnableProfileShortcutManager
[];
367 extern const char kForceDesktop
[];
368 extern const char kForceImmersive
[];
369 extern const char kHideIcons
[];
370 extern const char kNoNetworkProfileWarning
[];
371 extern const char kRelaunchShortcut
[];
372 extern const char kShowIcons
[];
373 extern const char kUninstall
[];
374 extern const char kViewerLaunchViaAppId
[];
375 extern const char kWaitForMutex
[];
376 extern const char kWindows8Search
[];
377 #endif // defined(OS_WIN)
379 #if defined(OS_WIN) || defined(OS_MACOSX)
380 extern const char kEnableTabDiscarding
[];
381 #endif // defined(OS_WIN) || defined(OS_MACOSX)
383 #if defined(ENABLE_IPC_FUZZER)
384 extern const char kIpcFuzzerTestcase
[];
387 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
388 extern const char kDebugPrint
[];
391 #if defined(ENABLE_PLUGINS)
392 extern const char kAllowNaClCrxFsAPI
[];
393 extern const char kAllowNaClFileHandleAPI
[];
394 extern const char kAllowNaClSocketAPI
[];
395 extern const char kDisablePluginPowerSaver
[];
396 extern const char kEnablePluginPowerSaver
[];
399 #if defined(ENABLE_TASK_MANAGER)
400 extern const char kDisableNewTaskManager
[];
401 #endif // defined(ENABLE_TASK_MANAGER)
403 bool AboutInSettingsEnabled();
404 bool MdSettingsEnabled();
405 bool MediaRouterEnabled();
406 bool PdfMaterialUIEnabled();
407 bool SettingsWindowEnabled();
409 #if defined(OS_CHROMEOS)
410 bool PowerOverlayEnabled();
413 #if defined(ENABLE_TASK_MANAGER)
414 bool NewTaskManagerEnabled();
415 #endif // defined(ENABLE_TASK_MANAGER)
417 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
418 // alphabetical order, or in one of the ifdefs (also in order in each section).
420 } // namespace switches
422 #endif // CHROME_COMMON_CHROME_SWITCHES_H_