Roll src/third_party/WebKit a452221:9ff6d11 (svn 202117:202119)
[chromium-blink-merge.git] / content / public / common / content_switches.h
blobf91eb397c13f27e3e9cf17d3d1a5b441de1caffe
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"
13 namespace switches {
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 kAllowLoopbackInPeerConnection[];
20 CONTENT_EXPORT extern const char kAllowNoSandboxJob[];
21 CONTENT_EXPORT extern const char kAllowSandboxDebugging[];
22 CONTENT_EXPORT extern const char kBlinkSettings[];
23 CONTENT_EXPORT extern const char kBlinkPlatformLogChannels[];
24 CONTENT_EXPORT extern const char kBrowserCrashTest[];
25 CONTENT_EXPORT extern const char kBrowserSubprocessPath[];
26 extern const char kDebugPluginLoading[];
27 CONTENT_EXPORT extern const char kDefaultTileWidth[];
28 CONTENT_EXPORT extern const char kDefaultTileHeight[];
29 CONTENT_EXPORT extern const char kDisable2dCanvasAntialiasing[];
30 CONTENT_EXPORT extern const char kDisable3DAPIs[];
31 CONTENT_EXPORT extern const char kDisableBlinkFeatures[];
32 CONTENT_EXPORT extern const char kDisableAccelerated2dCanvas[];
33 CONTENT_EXPORT extern const char kDisableAcceleratedJpegDecoding[];
34 CONTENT_EXPORT extern const char kDisableAcceleratedMjpegDecode[];
35 CONTENT_EXPORT extern const char kDisableAcceleratedVideoDecode[];
36 extern const char kDisableBackingStoreLimit[];
37 CONTENT_EXPORT extern const char kDisablePreferCompositingToLCDText[];
38 CONTENT_EXPORT extern const char kDisableDatabases[];
39 CONTENT_EXPORT extern const char kDisableDelayAgnosticAec[];
40 CONTENT_EXPORT extern const char kDisableDelegatedRenderer[];
41 extern const char kDisableDirectNPAPIRequests[];
42 CONTENT_EXPORT extern const char kDisableDistanceFieldText[];
43 CONTENT_EXPORT extern const char kDisableDisplayList2dCanvas[];
44 extern const char kDisableDomainBlockingFor3DAPIs[];
45 CONTENT_EXPORT extern const char kDisableEncryptedMedia[];
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 CONTENT_EXPORT extern const char kDisableGpuEarlyInit[];
53 CONTENT_EXPORT extern const char kDisableGpuMemoryBufferVideoFrames[];
54 extern const char kDisableGpuProcessCrashLimit[];
55 CONTENT_EXPORT extern const char kDisableGpuRasterization[];
56 CONTENT_EXPORT extern const char kDisableGpuSandbox[];
57 CONTENT_EXPORT extern const char kDisableGpuWatchdog[];
58 CONTENT_EXPORT extern const char kDisableLowResTiling[];
59 CONTENT_EXPORT extern const char kDisableHangMonitor[];
60 CONTENT_EXPORT extern const char kDisableHideInactiveStackedTabCloseButtons[];
61 extern const char kDisableHistogramCustomizer[];
62 CONTENT_EXPORT extern const char kDisableLCDText[];
63 CONTENT_EXPORT extern const char kEnablePrefixedEncryptedMedia[];
64 extern const char kDisableKillAfterBadIPC[];
65 CONTENT_EXPORT extern const char kDisableLocalStorage[];
66 CONTENT_EXPORT extern const char kDisableLogging[];
67 CONTENT_EXPORT extern const char kDisableMediaSource[];
68 CONTENT_EXPORT extern const char kDisableNamespaceSandbox[];
69 CONTENT_EXPORT extern const char kDisableNativeGpuMemoryBuffers[];
70 CONTENT_EXPORT extern const char kDisableNotifications[];
71 extern const char kDisablePepper3d[];
72 CONTENT_EXPORT extern const char kDisablePermissionsAPI[];
73 CONTENT_EXPORT extern const char kDisablePersistentGpuMemoryBuffer[];
74 CONTENT_EXPORT extern const char kDisablePinch[];
75 CONTENT_EXPORT extern const char kDisablePluginsDiscovery[];
76 CONTENT_EXPORT extern const char kDisablePresentationAPI[];
77 CONTENT_EXPORT extern const char kDisableRGBA4444Textures[];
78 CONTENT_EXPORT extern const char kDisableReadingFromCanvas[];
79 extern const char kDisableRemoteFonts[];
80 extern const char kDisableRendererAccessibility[];
81 CONTENT_EXPORT extern const char kDisableRendererBackgrounding[];
82 CONTENT_EXPORT extern const char kDisableSeccompFilterSandbox[];
83 CONTENT_EXPORT extern const char kDisableSetuidSandbox[];
84 CONTENT_EXPORT extern const char kDisableSharedWorkers[];
85 CONTENT_EXPORT extern const char kDisableSlimmingPaint[];
86 CONTENT_EXPORT extern const char kDisableSmoothScrolling[];
87 CONTENT_EXPORT extern const char kDisableSoftwareRasterizer[];
88 CONTENT_EXPORT extern const char kDisableSpeechAPI[];
89 CONTENT_EXPORT extern const char kDisableSVG1DOM[];
90 CONTENT_EXPORT extern const char kDisableThreadedCompositing[];
91 CONTENT_EXPORT extern const char kDisableThreadedScrolling[];
92 extern const char kDisableV8IdleTasks[];
93 CONTENT_EXPORT extern const char kDisableWebSecurity[];
94 extern const char kDisableXSSAuditor[];
95 CONTENT_EXPORT extern const char kDomAutomationController[];
96 extern const char kEnable2dCanvasClipAntialiasing[];
97 CONTENT_EXPORT extern const char kEnableAggressiveDOMStorageFlushing[];
98 CONTENT_EXPORT extern const char kEnableBleedingEdgeRenderingFastPaths[];
99 CONTENT_EXPORT extern const char kEnableCompositorAnimationTimelines[];
100 CONTENT_EXPORT extern const char kEnableCredentialManagerAPI[];
101 CONTENT_EXPORT extern const char kEnablePreferCompositingToLCDText[];
102 CONTENT_EXPORT extern const char kEnableBlinkFeatures[];
103 CONTENT_EXPORT extern const char kEnableBrowserSideNavigation[];
104 CONTENT_EXPORT extern const char kEnableDelayAgnosticAec[];
105 CONTENT_EXPORT extern const char kEnableDelegatedRenderer[];
106 CONTENT_EXPORT extern const char kEnableDisplayList2dCanvas[];
107 CONTENT_EXPORT extern const char kEnableDistanceFieldText[];
108 CONTENT_EXPORT extern const char kEnableDownloadResumption[];
109 CONTENT_EXPORT extern const char kEnableExperimentalCanvasFeatures[];
110 CONTENT_EXPORT extern const char kEnableExperimentalWebPlatformFeatures[];
111 CONTENT_EXPORT extern const char kEnableWebBluetooth[];
112 extern const char kEnableGpuClientTracing[];
113 CONTENT_EXPORT extern const char kEnableGpuMemoryBufferVideoFrames[];
114 CONTENT_EXPORT extern const char kEnableGpuRasterization[];
115 CONTENT_EXPORT extern const char kGpuRasterizationMSAASampleCount[];
116 CONTENT_EXPORT extern const char kEnableLowResTiling[];
117 CONTENT_EXPORT extern const char kEnableImageColorProfiles[];
118 CONTENT_EXPORT extern const char kEnableLCDText[];
119 CONTENT_EXPORT extern const char kEnableLogging[];
120 extern const char kEnableMemoryBenchmarking[];
121 CONTENT_EXPORT extern const char kEnableNetworkInformation[];
122 CONTENT_EXPORT extern const char kEnablePersistentGpuMemoryBuffer[];
123 CONTENT_EXPORT extern const char kEnablePinch[];
124 CONTENT_EXPORT extern const char kEnablePluginPlaceholderTesting[];
125 CONTENT_EXPORT extern const char kEnablePreciseMemoryInfo[];
126 CONTENT_EXPORT extern const char kEnablePushMessagePayload[];
127 CONTENT_EXPORT extern const char kEnableRGBA4444Textures[];
128 CONTENT_EXPORT extern const char kEnableSandboxLogging[];
129 CONTENT_EXPORT extern const char kEnableSeccompFilterSandbox[];
130 extern const char kEnableSkiaBenchmarking[];
131 CONTENT_EXPORT extern const char kEnableSlimmingPaint[];
132 CONTENT_EXPORT extern const char kEnableSlimmingPaintV2[];
133 CONTENT_EXPORT extern const char kEnableSmoothScrolling[];
134 CONTENT_EXPORT extern const char kEnableSpatialNavigation[];
135 CONTENT_EXPORT extern const char kEnableStatsTable[];
136 CONTENT_EXPORT extern const char kEnableStrictMixedContentChecking[];
137 CONTENT_EXPORT extern const char kEnableStrictPowerfulFeatureRestrictions[];
138 CONTENT_EXPORT extern const char kEnableTcpFastOpen[];
139 CONTENT_EXPORT extern const char kEnableThreadedCompositing[];
140 CONTENT_EXPORT extern const char kEnableTracing[];
141 CONTENT_EXPORT extern const char kEnableTracingOutput[];
142 CONTENT_EXPORT extern const char kEnableUserMediaScreenCapturing[];
143 CONTENT_EXPORT extern const char kEnableViewport[];
144 CONTENT_EXPORT extern const char kInvertViewportScrollOrder[];
145 CONTENT_EXPORT extern const char kEnableVtune[];
146 CONTENT_EXPORT extern const char kEnableWebGLDraftExtensions[];
147 CONTENT_EXPORT extern const char kEnableWebGLImageChromium[];
148 CONTENT_EXPORT extern const char kEnableWebVR[];
149 CONTENT_EXPORT extern const char kEnableZeroCopy[];
150 CONTENT_EXPORT extern const char kExplicitlyAllowedPorts[];
151 CONTENT_EXPORT extern const char kExtraPluginDir[];
152 CONTENT_EXPORT extern const char kForceDisplayList2dCanvas[];
153 CONTENT_EXPORT extern const char kForceFieldTrials[];
154 CONTENT_EXPORT extern const char kForceGpuRasterization[];
155 CONTENT_EXPORT extern const char kForceOverlayFullscreenVideo[];
156 CONTENT_EXPORT extern const char kForceRendererAccessibility[];
157 extern const char kGpuDeviceID[];
158 extern const char kGpuDriverVendor[];
159 extern const char kGpuDriverVersion[];
160 extern const char kGpuLauncher[];
161 CONTENT_EXPORT extern const char kGpuProcess[];
162 CONTENT_EXPORT extern const char kGpuSandboxAllowSysVShm[];
163 CONTENT_EXPORT extern const char kGpuSandboxFailuresFatal[];
164 CONTENT_EXPORT extern const char kGpuSandboxStartEarly[];
165 CONTENT_EXPORT extern const char kGpuStartupDialog[];
166 extern const char kGpuVendorID[];
167 CONTENT_EXPORT extern const char kHostResolverRules[];
168 CONTENT_EXPORT extern const char kIgnoreCertificateErrors[];
169 CONTENT_EXPORT extern const char kIgnoreGpuBlacklist[];
170 CONTENT_EXPORT extern const char kInProcessGPU[];
171 CONTENT_EXPORT extern const char kIPCConnectionTimeout[];
172 CONTENT_EXPORT extern const char kJavaScriptFlags[];
173 extern const char kLoadPlugin[];
174 CONTENT_EXPORT extern const char kLogGpuControlListDecisions[];
175 CONTENT_EXPORT extern const char kLoggingLevel[];
176 CONTENT_EXPORT extern const char kLogNetLog[];
177 extern const char kLogPluginMessages[];
178 CONTENT_EXPORT extern const char kMainFrameResizesAreOrientationChanges[];
179 extern const char kMaxUntiledLayerHeight[];
180 extern const char kMaxUntiledLayerWidth[];
181 extern const char kMemoryMetrics[];
182 CONTENT_EXPORT extern const char kMuteAudio[];
183 CONTENT_EXPORT extern const char kNoReferrers[];
184 CONTENT_EXPORT extern const char kNoSandbox[];
185 CONTENT_EXPORT extern const char kEnableAppContainer[];
186 CONTENT_EXPORT extern const char kNumRasterThreads[];
187 CONTENT_EXPORT extern const char kOverridePluginPowerSaverForTesting[];
188 CONTENT_EXPORT extern const char kOverscrollHistoryNavigation[];
189 extern const char kPluginLauncher[];
190 CONTENT_EXPORT extern const char kPluginPath[];
191 CONTENT_EXPORT extern const char kPluginProcess[];
192 extern const char kPluginStartupDialog[];
193 CONTENT_EXPORT extern const char kPpapiBrokerProcess[];
194 CONTENT_EXPORT extern const char kPpapiFlashArgs[];
195 CONTENT_EXPORT extern const char kPpapiInProcess[];
196 extern const char kPpapiPluginLauncher[];
197 CONTENT_EXPORT extern const char kPpapiPluginProcess[];
198 extern const char kPpapiStartupDialog[];
199 CONTENT_EXPORT extern const char kProcessPerSite[];
200 CONTENT_EXPORT extern const char kProcessPerTab[];
201 CONTENT_EXPORT extern const char kProcessType[];
202 CONTENT_EXPORT extern const char kReduceSecurityForTesting[];
203 CONTENT_EXPORT extern const char kReducedReferrerGranularity[];
204 CONTENT_EXPORT extern const char kRegisterPepperPlugins[];
205 CONTENT_EXPORT extern const char kRemoteDebuggingPort[];
206 extern const char kRendererCmdPrefix[];
207 CONTENT_EXPORT extern const char kRendererProcess[];
208 CONTENT_EXPORT extern const char kRendererProcessLimit[];
209 CONTENT_EXPORT extern const char kRendererStartupDialog[];
210 CONTENT_EXPORT extern const char kRootLayerScrolls[];
211 extern const char kSandboxIPCProcess[];
212 CONTENT_EXPORT extern const char kScrollEndEffect[];
213 extern const char kShowPaintRects[];
214 CONTENT_EXPORT extern const char kSingleProcess[];
215 CONTENT_EXPORT extern const char kSitePerProcess[];
216 CONTENT_EXPORT extern const char kSkipGpuDataLoading[];
217 CONTENT_EXPORT extern const char kStartFullscreen[];
218 CONTENT_EXPORT extern const char kStatsCollectionController[];
219 CONTENT_EXPORT extern const char kTabCaptureDownscaleQuality[];
220 CONTENT_EXPORT extern const char kTabCaptureUpscaleQuality[];
221 CONTENT_EXPORT extern const char kTestingFixedHttpPort[];
222 CONTENT_EXPORT extern const char kTestingFixedHttpsPort[];
223 CONTENT_EXPORT extern const char kTestType[];
224 CONTENT_EXPORT extern const char kTouchTextSelectionStrategy[];
225 CONTENT_EXPORT extern const char kUIPrioritizeInGpuProcess[];
226 CONTENT_EXPORT extern const char kUseFakeUIForMediaStream[];
227 CONTENT_EXPORT extern const char kEnableNativeGpuMemoryBuffers[];
228 CONTENT_EXPORT extern const char kContentImageTextureTarget[];
229 CONTENT_EXPORT extern const char kVideoImageTextureTarget[];
230 CONTENT_EXPORT extern const char kUseMobileUserAgent[];
231 CONTENT_EXPORT extern const char kUseNormalPriorityForTileTaskWorkerThreads[];
232 extern const char kUseSurfaces[];
233 CONTENT_EXPORT extern const char kDisableSurfaces[];
234 extern const char kUtilityCmdPrefix[];
235 CONTENT_EXPORT extern const char kUtilityProcess[];
236 extern const char kUtilityProcessAllowedDir[];
237 CONTENT_EXPORT extern const char kUtilityProcessEnableMDns[];
238 CONTENT_EXPORT extern const char kUtilityProcessRunningElevated[];
239 CONTENT_EXPORT extern const char kV8CacheOptions[];
240 CONTENT_EXPORT extern const char kV8NativesPassedByFD[];
241 CONTENT_EXPORT extern const char kV8SnapshotPassedByFD[];
242 CONTENT_EXPORT extern const char kValidateInputEventStream[];
243 CONTENT_EXPORT extern const char kWaitForDebuggerChildren[];
244 CONTENT_EXPORT extern const char kZygoteCmdPrefix[];
245 CONTENT_EXPORT extern const char kZygoteProcess[];
247 #if defined(ENABLE_WEBRTC)
248 CONTENT_EXPORT extern const char kDisableWebRtcHWDecoding[];
249 CONTENT_EXPORT extern const char kDisableWebRtcEncryption[];
250 CONTENT_EXPORT extern const char kDisableWebRtcHWEncoding[];
251 CONTENT_EXPORT extern const char kEnableWebRtcDtls12[];
252 CONTENT_EXPORT extern const char kEnableWebRtcHWH264Encoding[];
253 CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[];
254 CONTENT_EXPORT extern const char kWebRtcStunProbeTrialParameter[];
255 extern const char kWebRtcMaxCaptureFramerate[];
256 #endif
258 #if defined(OS_ANDROID)
259 CONTENT_EXPORT extern const char kDisableGestureRequirementForMediaPlayback[];
260 CONTENT_EXPORT extern const char kDisableOverscrollEdgeEffect[];
261 CONTENT_EXPORT extern const char kDisablePullToRefreshEffect[];
262 CONTENT_EXPORT extern const char kDisableScreenOrientationLock[];
263 CONTENT_EXPORT extern const char kEnableAndroidCompositorAnimationTimelines[];
264 CONTENT_EXPORT extern const char kEnableLongpressDragSelection[];
265 CONTENT_EXPORT extern const char kHideScrollbars[];
266 extern const char kNetworkCountryIso[];
267 CONTENT_EXPORT extern const char kRemoteDebuggingSocketName[];
268 CONTENT_EXPORT extern const char kRendererWaitForJavaDebugger[];
269 #endif
271 CONTENT_EXPORT extern const char kDisableWebAudio[];
273 #if defined(OS_CHROMEOS)
274 CONTENT_EXPORT extern const char kDisablePanelFitting[];
275 CONTENT_EXPORT extern const char kDisableVaapiAcceleratedVideoEncode[];
276 #endif
278 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
279 CONTENT_EXPORT extern const char kEnableSpeechDispatcher[];
280 #endif
282 #if defined(OS_MACOSX) && !defined(OS_IOS)
283 extern const char kDisableCoreAnimationPlugins[];
284 extern const char kDisableThreadedEventHandlingMac[];
285 #endif
287 #if defined(OS_WIN)
288 // This switch contains the device scale factor passed to certain processes
289 // like renderers, etc.
290 CONTENT_EXPORT extern const char kDeviceScaleFactor[];
291 CONTENT_EXPORT extern const char kDisableLegacyIntermediateWindow[];
292 CONTENT_EXPORT extern const char kDisableWin32kRendererLockDown[];
293 CONTENT_EXPORT extern const char kEnableAcceleratedVpxDecode[];
294 // Switch to pass the font cache shared memory handle to the renderer.
295 CONTENT_EXPORT extern const char kFontCacheSharedHandle[];
296 CONTENT_EXPORT extern const char kMemoryPressureThresholdsMb[];
297 CONTENT_EXPORT extern const char kTraceExportEventsToETW[];
298 #endif
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_