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 "content" command-line switches.
7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_
8 #define CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_
10 #include "build/build_config.h"
11 #include "content/common/content_export.h"
15 // All switches in alphabetical order. The switches should be documented
16 // alongside the definition of their values in the .cc file.
17 CONTENT_EXPORT
extern const char kAcceleratedCanvas2dMSAASampleCount
[];
18 CONTENT_EXPORT
extern const char kAllowFileAccessFromFiles
[];
19 CONTENT_EXPORT
extern const char kAllowNoSandboxJob
[];
20 extern const char kAllowSandboxDebugging
[];
21 extern const char kAuditAllHandles
[];
22 extern const char kAuditHandles
[];
23 CONTENT_EXPORT
extern const char kBlacklistAcceleratedCompositing
[];
24 CONTENT_EXPORT
extern const char kBlacklistWebGL
[];
25 CONTENT_EXPORT
extern const char kBlinkPlatformLogChannels
[];
26 CONTENT_EXPORT
extern const char kBlockCrossSiteDocuments
[];
27 CONTENT_EXPORT
extern const char kBrowserAssertTest
[];
28 CONTENT_EXPORT
extern const char kBrowserCrashTest
[];
29 CONTENT_EXPORT
extern const char kBrowserSubprocessPath
[];
30 extern const char kDebugPluginLoading
[];
31 CONTENT_EXPORT
extern const char kDefaultTileWidth
[];
32 CONTENT_EXPORT
extern const char kDefaultTileHeight
[];
33 CONTENT_EXPORT
extern const char kDisable2dCanvasAntialiasing
[];
34 CONTENT_EXPORT
extern const char kDisable3DAPIs
[];
35 CONTENT_EXPORT
extern const char kDisableAccelerated2dCanvas
[];
36 CONTENT_EXPORT
extern const char kDisableAcceleratedCompositing
[];
37 CONTENT_EXPORT
extern const char kDisableAcceleratedFixedRootBackground
[];
38 CONTENT_EXPORT
extern const char kDisableAcceleratedLayers
[];
39 CONTENT_EXPORT
extern const char kDisableAcceleratedOverflowScroll
[];
40 CONTENT_EXPORT
extern const char kDisableLayerSquashing
[];
41 CONTENT_EXPORT
extern const char kDisableAcceleratedPlugins
[];
42 CONTENT_EXPORT
extern const char kDisableAcceleratedScrollableFrames
[];
43 CONTENT_EXPORT
extern const char kDisableAcceleratedVideo
[];
44 CONTENT_EXPORT
extern const char kDisableAcceleratedVideoDecode
[];
45 CONTENT_EXPORT
extern const char kDisableAltWinstation
[];
46 CONTENT_EXPORT
extern const char kDisableApplicationCache
[];
47 CONTENT_EXPORT
extern const char kDisableAudio
[];
48 extern const char kDisableBackingStoreLimit
[];
49 CONTENT_EXPORT
extern const char kDisableBrowserPluginCompositing
[];
50 CONTENT_EXPORT
extern const char kDisableCompositedScrollingForFrames
[];
51 CONTENT_EXPORT
extern const char kDisableCompositingForFixedPosition
[];
52 CONTENT_EXPORT
extern const char kDisableCompositingForTransition
[];
53 CONTENT_EXPORT
extern const char kDisableDatabases
[];
54 CONTENT_EXPORT
extern const char kDisableDelegatedRenderer
[];
55 extern const char kDisableDesktopNotifications
[];
56 extern const char kDisableDirectNPAPIRequests
[];
57 extern const char kDisableDomainBlockingFor3DAPIs
[];
58 CONTENT_EXPORT
extern const char kDisableExperimentalWebGL
[];
59 CONTENT_EXPORT
extern const char kDisableFileSystem
[];
60 CONTENT_EXPORT
extern const char kDisableFiltersOverIPC
[];
61 CONTENT_EXPORT
extern const char kDisableFixedPositionCreatesStackingContext
[];
62 CONTENT_EXPORT
extern const char kDisableFlash3d
[];
63 CONTENT_EXPORT
extern const char kDisableFlashStage3d
[];
64 CONTENT_EXPORT
extern const char kDisableForceCompositingMode
[];
65 CONTENT_EXPORT
extern const char kDisableGestureDebounce
[];
66 CONTENT_EXPORT
extern const char kDisableGestureTapHighlight
[];
67 CONTENT_EXPORT
extern const char kDisableGLMultisampling
[];
68 CONTENT_EXPORT
extern const char kDisableGpu
[];
69 CONTENT_EXPORT
extern const char kDisableGpuCompositing
[];
70 extern const char kDisableGpuProcessCrashLimit
[];
71 CONTENT_EXPORT
extern const char kDisableGpuProcessPrelaunch
[];
72 CONTENT_EXPORT
extern const char kDisableGpuSandbox
[];
73 CONTENT_EXPORT
extern const char kDisableGpuWatchdog
[];
74 CONTENT_EXPORT
extern const char kDisableHangMonitor
[];
75 extern const char kDisableHistogramCustomizer
[];
76 CONTENT_EXPORT
extern const char kDisableInfoBars
[];
77 CONTENT_EXPORT
extern const char kDisableJava
[];
78 CONTENT_EXPORT
extern const char kDisableJavaScript
[];
79 CONTENT_EXPORT
extern const char kDisableOverlayScrollbar
[];
80 CONTENT_EXPORT
extern const char kDisablePrefixedEncryptedMedia
[];
81 extern const char kDisableKillAfterBadIPC
[];
82 CONTENT_EXPORT
extern const char kDisableLocalStorage
[];
83 CONTENT_EXPORT
extern const char kDisableLogging
[];
84 extern const char kDisableNavigatorContentUtils
[];
85 CONTENT_EXPORT
extern const char kDisableP2PSocketSTUNFilter
[];
86 extern const char kDisablePepper3d
[];
87 CONTENT_EXPORT
extern const char kDisablePinch
[];
88 CONTENT_EXPORT
extern const char kDisablePlugins
[];
89 CONTENT_EXPORT
extern const char kDisablePluginsDiscovery
[];
90 extern const char kDisableRemoteFonts
[];
91 extern const char kDisableRendererAccessibility
[];
92 CONTENT_EXPORT
extern const char kDisableRepaintAfterLayout
[];
93 CONTENT_EXPORT
extern const char kDisableSeccompFilterSandbox
[];
94 extern const char kDisableSessionStorage
[];
95 CONTENT_EXPORT
extern const char kDisableSetuidSandbox
[];
96 CONTENT_EXPORT
extern const char kDisableSharedWorkers
[];
97 extern const char kDisableSiteSpecificQuirks
[];
98 CONTENT_EXPORT
extern const char kDisableSmoothScrolling
[];
99 CONTENT_EXPORT
extern const char kDisableSoftwareRasterizer
[];
100 CONTENT_EXPORT
extern const char kDisableSpeechInput
[];
101 CONTENT_EXPORT
extern const char kDisableSSLFalseStart
[];
102 CONTENT_EXPORT
extern const char kDisableThreadedCompositing
[];
103 CONTENT_EXPORT
extern const char kDisableThreadedHTMLParser
[];
104 CONTENT_EXPORT
extern const char kDisableUniversalAcceleratedOverflowScroll
[];
105 CONTENT_EXPORT
extern const char kDisableUnprefixedMediaSource
[];
106 extern const char kDisableWebAnimationsCSS
[];
107 CONTENT_EXPORT
extern const char kDisableWebKitMediaSource
[];
108 CONTENT_EXPORT
extern const char kDisableWebSecurity
[];
109 extern const char kDisableXSLT
[];
110 extern const char kDisableXSSAuditor
[];
111 CONTENT_EXPORT
extern const char kDomAutomationController
[];
112 CONTENT_EXPORT
extern const char kEnableAcceleratedFilters
[];
113 CONTENT_EXPORT
extern const char kEnableBleedingEdgeRenderingFastPaths
[];
114 CONTENT_EXPORT
extern const char kEnableDeferredFilters
[];
115 CONTENT_EXPORT
extern const char kEnableAcceleratedFixedRootBackground
[];
116 CONTENT_EXPORT
extern const char kEnableAcceleratedOverflowScroll
[];
117 CONTENT_EXPORT
extern const char kEnableLayerSquashing
[];
118 CONTENT_EXPORT
extern const char kEnableAcceleratedScrollableFrames
[];
119 extern const char kEnableAccessibilityLogging
[];
120 CONTENT_EXPORT
extern const char kEnableBeginFrameScheduling
[];
121 CONTENT_EXPORT
extern const char kEnableBrowserPluginForAllViewTypes
[];
122 CONTENT_EXPORT
extern const char kEnableBrowserPluginDragDrop
[];
123 CONTENT_EXPORT
extern const char kEnableCompositedScrollingForFrames
[];
124 CONTENT_EXPORT
extern const char kEnableCompositingForFixedPosition
[];
125 CONTENT_EXPORT
extern const char kEnableCompositingForTransition
[];
126 CONTENT_EXPORT
extern const char kEnableDeferredImageDecoding
[];
127 CONTENT_EXPORT
extern const char kEnableDelegatedRenderer
[];
128 CONTENT_EXPORT
extern const char kEnableDownloadResumption
[];
129 CONTENT_EXPORT
extern const char kEnableEncryptedMedia
[];
130 CONTENT_EXPORT
extern const char kEnableExperimentalCanvasFeatures
[];
131 CONTENT_EXPORT
extern const char kEnableExperimentalWebPlatformFeatures
[];
132 CONTENT_EXPORT
extern const char kEnableExperimentalWebSocket
[];
133 CONTENT_EXPORT
extern const char kEnableFastTextAutosizing
[];
134 CONTENT_EXPORT
extern const char kEnableFileCookies
[];
135 CONTENT_EXPORT
extern const char kEnableFixedPositionCreatesStackingContext
[];
136 CONTENT_EXPORT
extern const char kEnableGestureTapHighlight
[];
137 extern const char kEnableGpuClientTracing
[];
138 CONTENT_EXPORT
extern const char kEnableHighDpiCompositingForFixedPosition
[];
140 CONTENT_EXPORT
extern const char kDisableLegacyIntermediateWindow
[];
141 CONTENT_EXPORT
extern const char kEnableDirectWrite
[];
142 CONTENT_EXPORT
extern const char kEnableHighResolutionTime
[];
144 CONTENT_EXPORT
extern const char kEnableHTMLImports
[];
145 CONTENT_EXPORT
extern const char kEnableInbandTextTracks
[];
146 CONTENT_EXPORT
extern const char kEnableLogging
[];
147 extern const char kEnableMemoryBenchmarking
[];
148 extern const char kEnableMonitorProfile
[];
149 CONTENT_EXPORT
extern const char kEnableOfflineCacheAccess
[];
150 CONTENT_EXPORT
extern const char kEnableOverlayFullscreenVideo
[];
151 extern const char kEnableOverlayFullscreenVideoSubtitle
[];
152 CONTENT_EXPORT
extern const char kEnableOverlayScrollbar
[];
153 CONTENT_EXPORT
extern const char kEnableOverscrollNotifications
[];
154 CONTENT_EXPORT
extern const char kEnablePinch
[];
155 extern const char kEnablePreparsedJsCaching
[];
156 CONTENT_EXPORT
extern const char kEnablePrivilegedWebGLExtensions
[];
157 extern const char kEnablePruneGpuCommandBuffers
[];
158 CONTENT_EXPORT
extern const char kEnableRegionBasedColumns
[];
159 CONTENT_EXPORT
extern const char kEnableRepaintAfterLayout
[];
160 CONTENT_EXPORT
extern const char kEnableSandboxLogging
[];
161 extern const char kEnableSkiaBenchmarking
[];
162 CONTENT_EXPORT
extern const char kEnableSmoothScrolling
[];
163 CONTENT_EXPORT
extern const char kEnableSoftwareCompositing
[];
164 CONTENT_EXPORT
extern const char kEnableSpatialNavigation
[];
165 CONTENT_EXPORT
extern const char kEnableSpeechSynthesis
[];
166 CONTENT_EXPORT
extern const char kEnableStatsTable
[];
167 extern const char kEnableStrictSiteIsolation
[];
168 CONTENT_EXPORT
extern const char kEnableServiceWorker
[];
169 CONTENT_EXPORT
extern const char kEnableTargetedStyleRecalc
[];
170 CONTENT_EXPORT
extern const char kEnableTcpFastOpen
[];
171 CONTENT_EXPORT
extern const char kEnableThreadedCompositing
[];
172 CONTENT_EXPORT
extern const char kEnableUniversalAcceleratedOverflowScroll
[];
173 CONTENT_EXPORT
extern const char kEnableUserMediaScreenCapturing
[];
174 CONTENT_EXPORT
extern const char kEnableViewport
[];
175 CONTENT_EXPORT
extern const char kEnableViewportMeta
[];
176 CONTENT_EXPORT
extern const char kMainFrameResizesAreOrientationChanges
[];
177 extern const char kEnableVisualWordMovement
[];
178 CONTENT_EXPORT
extern const char kEnableVtune
[];
179 // FIXME: Remove this once Web Animations CSS is enabled by default in Blink.
180 extern const char kEnableWebAnimationsCSS
[];
181 extern const char kEnableWebAnimationsSVG
[];
182 CONTENT_EXPORT
extern const char kEnableWebGLDraftExtensions
[];
183 CONTENT_EXPORT
extern const char kEnableWebMIDI
[];
184 CONTENT_EXPORT
extern const char kExtraPluginDir
[];
185 CONTENT_EXPORT
extern const char kForceCompositingMode
[];
186 CONTENT_EXPORT
extern const char kForceFieldTrials
[];
187 CONTENT_EXPORT
extern const char kForceRendererAccessibility
[];
188 extern const char kGpuDeviceID
[];
189 extern const char kGpuDriverVendor
[];
190 extern const char kGpuDriverVersion
[];
191 extern const char kGpuLauncher
[];
192 CONTENT_EXPORT
extern const char kGpuProcess
[];
193 CONTENT_EXPORT
extern const char kGpuSandboxAllowSysVShm
[];
194 CONTENT_EXPORT
extern const char kGpuStartupDialog
[];
195 extern const char kGpuVendorID
[];
196 CONTENT_EXPORT
extern const char kHostResolverRules
[];
197 CONTENT_EXPORT
extern const char kIgnoreCertificateErrors
[];
198 CONTENT_EXPORT
extern const char kIgnoreGpuBlacklist
[];
199 extern const char kInProcessGPU
[];
200 CONTENT_EXPORT
extern const char kIpResolverRules
[];
201 CONTENT_EXPORT
extern const char kJavaScriptFlags
[];
202 extern const char kLoadPlugin
[];
203 CONTENT_EXPORT
extern const char kLogGpuControlListDecisions
[];
204 CONTENT_EXPORT
extern const char kLoggingLevel
[];
205 CONTENT_EXPORT
extern const char kLogNetLog
[];
206 extern const char kLogPluginMessages
[];
207 extern const char kMaxUntiledLayerHeight
[];
208 extern const char kMaxUntiledLayerWidth
[];
209 extern const char kMemoryMetrics
[];
210 CONTENT_EXPORT
extern const char kMuteAudio
[];
211 CONTENT_EXPORT
extern const char kNoReferrers
[];
212 CONTENT_EXPORT
extern const char kNoSandbox
[];
213 CONTENT_EXPORT
extern const char kNumRasterThreads
[];
214 CONTENT_EXPORT
extern const char kOverscrollHistoryNavigation
[];
215 extern const char kPluginLauncher
[];
216 CONTENT_EXPORT
extern const char kPluginPath
[];
217 CONTENT_EXPORT
extern const char kPluginProcess
[];
218 extern const char kPluginStartupDialog
[];
219 CONTENT_EXPORT
extern const char kPpapiBrokerProcess
[];
220 CONTENT_EXPORT
extern const char kPpapiFlashArgs
[];
221 CONTENT_EXPORT
extern const char kPpapiInProcess
[];
222 extern const char kPpapiPluginLauncher
[];
223 CONTENT_EXPORT
extern const char kPpapiPluginProcess
[];
224 extern const char kPpapiStartupDialog
[];
225 CONTENT_EXPORT
extern const char kProcessPerSite
[];
226 CONTENT_EXPORT
extern const char kProcessPerTab
[];
227 CONTENT_EXPORT
extern const char kProcessType
[];
228 CONTENT_EXPORT
extern const char kReduceSecurityForTesting
[];
229 CONTENT_EXPORT
extern const char kRegisterPepperPlugins
[];
230 CONTENT_EXPORT
extern const char kRemoteDebuggingPort
[];
231 CONTENT_EXPORT
extern const char kRendererAssertTest
[];
232 extern const char kRendererCmdPrefix
[];
233 CONTENT_EXPORT
extern const char kRendererProcess
[];
234 CONTENT_EXPORT
extern const char kRendererProcessLimit
[];
235 CONTENT_EXPORT
extern const char kRendererStartupDialog
[];
236 extern const char kSandboxIPCProcess
[];
237 CONTENT_EXPORT
extern const char kScrollEndEffect
[];
238 extern const char kShowPaintRects
[];
239 CONTENT_EXPORT
extern const char kSimulateTouchScreenWithMouse
[];
240 CONTENT_EXPORT
extern const char kSingleProcess
[];
241 CONTENT_EXPORT
extern const char kSitePerProcess
[];
242 CONTENT_EXPORT
extern const char kSkipGpuDataLoading
[];
243 extern const char kSpeechRecognitionWebserviceKey
[];
244 CONTENT_EXPORT
extern const char kStatsCollectionController
[];
245 CONTENT_EXPORT
extern const char kTabCaptureDownscaleQuality
[];
246 CONTENT_EXPORT
extern const char kTabCaptureUpscaleQuality
[];
247 CONTENT_EXPORT
extern const char kTestingFixedHttpPort
[];
248 CONTENT_EXPORT
extern const char kTestingFixedHttpsPort
[];
249 CONTENT_EXPORT
extern const char kTestSandbox
[];
250 CONTENT_EXPORT
extern const char kTouchAckTimeoutDelayMs
[];
251 CONTENT_EXPORT
extern const char kTouchScrollingMode
[];
252 CONTENT_EXPORT
extern const char kTouchScrollingModeAbsorbTouchmove
[];
253 CONTENT_EXPORT
extern const char kTouchScrollingModeSyncTouchmove
[];
254 CONTENT_EXPORT
extern const char kTouchScrollingModeTouchcancel
[];
255 CONTENT_EXPORT
extern const char kTraceShutdown
[];
256 extern const char kTraceShutdownFile
[];
257 extern const char kTraceStartup
[];
258 extern const char kTraceStartupDuration
[];
259 extern const char kTraceStartupFile
[];
260 CONTENT_EXPORT
extern const char kUIPrioritizeInGpuProcess
[];
261 CONTENT_EXPORT
extern const char kUseDiscardableMemory
[];
262 CONTENT_EXPORT
extern const char kUseFakeDeviceForMediaStream
[];
263 CONTENT_EXPORT
extern const char kUseFakeUIForMediaStream
[];
264 CONTENT_EXPORT
extern const char kUseMobileUserAgent
[];
265 CONTENT_EXPORT
extern const char kUserAgent
[];
266 extern const char kUtilityCmdPrefix
[];
267 CONTENT_EXPORT
extern const char kUtilityProcess
[];
268 extern const char kUtilityProcessAllowedDir
[];
269 CONTENT_EXPORT
extern const char kUtilityProcessEnableMDns
[];
270 CONTENT_EXPORT
extern const char kUtilityProcessRunningElevated
[];
271 CONTENT_EXPORT
extern const char kWaitForDebuggerChildren
[];
272 CONTENT_EXPORT
extern const char kWebGLCommandBufferSizeKb
[];
273 CONTENT_EXPORT
extern const char kWorkerProcess
[];
274 CONTENT_EXPORT
extern const char kZygoteCmdPrefix
[];
275 CONTENT_EXPORT
extern const char kZygoteProcess
[];
277 #if defined(ENABLE_WEBRTC)
278 CONTENT_EXPORT
extern const char kEnableAudioTrackProcessing
[];
279 CONTENT_EXPORT
extern const char kDisableDeviceEnumeration
[];
280 CONTENT_EXPORT
extern const char kDisableSCTPDataChannels
[];
281 CONTENT_EXPORT
extern const char kDisableWebRtcHWDecoding
[];
282 CONTENT_EXPORT
extern const char kDisableWebRtcEncryption
[];
283 CONTENT_EXPORT
extern const char kDisableWebRtcHWEncoding
[];
284 CONTENT_EXPORT
extern const char kEnableWebRtcAecRecordings
[];
285 extern const char kEnableWebRtcTcpServerSocket
[];
286 CONTENT_EXPORT
extern const char kEnableWebRtcHWVp8Encoding
[];
289 #if defined(OS_ANDROID)
290 CONTENT_EXPORT
extern const char kDisableGestureRequirementForMediaFullscreen
[];
291 CONTENT_EXPORT
extern const char kDisableGestureRequirementForMediaPlayback
[];
292 extern const char kDisableMediaHistoryLogging
[];
293 CONTENT_EXPORT
extern const char kDisableOverscrollEdgeEffect
[];
294 CONTENT_EXPORT
extern const char kDisableWebRTC
[];
295 CONTENT_EXPORT
extern const char kEnableSpeechRecognition
[];
296 CONTENT_EXPORT
extern const char kHideScrollbars
[];
297 extern const char kNetworkCountryIso
[];
298 CONTENT_EXPORT
extern const char kRemoteDebuggingSocketName
[];
301 #if defined(OS_ANDROID) && defined(ARCH_CPU_X86)
302 CONTENT_EXPORT
extern const char kEnableWebAudio
[];
304 CONTENT_EXPORT
extern const char kDisableWebAudio
[];
307 #if defined(OS_CHROMEOS)
308 CONTENT_EXPORT
extern const char kDisablePanelFitting
[];
311 #if defined(OS_MACOSX) && !defined(OS_IOS)
312 extern const char kEnableCarbonInterposing
[];
313 extern const char kDisableCoreAnimationPlugins
[];
314 CONTENT_EXPORT
extern const char kUseCoreAnimation
[];
317 #if defined(OS_POSIX)
318 extern const char kChildCleanExit
[];
321 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
322 // alphabetical order, or in one of the ifdefs (also in order in each section).
324 } // namespace switches
326 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_