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 CONTENT_EXPORT
extern const char kAllowFileAccessFromFiles
[];
16 extern const char kAllowSandboxDebugging
[];
17 extern const char kAllowWebUICompositing
[];
18 extern const char kAuditHandles
[];
19 extern const char kAuditAllHandles
[];
20 CONTENT_EXPORT
extern const char kBrowserAssertTest
[];
21 CONTENT_EXPORT
extern const char kBrowserCrashTest
[];
22 CONTENT_EXPORT
extern const char kBrowserSubprocessPath
[];
23 // TODO(jam): this doesn't belong in content.
24 CONTENT_EXPORT
extern const char kChromeFrame
[];
25 CONTENT_EXPORT
extern const char kDisable3DAPIs
[];
26 CONTENT_EXPORT
extern const char kDisableAccelerated2dCanvas
[];
27 CONTENT_EXPORT
extern const char kDisableAcceleratedCompositing
[];
28 CONTENT_EXPORT
extern const char kDisableAcceleratedLayers
[];
29 CONTENT_EXPORT
extern const char kDisableAcceleratedPlugins
[];
30 CONTENT_EXPORT
extern const char kDisableAcceleratedVideo
[];
31 CONTENT_EXPORT
extern const char kDisableAltWinstation
[];
32 CONTENT_EXPORT
extern const char kDisableApplicationCache
[];
33 CONTENT_EXPORT
extern const char kDisableAudio
[];
34 extern const char kDisableBackingStoreLimit
[];
35 CONTENT_EXPORT
extern const char kDisableDatabases
[];
36 extern const char kDisableDataTransferItems
[];
37 CONTENT_EXPORT
extern const char kDisableDeferred2dCanvas
[];
38 extern const char kDisableDesktopNotifications
[];
39 CONTENT_EXPORT
extern const char kDisableDeviceOrientation
[];
40 #if defined(OS_ANDROID)
41 CONTENT_EXPORT
extern const char kEnableExperimentalWebGL
[];
43 CONTENT_EXPORT
extern const char kDisableExperimentalWebGL
[];
45 CONTENT_EXPORT
extern const char kBlacklistAcceleratedCompositing
[];
46 CONTENT_EXPORT
extern const char kBlacklistWebGL
[];
47 extern const char kDisableFileSystem
[];
48 CONTENT_EXPORT
extern const char kDisableFlash3d
[];
49 extern const char kDisableFlashFullscreen3d
[];
50 CONTENT_EXPORT
extern const char kDisableFlashStage3d
[];
51 CONTENT_EXPORT
extern const char kDisableForceCompositingMode
[];
52 extern const char kDisableGeolocation
[];
53 extern const char kDisableGestureTapHighlight
[];
54 extern const char kDisableGpu
[];
55 CONTENT_EXPORT
extern const char kDisableGLMultisampling
[];
56 CONTENT_EXPORT
extern const char kDisableGpuProcessPrelaunch
[];
57 extern const char kDisableGpuSandbox
[];
58 extern const char kReduceGpuSandbox
[];
59 extern const char kEnableGpuSandbox
[];
60 extern const char kDisableGpuWatchdog
[];
61 CONTENT_EXPORT
extern const char kDisableHangMonitor
[];
62 extern const char kDisableImageTransportSurface
[];
63 CONTENT_EXPORT
extern const char kDisableJava
[];
64 CONTENT_EXPORT
extern const char kDisableJavaScript
[];
65 extern const char kDisableJavaScriptI18NAPI
[];
66 CONTENT_EXPORT
extern const char kDisableLocalStorage
[];
67 CONTENT_EXPORT
extern const char kDisableLogging
[];
68 CONTENT_EXPORT
extern const char kDisableSmoothScrolling
[];
69 CONTENT_EXPORT
extern const char kDisablePlugins
[];
70 extern const char kDisablePointerLock
[];
71 extern const char kDisableRemoteFonts
[];
72 extern const char kDisableRendererAccessibility
[];
73 extern const char kDisableSSLFalseStart
[];
74 extern const char kDisableSeccompSandbox
[];
75 extern const char kDisableSeccompFilterSandbox
[];
76 extern const char kDisableSessionStorage
[];
77 extern const char kDisableSharedWorkers
[];
78 extern const char kDisableSiteSpecificQuirks
[];
79 CONTENT_EXPORT
extern const char kDisableSpeechInput
[];
80 CONTENT_EXPORT
extern const char kEnableScriptedSpeech
[];
81 extern const char kSpeechRecognitionWebserviceKey
[];
82 CONTENT_EXPORT
extern const char kDisableThreadedAnimation
[];
83 #if defined(OS_ANDROID)
84 CONTENT_EXPORT
extern const char kEnableWebAudio
[];
86 CONTENT_EXPORT
extern const char kDisableWebAudio
[];
88 extern const char kDisableWebSecurity
[];
89 extern const char kDisableWebSockets
[];
90 extern const char kDisableXSSAuditor
[];
91 CONTENT_EXPORT
extern const char kDomAutomationController
[];
92 CONTENT_EXPORT
extern const char kEnableAcceleratedPainting
[];
93 CONTENT_EXPORT
extern const char kEnableAcceleratedFilters
[];
94 extern const char kEnableAcceleratedPlugins
[];
95 extern const char kEnableAccessibilityLogging
[];
96 CONTENT_EXPORT
extern const char kEnableCompositingForFixedPosition
[];
97 extern const char kEnableCssExclusions
[];
98 extern const char kEnableCssRegions
[];
99 extern const char kEnableCssShaders
[];
100 extern const char kEnableCssVariables
[];
101 CONTENT_EXPORT
extern const char kEnableDeviceMotion
[];
102 extern const char kEnableEncryptedMedia
[];
103 extern const char kEnableFastback
[];
104 CONTENT_EXPORT
extern const char kEnableFixedLayout
[];
105 CONTENT_EXPORT
extern const char kDisableFullScreen
[];
106 extern const char kEnablePointerLock
[];
107 CONTENT_EXPORT
extern const char kEnableTextServiceFramework
[];
108 extern const char kEnableGpuBenchmarking
[];
109 CONTENT_EXPORT
extern const char kEnableLogging
[];
110 extern const char kDisableMediaSource
[];
111 extern const char kEnableMonitorProfile
[];
112 extern const char kEnablePartialSwap
[];
113 extern const char kEnableUIReleaseFrontSurface
[];
114 extern const char kEnablePinch
[];
115 extern const char kEnablePreparsedJsCaching
[];
116 CONTENT_EXPORT
extern const char kEnablePrivilegedWebGLExtensions
[];
117 extern const char kEnablePruneGpuCommandBuffers
[];
118 extern const char kEnableRendererSideMixing
[];
119 extern const char kEnableSSLCachedInfo
[];
120 extern const char kEnableSandboxLogging
[];
121 extern const char kEnableSeccompSandbox
[];
122 extern const char kEnableShadowDOM
[];
123 extern const char kEnableStyleScoped
[];
124 CONTENT_EXPORT
extern const char kEnableSmoothScrolling
[];
125 CONTENT_EXPORT
extern const char kEnableStatsTable
[];
126 extern const char kEnableStrictSiteIsolation
[];
127 CONTENT_EXPORT
extern const char kEnableThreadedCompositing
[];
128 CONTENT_EXPORT
extern const char kDisableThreadedCompositing
[];
129 CONTENT_EXPORT
extern const char kEnableTcpFastOpen
[];
130 CONTENT_EXPORT
extern const char kDisableAcceleratedVideoDecode
[];
131 extern const char kEnableViewport
[];
132 CONTENT_EXPORT
extern const char kExperimentalLocationFeatures
[];
133 CONTENT_EXPORT
extern const char kExtraPluginDir
[];
134 CONTENT_EXPORT
extern const char kForceCompositingMode
[];
135 extern const char kForceFieldTrials
[];
136 CONTENT_EXPORT
extern const char kForceRendererAccessibility
[];
137 extern const char kGpuDeviceID
[];
138 extern const char kGpuDriverVendor
[];
139 extern const char kGpuDriverVersion
[];
140 extern const char kGpuLauncher
[];
141 CONTENT_EXPORT
extern const char kGpuProcess
[];
142 extern const char kGpuStartupDialog
[];
143 extern const char kGpuVendorID
[];
144 CONTENT_EXPORT
extern const char kGuestRenderer
[];
145 extern const char kInProcessGPU
[];
146 extern const char kInProcessPlugins
[];
147 CONTENT_EXPORT
extern const char kInProcessWebGL
[];
148 CONTENT_EXPORT
extern const char kJavaScriptFlags
[];
149 extern const char kLoadPlugin
[];
150 CONTENT_EXPORT
extern const char kLoggingLevel
[];
151 extern const char kLogPluginMessages
[];
152 // TODO(jam): this doesn't belong in content.
153 CONTENT_EXPORT
extern const char kNaClBrokerProcess
[];
154 CONTENT_EXPORT
extern const char kNaClLoaderProcess
[];
155 CONTENT_EXPORT
extern const char kNoReferrers
[];
156 CONTENT_EXPORT
extern const char kNoSandbox
[];
157 extern const char kPluginLauncher
[];
158 CONTENT_EXPORT
extern const char kPluginPath
[];
159 CONTENT_EXPORT
extern const char kPluginProcess
[];
160 extern const char kPluginStartupDialog
[];
161 CONTENT_EXPORT
extern const char kPpapiBrokerProcess
[];
162 CONTENT_EXPORT
extern const char kPpapiOutOfProcess
[];
163 extern const char kPpapiPluginLauncher
[];
164 CONTENT_EXPORT
extern const char kPpapiPluginProcess
[];
165 extern const char kPpapiStartupDialog
[];
166 CONTENT_EXPORT
extern const char kProcessPerSite
[];
167 CONTENT_EXPORT
extern const char kProcessPerTab
[];
168 CONTENT_EXPORT
extern const char kProcessType
[];
169 CONTENT_EXPORT
extern const char kRegisterPepperPlugins
[];
170 CONTENT_EXPORT
extern const char kRemoteDebuggingPort
[];
171 CONTENT_EXPORT
extern const char kRendererAssertTest
[];
172 extern const char kRendererCmdPrefix
[];
173 CONTENT_EXPORT
extern const char kRendererProcess
[];
174 extern const char kRendererProcessLimit
[];
175 extern const char kRendererStartupDialog
[];
176 // TODO(jam): this doesn't belong in content.
177 CONTENT_EXPORT
extern const char kServiceProcess
[];
178 extern const char kShowCompositedLayerBorders
[];
179 extern const char kShowCompositedLayerTree
[];
180 extern const char kShowFPSCounter
[];
181 extern const char kShowPaintRects
[];
182 CONTENT_EXPORT
extern const char kSimulateTouchScreenWithMouse
[];
183 CONTENT_EXPORT
extern const char kSingleProcess
[];
184 CONTENT_EXPORT
extern const char kSkipGpuDataLoading
[];
185 extern const char kTapDownDeferralTimeMs
[];
186 CONTENT_EXPORT
extern const char kTestSandbox
[];
187 extern const char kTraceStartup
[];
188 extern const char kTraceStartupFile
[];
189 extern const char kTraceStartupDuration
[];
190 CONTENT_EXPORT
extern const char kUIPrioritizeInGpuProcess
[];
191 CONTENT_EXPORT
extern const char kUserAgent
[];
192 extern const char kUtilityCmdPrefix
[];
193 CONTENT_EXPORT
extern const char kUtilityProcess
[];
194 extern const char kUtilityProcessAllowedDir
[];
195 CONTENT_EXPORT
extern const char kWaitForDebuggerChildren
[];
196 extern const char kWebCoreLogChannels
[];
197 extern const char kWebWorkerProcessPerCore
[];
198 extern const char kWebWorkerShareProcesses
[];
199 CONTENT_EXPORT
extern const char kWorkerProcess
[];
200 CONTENT_EXPORT
extern const char kZygoteCmdPrefix
[];
201 CONTENT_EXPORT
extern const char kZygoteProcess
[];
202 CONTENT_EXPORT
extern const char kDisableSoftwareRasterizer
[];
203 extern const char kDefaultTileWidth
[];
204 extern const char kDefaultTileHeight
[];
205 extern const char kMaxUntiledLayerWidth
[];
206 extern const char kMaxUntiledLayerHeight
[];
207 CONTENT_EXPORT
extern const char kEnableFixedPositionCreatesStackingContext
[];
208 CONTENT_EXPORT
extern const char kDisableFixedPositionCreatesStackingContext
[];
210 extern const char kEnableVisualWordMovement
[];
212 #if defined(OS_ANDROID)
213 extern const char kNetworkCountryIso
[];
214 extern const char kUseMobileUserAgent
[];
215 extern const char kGraphicsMode
[];
216 // Not actual flags, just values: for example, --graphics-mode=compositor
217 extern const char kGraphicsModeValueBasic
[];
218 extern const char kGraphicsModeValueCompositor
[];
221 #if defined(OS_POSIX)
222 extern const char kChildCleanExit
[];
225 #if defined(OS_POSIX) && !defined(OS_MACOSX)
226 extern const char kScrollPixels
[];
229 #if defined(OS_MACOSX) || defined(OS_WIN)
230 extern const char kUseSystemSSL
[];
233 extern const char kEnablePerTilePainting
[];
235 #if defined(USE_AURA)
236 CONTENT_EXPORT
extern const char kFlingTapSuppressMaxDown
[];
237 CONTENT_EXPORT
extern const char kFlingTapSuppressMaxGap
[];
238 CONTENT_EXPORT
extern const char kTestCompositor
[];
241 } // namespace switches
243 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_