handoff: Fix the origin so that it correctly reflects the sender.
[chromium-blink-merge.git] / content / public / common / content_switches.h
blob1449dbfac866df2fa6ca9a6e7de2d6399bcb209a
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 kAllowInsecureWebSocketFromHttpsOrigin[];
20 CONTENT_EXPORT extern const char kAllowLoopbackInPeerConnection[];
21 CONTENT_EXPORT extern const char kAllowNoSandboxJob[];
22 CONTENT_EXPORT 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 kDisableBlinkFeatures[];
35 CONTENT_EXPORT extern const char kDisableAccelerated2dCanvas[];
36 CONTENT_EXPORT extern const char kDisableAcceleratedJpegDecoding[];
37 CONTENT_EXPORT extern const char kDisableAcceleratedVideoDecode[];
38 extern const char kDisableBackingStoreLimit[];
39 CONTENT_EXPORT extern const char kDisableBlinkScheduler[];
40 CONTENT_EXPORT extern const char kDisablePreferCompositingToLCDText[];
41 CONTENT_EXPORT extern const char kDisableDatabases[];
42 CONTENT_EXPORT extern const char kDisableDelegatedRenderer[];
43 extern const char kDisableDirectNPAPIRequests[];
44 CONTENT_EXPORT extern const char kDisableDistanceFieldText[];
45 CONTENT_EXPORT extern const char kDisableDisplayList2dCanvas[];
46 extern const char kDisableDomainBlockingFor3DAPIs[];
47 CONTENT_EXPORT extern const char kDisableEncryptedMedia[];
48 CONTENT_EXPORT extern const char kDisableExperimentalWebGL[];
49 CONTENT_EXPORT extern const char kDisableFileSystem[];
50 CONTENT_EXPORT extern const char kDisableFlash3d[];
51 CONTENT_EXPORT extern const char kDisableFlashStage3d[];
52 CONTENT_EXPORT extern const char kDisableGpu[];
53 CONTENT_EXPORT extern const char kDisableGpuCompositing[];
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 kDisableImplSidePainting[];
63 CONTENT_EXPORT extern const char kDisableJava[];
64 CONTENT_EXPORT extern const char kDisableLCDText[];
65 CONTENT_EXPORT extern const char kDisablePrefixedEncryptedMedia[];
66 extern const char kDisableKillAfterBadIPC[];
67 CONTENT_EXPORT extern const char kDisableLocalStorage[];
68 CONTENT_EXPORT extern const char kDisableLogging[];
69 CONTENT_EXPORT extern const char kDisableMediaSource[];
70 CONTENT_EXPORT extern const char kDisableNamespaceSandbox[];
71 CONTENT_EXPORT extern const char kDisableNotifications[];
72 CONTENT_EXPORT extern const char kDisableOneCopy[];
73 extern const char kDisablePepper3d[];
74 CONTENT_EXPORT extern const char kDisablePinch[];
75 CONTENT_EXPORT extern const char kDisablePluginsDiscovery[];
76 CONTENT_EXPORT extern const char kDisableReadingFromCanvas[];
77 extern const char kDisableRemoteFonts[];
78 extern const char kDisableRendererAccessibility[];
79 CONTENT_EXPORT extern const char kDisableSeccompFilterSandbox[];
80 CONTENT_EXPORT extern const char kDisableSetuidSandbox[];
81 CONTENT_EXPORT extern const char kDisableSharedWorkers[];
82 CONTENT_EXPORT extern const char kDisableSingleThreadProxyScheduler[];
83 CONTENT_EXPORT extern const char kDisableSmoothScrolling[];
84 CONTENT_EXPORT extern const char kDisableSoftwareRasterizer[];
85 CONTENT_EXPORT extern const char kDisableSVG1DOM[];
86 CONTENT_EXPORT extern const char kDisableTextBlobs[];
87 CONTENT_EXPORT extern const char kDisableThreadedCompositing[];
88 CONTENT_EXPORT extern const char kDisableThreadedScrolling[];
89 extern const char kDisableV8IdleTasks[];
90 CONTENT_EXPORT extern const char kDisableWebSecurity[];
91 extern const char kDisableXSSAuditor[];
92 CONTENT_EXPORT extern const char kDomAutomationController[];
93 extern const char kEnable2dCanvasClipAntialiasing[];
94 CONTENT_EXPORT extern const char kEnableBleedingEdgeRenderingFastPaths[];
95 CONTENT_EXPORT extern const char kEnableCredentialManagerAPI[];
96 CONTENT_EXPORT extern const char kEnableBeginFrameScheduling[];
97 CONTENT_EXPORT extern const char kEnablePreferCompositingToLCDText[];
98 CONTENT_EXPORT extern const char kEnableBlinkFeatures[];
99 CONTENT_EXPORT extern const char kEnableBrowserSideNavigation[];
100 CONTENT_EXPORT extern const char kEnableDeferredImageDecoding[];
101 CONTENT_EXPORT extern const char kEnableDelayAgnosticAec[];
102 CONTENT_EXPORT extern const char kEnableDelegatedRenderer[];
103 CONTENT_EXPORT extern const char kEnableDisplayList2dCanvas[];
104 CONTENT_EXPORT extern const char kEnableDistanceFieldText[];
105 CONTENT_EXPORT extern const char kEnableDownloadResumption[];
106 CONTENT_EXPORT extern const char kEnableExperimentalCanvasFeatures[];
107 CONTENT_EXPORT extern const char kEnableExperimentalWebPlatformFeatures[];
108 CONTENT_EXPORT extern const char kEnableFileCookies[];
109 extern const char kEnableGpuClientTracing[];
110 CONTENT_EXPORT extern const char kEnableGpuRasterization[];
111 CONTENT_EXPORT extern const char kGpuRasterizationMSAASampleCount[];
112 CONTENT_EXPORT extern const char kEnableLowResTiling[];
113 CONTENT_EXPORT extern const char kEnableImageColorProfiles[];
114 CONTENT_EXPORT extern const char kEnableLCDText[];
115 CONTENT_EXPORT extern const char kEnableLogging[];
116 extern const char kEnableMemoryBenchmarking[];
117 CONTENT_EXPORT extern const char kEnableNetworkInformation[];
118 CONTENT_EXPORT extern const char kEnableOneCopy[];
119 CONTENT_EXPORT extern const char kEnableOverlayFullscreenVideo[];
120 CONTENT_EXPORT extern const char kEnablePinch[];
121 CONTENT_EXPORT extern const char kEnablePreciseMemoryInfo[];
122 CONTENT_EXPORT extern const char kEnablePushMessagePayload[];
123 CONTENT_EXPORT extern const char kEnablePushMessagingHasPermission[];
124 CONTENT_EXPORT extern const char kEnableRegionBasedColumns[];
125 CONTENT_EXPORT extern const char kEnableSandboxLogging[];
126 CONTENT_EXPORT extern const char kEnableSeccompFilterSandbox[];
127 extern const char kEnableSkiaBenchmarking[];
128 CONTENT_EXPORT extern const char kEnableSlimmingPaint[];
129 CONTENT_EXPORT extern const char kEnableSmoothScrolling[];
130 CONTENT_EXPORT extern const char kEnableSpatialNavigation[];
131 CONTENT_EXPORT extern const char kEnableStatsTable[];
132 CONTENT_EXPORT extern const char kEnableStrictMixedContentChecking[];
133 CONTENT_EXPORT extern const char kEnableStrictPowerfulFeatureRestrictions[];
134 CONTENT_EXPORT extern const char kEnableStrictSiteIsolation[];
135 CONTENT_EXPORT extern const char kEnableServiceWorkerSync[];
136 CONTENT_EXPORT extern const char kEnableTcpFastOpen[];
137 CONTENT_EXPORT extern const char kEnableThreadedCompositing[];
138 CONTENT_EXPORT extern const char kEnableTracing[];
139 CONTENT_EXPORT extern const char kEnableTracingOutput[];
140 CONTENT_EXPORT extern const char kEnableUserMediaScreenCapturing[];
141 CONTENT_EXPORT extern const char kEnableViewport[];
142 CONTENT_EXPORT extern const char kEnableViewportMeta[];
143 CONTENT_EXPORT extern const char kMainFrameResizesAreOrientationChanges[];
144 CONTENT_EXPORT extern const char kEnableVtune[];
145 CONTENT_EXPORT extern const char kEnableWebGLDraftExtensions[];
146 CONTENT_EXPORT extern const char kEnableWebGLImageChromium[];
147 CONTENT_EXPORT extern const char kEnableZeroCopy[];
148 CONTENT_EXPORT extern const char kExtraPluginDir[];
149 CONTENT_EXPORT extern const char kForceDisplayList2dCanvas[];
150 CONTENT_EXPORT extern const char kForceFieldTrials[];
151 CONTENT_EXPORT extern const char kForceGpuRasterization[];
152 CONTENT_EXPORT extern const char kEnableThreadedGpuRasterization[];
153 CONTENT_EXPORT extern const char kDisableThreadedGpuRasterization[];
154 CONTENT_EXPORT extern const char kForceRendererAccessibility[];
155 CONTENT_EXPORT extern const char kForceTextBlobs[];
156 extern const char kGpuDeviceID[];
157 extern const char kGpuDriverVendor[];
158 extern const char kGpuDriverVersion[];
159 extern const char kGpuLauncher[];
160 CONTENT_EXPORT extern const char kGpuProcess[];
161 CONTENT_EXPORT extern const char kGpuSandboxAllowSysVShm[];
162 CONTENT_EXPORT extern const char kGpuSandboxFailuresFatal[];
163 CONTENT_EXPORT extern const char kGpuSandboxStartEarly[];
164 CONTENT_EXPORT extern const char kGpuStartupDialog[];
165 extern const char kGpuVendorID[];
166 CONTENT_EXPORT extern const char kHostResolverRules[];
167 CONTENT_EXPORT extern const char kIgnoreCertificateErrors[];
168 CONTENT_EXPORT extern const char kIgnoreGpuBlacklist[];
169 extern const char kInProcessGPU[];
170 CONTENT_EXPORT extern const char kIPCConnectionTimeout[];
171 CONTENT_EXPORT extern const char kJavaScriptFlags[];
172 extern const char kLoadPlugin[];
173 CONTENT_EXPORT extern const char kLogGpuControlListDecisions[];
174 CONTENT_EXPORT extern const char kLoggingLevel[];
175 CONTENT_EXPORT extern const char kLogNetLog[];
176 extern const char kLogPluginMessages[];
177 extern const char kMaxUntiledLayerHeight[];
178 extern const char kMaxUntiledLayerWidth[];
179 extern const char kMemoryMetrics[];
180 CONTENT_EXPORT extern const char kMuteAudio[];
181 CONTENT_EXPORT extern const char kNoReferrers[];
182 CONTENT_EXPORT extern const char kNoSandbox[];
183 CONTENT_EXPORT extern const char kNumRasterThreads[];
184 CONTENT_EXPORT extern const char kOverscrollHistoryNavigation[];
185 extern const char kPluginLauncher[];
186 CONTENT_EXPORT extern const char kPluginPath[];
187 CONTENT_EXPORT extern const char kPluginProcess[];
188 extern const char kPluginStartupDialog[];
189 CONTENT_EXPORT extern const char kPpapiBrokerProcess[];
190 CONTENT_EXPORT extern const char kPpapiFlashArgs[];
191 CONTENT_EXPORT extern const char kPpapiInProcess[];
192 extern const char kPpapiPluginLauncher[];
193 CONTENT_EXPORT extern const char kPpapiPluginProcess[];
194 extern const char kPpapiStartupDialog[];
195 CONTENT_EXPORT extern const char kProcessPerSite[];
196 CONTENT_EXPORT extern const char kProcessPerTab[];
197 CONTENT_EXPORT extern const char kProcessType[];
198 CONTENT_EXPORT extern const char kReduceSecurityForTesting[];
199 CONTENT_EXPORT extern const char kReducedReferrerGranularity[];
200 CONTENT_EXPORT extern const char kRegisterPepperPlugins[];
201 CONTENT_EXPORT extern const char kRemoteDebuggingPort[];
202 extern const char kRendererCmdPrefix[];
203 CONTENT_EXPORT extern const char kRendererProcess[];
204 CONTENT_EXPORT extern const char kRendererProcessLimit[];
205 CONTENT_EXPORT extern const char kRendererStartupDialog[];
206 CONTENT_EXPORT extern const char kRootLayerScrolls[];
207 extern const char kSandboxIPCProcess[];
208 CONTENT_EXPORT extern const char kScrollEndEffect[];
209 extern const char kShowPaintRects[];
210 CONTENT_EXPORT extern const char kSingleProcess[];
211 CONTENT_EXPORT extern const char kSitePerProcess[];
212 CONTENT_EXPORT extern const char kSkipGpuDataLoading[];
213 CONTENT_EXPORT extern const char kStartFullscreen[];
214 CONTENT_EXPORT extern const char kStatsCollectionController[];
215 CONTENT_EXPORT extern const char kTabCaptureDownscaleQuality[];
216 CONTENT_EXPORT extern const char kTabCaptureUpscaleQuality[];
217 CONTENT_EXPORT extern const char kTestingFixedHttpPort[];
218 CONTENT_EXPORT extern const char kTestingFixedHttpsPort[];
219 CONTENT_EXPORT extern const char kTestType[];
220 CONTENT_EXPORT extern const char kTraceShutdown[];
221 extern const char kTraceShutdownFile[];
222 extern const char kTraceStartup[];
223 extern const char kTraceStartupDuration[];
224 extern const char kTraceStartupFile[];
225 CONTENT_EXPORT extern const char kTraceUploadURL[];
226 CONTENT_EXPORT extern const char kUIPrioritizeInGpuProcess[];
227 CONTENT_EXPORT extern const char kUseFakeUIForMediaStream[];
228 CONTENT_EXPORT extern const char kEnableNativeGpuMemoryBuffers[];
229 CONTENT_EXPORT extern const char kUseImageTextureTarget[];
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 kValidateInputEventStream[];
241 CONTENT_EXPORT extern const char kWaitForDebuggerChildren[];
242 CONTENT_EXPORT extern const char kZygoteCmdPrefix[];
243 CONTENT_EXPORT extern const char kZygoteProcess[];
245 #if defined(ENABLE_WEBRTC)
246 CONTENT_EXPORT extern const char kDisableWebRtcHWDecoding[];
247 CONTENT_EXPORT extern const char kDisableWebRtcEncryption[];
248 CONTENT_EXPORT extern const char kDisableWebRtcHWEncoding[];
249 CONTENT_EXPORT extern const char kEnableWebRtcHWH264Encoding[];
250 CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[];
251 extern const char kWebRtcMaxCaptureFramerate[];
252 #if defined(OS_LINUX) || defined(OS_MACOSX)
253 CONTENT_EXPORT extern const char kEnableWebRtcCaptureToTexture[];
254 #endif
255 #endif
257 #if defined(OS_ANDROID)
258 CONTENT_EXPORT extern const char kDisableGestureRequirementForMediaPlayback[];
259 CONTENT_EXPORT extern const char kDisableClickDelay[];
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 kDisableWebRTC[];
264 CONTENT_EXPORT extern const char kHideScrollbars[];
265 extern const char kNetworkCountryIso[];
266 CONTENT_EXPORT extern const char kRemoteDebuggingSocketName[];
267 CONTENT_EXPORT extern const char kRendererWaitForJavaDebugger[];
268 #endif
270 CONTENT_EXPORT extern const char kDisableWebAudio[];
272 #if defined(OS_CHROMEOS)
273 CONTENT_EXPORT extern const char kDisablePanelFitting[];
274 CONTENT_EXPORT extern const char kDisableVaapiAcceleratedVideoEncode[];
275 #endif
277 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
278 CONTENT_EXPORT extern const char kEnableSpeechDispatcher[];
279 #endif
281 #if defined(OS_MACOSX) && !defined(OS_IOS)
282 extern const char kDisableCoreAnimationPlugins[];
283 extern const char kDisableThreadedEventHandlingMac[];
284 #endif
286 #if defined(OS_WIN)
287 // This switch contains the device scale factor passed to certain processes
288 // like renderers, etc.
289 CONTENT_EXPORT extern const char kDeviceScaleFactor[];
290 CONTENT_EXPORT extern const char kDisableLegacyIntermediateWindow[];
291 // This switch will be removed when we enable the win32K lockdown process
292 // mitigation.
293 CONTENT_EXPORT extern const char kDisableWin32kRendererLockDown[];
294 CONTENT_EXPORT extern const char kEnableWin32kRendererLockDown[];
295 // Switch to uniquely identify names shared memory section for font cache
296 // across chromium flavors.
297 CONTENT_EXPORT extern const char kFontCacheSharedMemSuffix[];
298 #endif
300 CONTENT_EXPORT extern const char kEnableNpapi[];
302 #if defined(ENABLE_PLUGINS)
303 CONTENT_EXPORT extern const char kEnablePluginPowerSaver[];
304 #endif
306 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
307 // alphabetical order, or in one of the ifdefs (also in order in each section).
309 } // namespace switches
311 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_