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 kAllowInsecureWebSocketFromHttpsOrigin
[];
20 CONTENT_EXPORT
extern const char kAllowLoopbackInPeerConnection
[];
21 CONTENT_EXPORT
extern const char kAllowNoSandboxJob
[];
22 extern const char kAllowSandboxDebugging
[];
23 extern const char kAuditAllHandles
[];
24 extern const char kAuditHandles
[];
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 kDisableLayerSquashing
[];
37 CONTENT_EXPORT
extern const char kDisableAcceleratedVideoDecode
[];
38 CONTENT_EXPORT
extern const char kDisableApplicationCache
[];
39 extern const char kDisableBackingStoreLimit
[];
40 CONTENT_EXPORT
extern const char kDisablePreferCompositingToLCDText
[];
41 CONTENT_EXPORT
extern const char kDisableCompositingForTransition
[];
42 CONTENT_EXPORT
extern const char kDisableDatabases
[];
43 CONTENT_EXPORT
extern const char kDisableDelegatedRenderer
[];
44 extern const char kDisableDesktopNotifications
[];
45 extern const char kDisableDirectNPAPIRequests
[];
46 CONTENT_EXPORT
extern const char kDisableDistanceFieldText
[];
47 CONTENT_EXPORT
extern const char kDisableDisplayList2dCanvas
[];
48 extern const char kDisableDomainBlockingFor3DAPIs
[];
49 CONTENT_EXPORT
extern const char kDisableExperimentalWebGL
[];
50 CONTENT_EXPORT
extern const char kDisableFileSystem
[];
51 CONTENT_EXPORT
extern const char kDisableFlash3d
[];
52 CONTENT_EXPORT
extern const char kDisableFlashStage3d
[];
53 CONTENT_EXPORT
extern const char kDisableGpu
[];
54 CONTENT_EXPORT
extern const char kDisableGpuCompositing
[];
55 extern const char kDisableGpuProcessCrashLimit
[];
56 CONTENT_EXPORT
extern const char kDisableGpuRasterization
[];
57 CONTENT_EXPORT
extern const char kDisableGpuSandbox
[];
58 CONTENT_EXPORT
extern const char kDisableGpuWatchdog
[];
59 CONTENT_EXPORT
extern const char kDisableLowResTiling
[];
60 CONTENT_EXPORT
extern const char kDisableHangMonitor
[];
61 extern const char kDisableHistogramCustomizer
[];
62 CONTENT_EXPORT
extern const char kDisableImplSidePainting
[];
63 CONTENT_EXPORT
extern const char kDisableJava
[];
64 CONTENT_EXPORT
extern const char kDisableJavaScript
[];
65 CONTENT_EXPORT
extern const char kDisableLCDText
[];
66 CONTENT_EXPORT
extern const char kDisablePrefixedEncryptedMedia
[];
67 extern const char kDisableKillAfterBadIPC
[];
68 CONTENT_EXPORT
extern const char kDisableLocalStorage
[];
69 CONTENT_EXPORT
extern const char kDisableLogging
[];
70 CONTENT_EXPORT
extern const char kDisableMediaSource
[];
71 extern const char kDisablePepper3d
[];
72 CONTENT_EXPORT
extern const char kDisablePinch
[];
73 CONTENT_EXPORT
extern const char kDisablePlugins
[];
74 CONTENT_EXPORT
extern const char kDisablePluginsDiscovery
[];
75 extern const char kDisableRemoteFonts
[];
76 extern const char kDisableRendererAccessibility
[];
77 CONTENT_EXPORT
extern const char kDisableSeccompFilterSandbox
[];
78 extern const char kDisableSessionStorage
[];
79 CONTENT_EXPORT
extern const char kDisableSetuidSandbox
[];
80 CONTENT_EXPORT
extern const char kDisableSharedWorkers
[];
81 CONTENT_EXPORT
extern const char kDisableSingleThreadProxyScheduler
[];
82 CONTENT_EXPORT
extern const char kDisableSmoothScrolling
[];
83 CONTENT_EXPORT
extern const char kDisableSoftwareRasterizer
[];
84 CONTENT_EXPORT
extern const char kDisableThreadedCompositing
[];
85 extern const char kDisableV8IdleNotificationAfterCommit
[];
86 CONTENT_EXPORT
extern const char kDisableWebSecurity
[];
87 extern const char kDisableXSLT
[];
88 extern const char kDisableXSSAuditor
[];
89 CONTENT_EXPORT
extern const char kDisableZeroCopy
[];
90 CONTENT_EXPORT
extern const char kDomAutomationController
[];
91 CONTENT_EXPORT
extern const char kEnableBleedingEdgeRenderingFastPaths
[];
92 CONTENT_EXPORT
extern const char kDisableDeferredFilters
[];
93 CONTENT_EXPORT
extern const char kEnableLayerSquashing
[];
94 CONTENT_EXPORT
extern const char kEnableContainerCulling
[];
95 CONTENT_EXPORT
extern const char kEnableBeginFrameScheduling
[];
96 CONTENT_EXPORT
extern const char kEnablePreferCompositingToLCDText
[];
97 CONTENT_EXPORT
extern const char kEnableBrowserSideNavigation
[];
98 CONTENT_EXPORT
extern const char kEnableCompositingForTransition
[];
99 CONTENT_EXPORT
extern const char kEnableDeferredImageDecoding
[];
100 CONTENT_EXPORT
extern const char kEnableDelegatedRenderer
[];
101 CONTENT_EXPORT
extern const char kEnableDisplayList2dCanvas
[];
102 CONTENT_EXPORT
extern const char kEnableDistanceFieldText
[];
103 CONTENT_EXPORT
extern const char kEnableDownloadResumption
[];
104 CONTENT_EXPORT
extern const char kEnableEncryptedMedia
[];
105 CONTENT_EXPORT
extern const char kEnableExperimentalCanvasFeatures
[];
106 CONTENT_EXPORT
extern const char kEnableExperimentalWebPlatformFeatures
[];
107 CONTENT_EXPORT
extern const char kEnableFileCookies
[];
108 extern const char kEnableGpuClientTracing
[];
109 CONTENT_EXPORT
extern const char kEnableGpuRasterization
[];
110 CONTENT_EXPORT
extern const char kEnableLowResTiling
[];
111 CONTENT_EXPORT
extern const char kEnableImplSidePainting
[];
112 CONTENT_EXPORT
extern const char kEnableLCDText
[];
113 CONTENT_EXPORT
extern const char kEnableLogging
[];
114 extern const char kEnableMemoryBenchmarking
[];
115 CONTENT_EXPORT
extern const char kEnableNetworkInformation
[];
116 CONTENT_EXPORT
extern const char kEnableOneCopy
[];
117 CONTENT_EXPORT
extern const char kEnableOverlayFullscreenVideo
[];
118 CONTENT_EXPORT
extern const char kDisableOverlayFullscreenVideoSubtitle
[];
119 CONTENT_EXPORT
extern const char kEnableOverscrollNotifications
[];
120 CONTENT_EXPORT
extern const char kEnablePinch
[];
121 CONTENT_EXPORT
extern const char kEnablePreciseMemoryInfo
[];
122 CONTENT_EXPORT
extern const char kEnableRegionBasedColumns
[];
123 CONTENT_EXPORT
extern const char kEnableRendererMojoChannel
[];
124 CONTENT_EXPORT
extern const char kEnableSandboxLogging
[];
125 extern const char kEnableSeccompFilterSandbox
[];
126 extern const char kEnableSkiaBenchmarking
[];
127 CONTENT_EXPORT
extern const char kEnableSmoothScrolling
[];
128 CONTENT_EXPORT
extern const char kEnableSpatialNavigation
[];
129 CONTENT_EXPORT
extern const char kEnableStatsTable
[];
130 extern const char kEnableStrictSiteIsolation
[];
131 CONTENT_EXPORT
extern const char kEnableServiceWorkerSync
[];
132 CONTENT_EXPORT
extern const char kEnableTcpFastOpen
[];
133 CONTENT_EXPORT
extern const char kEnableThreadedCompositing
[];
134 CONTENT_EXPORT
extern const char kEnableTracing
[];
135 CONTENT_EXPORT
extern const char kEnableTracingOutput
[];
136 CONTENT_EXPORT
extern const char kEnableUserMediaScreenCapturing
[];
137 extern const char kEnableV8ScriptStreaming
[];
138 extern const char kEnableV8IdleNotificationAfterCommit
[];
139 CONTENT_EXPORT
extern const char kEnableViewport
[];
140 CONTENT_EXPORT
extern const char kEnableViewportMeta
[];
141 CONTENT_EXPORT
extern const char kMainFrameResizesAreOrientationChanges
[];
142 CONTENT_EXPORT
extern const char kEnableVtune
[];
143 CONTENT_EXPORT
extern const char kEnableWebGLDraftExtensions
[];
144 CONTENT_EXPORT
extern const char kEnableWebGLImageChromium
[];
145 CONTENT_EXPORT
extern const char kEnableWebMIDI
[];
146 CONTENT_EXPORT
extern const char kEnableZeroCopy
[];
147 CONTENT_EXPORT
extern const char kExtraPluginDir
[];
148 CONTENT_EXPORT
extern const char kForceFieldTrials
[];
149 CONTENT_EXPORT
extern const char kForceGpuRasterization
[];
150 CONTENT_EXPORT
extern const char kForceRendererAccessibility
[];
151 extern const char kGpuDeviceID
[];
152 extern const char kGpuDriverVendor
[];
153 extern const char kGpuDriverVersion
[];
154 extern const char kGpuLauncher
[];
155 CONTENT_EXPORT
extern const char kGpuProcess
[];
156 CONTENT_EXPORT
extern const char kGpuSandboxAllowSysVShm
[];
157 CONTENT_EXPORT
extern const char kGpuSandboxFailuresFatal
[];
158 CONTENT_EXPORT
extern const char kGpuSandboxStartEarly
[];
159 CONTENT_EXPORT
extern const char kGpuStartupDialog
[];
160 extern const char kGpuVendorID
[];
161 CONTENT_EXPORT
extern const char kHostResolverRules
[];
162 CONTENT_EXPORT
extern const char kIgnoreCertificateErrors
[];
163 CONTENT_EXPORT
extern const char kIgnoreGpuBlacklist
[];
164 extern const char kInProcessGPU
[];
165 CONTENT_EXPORT
extern const char kIPCConnectionTimeout
[];
166 CONTENT_EXPORT
extern const char kJavaScriptFlags
[];
167 extern const char kLoadPlugin
[];
168 CONTENT_EXPORT
extern const char kLogGpuControlListDecisions
[];
169 CONTENT_EXPORT
extern const char kLoggingLevel
[];
170 CONTENT_EXPORT
extern const char kLogNetLog
[];
171 extern const char kLogPluginMessages
[];
172 extern const char kMaxUntiledLayerHeight
[];
173 extern const char kMaxUntiledLayerWidth
[];
174 extern const char kMemoryMetrics
[];
175 CONTENT_EXPORT
extern const char kMuteAudio
[];
176 CONTENT_EXPORT
extern const char kNoReferrers
[];
177 CONTENT_EXPORT
extern const char kNoSandbox
[];
178 CONTENT_EXPORT
extern const char kNumRasterThreads
[];
179 CONTENT_EXPORT
extern const char kOverscrollHistoryNavigation
[];
180 extern const char kPluginLauncher
[];
181 CONTENT_EXPORT
extern const char kPluginPath
[];
182 CONTENT_EXPORT
extern const char kPluginProcess
[];
183 extern const char kPluginStartupDialog
[];
184 CONTENT_EXPORT
extern const char kPpapiBrokerProcess
[];
185 CONTENT_EXPORT
extern const char kPpapiFlashArgs
[];
186 CONTENT_EXPORT
extern const char kPpapiInProcess
[];
187 extern const char kPpapiPluginLauncher
[];
188 CONTENT_EXPORT
extern const char kPpapiPluginProcess
[];
189 extern const char kPpapiStartupDialog
[];
190 CONTENT_EXPORT
extern const char kProcessPerSite
[];
191 CONTENT_EXPORT
extern const char kProcessPerTab
[];
192 CONTENT_EXPORT
extern const char kProcessType
[];
193 CONTENT_EXPORT
extern const char kReduceSecurityForTesting
[];
194 CONTENT_EXPORT
extern const char kRegisterPepperPlugins
[];
195 CONTENT_EXPORT
extern const char kRemoteDebuggingPort
[];
196 CONTENT_EXPORT
extern const char kRendererAssertTest
[];
197 extern const char kRendererCmdPrefix
[];
198 CONTENT_EXPORT
extern const char kRendererProcess
[];
199 CONTENT_EXPORT
extern const char kRendererProcessLimit
[];
200 CONTENT_EXPORT
extern const char kRendererStartupDialog
[];
201 extern const char kSandboxIPCProcess
[];
202 CONTENT_EXPORT
extern const char kScrollEndEffect
[];
203 extern const char kShowPaintRects
[];
204 CONTENT_EXPORT
extern const char kSingleProcess
[];
205 CONTENT_EXPORT
extern const char kSitePerProcess
[];
206 CONTENT_EXPORT
extern const char kSkipGpuDataLoading
[];
207 CONTENT_EXPORT
extern const char kStartFullscreen
[];
208 CONTENT_EXPORT
extern const char kStatsCollectionController
[];
209 CONTENT_EXPORT
extern const char kTabCaptureDownscaleQuality
[];
210 CONTENT_EXPORT
extern const char kTabCaptureUpscaleQuality
[];
211 CONTENT_EXPORT
extern const char kTestingFixedHttpPort
[];
212 CONTENT_EXPORT
extern const char kTestingFixedHttpsPort
[];
213 CONTENT_EXPORT
extern const char kTestType
[];
214 CONTENT_EXPORT
extern const char kTouchScrollingMode
[];
215 CONTENT_EXPORT
extern const char kTouchScrollingModeAsyncTouchmove
[];
216 CONTENT_EXPORT
extern const char kTouchScrollingModeSyncTouchmove
[];
217 CONTENT_EXPORT
extern const char kTouchScrollingModeTouchcancel
[];
218 CONTENT_EXPORT
extern const char kTraceShutdown
[];
219 extern const char kTraceShutdownFile
[];
220 extern const char kTraceStartup
[];
221 extern const char kTraceStartupDuration
[];
222 extern const char kTraceStartupFile
[];
223 extern const char kTraceUploadURL
[];
224 CONTENT_EXPORT
extern const char kUIPrioritizeInGpuProcess
[];
225 CONTENT_EXPORT
extern const char kUseDiscardableMemory
[];
226 CONTENT_EXPORT
extern const char kUseFakeUIForMediaStream
[];
227 CONTENT_EXPORT
extern const char kUseMobileUserAgent
[];
228 extern const char kUseSurfaces
[];
229 extern const char kUtilityCmdPrefix
[];
230 CONTENT_EXPORT
extern const char kUtilityProcess
[];
231 extern const char kUtilityProcessAllowedDir
[];
232 CONTENT_EXPORT
extern const char kUtilityProcessEnableMDns
[];
233 CONTENT_EXPORT
extern const char kUtilityProcessRunningElevated
[];
234 extern const char kV8CacheOptions
[];
235 CONTENT_EXPORT
extern const char kValidateInputEventStream
[];
236 CONTENT_EXPORT
extern const char kWaitForDebuggerChildren
[];
237 CONTENT_EXPORT
extern const char kZygoteCmdPrefix
[];
238 CONTENT_EXPORT
extern const char kZygoteProcess
[];
240 #if defined(ENABLE_WEBRTC)
241 CONTENT_EXPORT
extern const char kDisableAudioTrackProcessing
[];
242 CONTENT_EXPORT
extern const char kDisableWebRtcHWDecoding
[];
243 CONTENT_EXPORT
extern const char kDisableWebRtcEncryption
[];
244 CONTENT_EXPORT
extern const char kDisableWebRtcHWEncoding
[];
245 CONTENT_EXPORT
extern const char kEnableWebRtcHWVp8Encoding
[];
246 CONTENT_EXPORT
extern const char kEnableWebRtcHWH264Encoding
[];
249 #if defined(OS_ANDROID)
250 CONTENT_EXPORT
extern const char kDisableGestureRequirementForMediaPlayback
[];
251 CONTENT_EXPORT
extern const char kDisableClickDelay
[];
252 CONTENT_EXPORT
extern const char kDisableOverscrollEdgeEffect
[];
253 CONTENT_EXPORT
extern const char kDisableWebRTC
[];
254 CONTENT_EXPORT
extern const char kEnableSpeechRecognition
[];
255 CONTENT_EXPORT
extern const char kForceUseOverlayEmbeddedVideo
[];
256 CONTENT_EXPORT
extern const char kHideScrollbars
[];
257 extern const char kNetworkCountryIso
[];
258 CONTENT_EXPORT
extern const char kRemoteDebuggingSocketName
[];
259 CONTENT_EXPORT
extern const char kRendererWaitForJavaDebugger
[];
262 CONTENT_EXPORT
extern const char kDisableWebAudio
[];
264 #if defined(OS_CHROMEOS)
265 CONTENT_EXPORT
extern const char kDisablePanelFitting
[];
266 CONTENT_EXPORT
extern const char kDisableVaapiAcceleratedVideoEncode
[];
269 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
270 CONTENT_EXPORT
extern const char kEnableSpeechDispatcher
[];
273 #if defined(OS_MACOSX) && !defined(OS_IOS)
274 extern const char kDisableCoreAnimationPlugins
[];
278 // This switch contains the device scale factor passed to certain processes
279 // like renderers, etc.
280 CONTENT_EXPORT
extern const char kDeviceScaleFactor
[];
281 CONTENT_EXPORT
extern const char kDisableDirectWrite
[];
282 CONTENT_EXPORT
extern const char kDisableLegacyIntermediateWindow
[];
283 // This switch will be removed when we enable the win32K lockdown process
285 CONTENT_EXPORT
extern const char kEnableWin32kRendererLockDown
[];
288 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
289 // alphabetical order, or in one of the ifdefs (also in order in each section).
291 } // namespace switches
293 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_