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