PageRenderTime 57ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/content/public/common/content_switches.h

https://gitlab.com/jonnialva90/iridium-browser
C Header | 303 lines | 277 code | 15 blank | 11 comment | 2 complexity | 5210ff2ed7ae32e93b94555f98e577ef MD5 | raw file
  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.
  4. // Defines all the "content" command-line switches.
  5. #ifndef CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_
  6. #define CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_
  7. #include "build/build_config.h"
  8. #include "content/common/content_export.h"
  9. namespace switches {
  10. // All switches in alphabetical order. The switches should be documented
  11. // alongside the definition of their values in the .cc file.
  12. CONTENT_EXPORT extern const char kAcceleratedCanvas2dMSAASampleCount[];
  13. CONTENT_EXPORT extern const char kAllowFileAccessFromFiles[];
  14. CONTENT_EXPORT extern const char kAllowLoopbackInPeerConnection[];
  15. CONTENT_EXPORT extern const char kAllowNoSandboxJob[];
  16. CONTENT_EXPORT extern const char kAllowSandboxDebugging[];
  17. CONTENT_EXPORT extern const char kBlinkSettings[];
  18. CONTENT_EXPORT extern const char kBlinkPlatformLogChannels[];
  19. CONTENT_EXPORT extern const char kBrowserCrashTest[];
  20. CONTENT_EXPORT extern const char kBrowserSubprocessPath[];
  21. extern const char kDebugPluginLoading[];
  22. CONTENT_EXPORT extern const char kDefaultTileWidth[];
  23. CONTENT_EXPORT extern const char kDefaultTileHeight[];
  24. CONTENT_EXPORT extern const char kDisable2dCanvasAntialiasing[];
  25. CONTENT_EXPORT extern const char kDisable3DAPIs[];
  26. CONTENT_EXPORT extern const char kDisableBlinkFeatures[];
  27. CONTENT_EXPORT extern const char kDisableAccelerated2dCanvas[];
  28. CONTENT_EXPORT extern const char kDisableAcceleratedJpegDecoding[];
  29. CONTENT_EXPORT extern const char kDisableAcceleratedMjpegDecode[];
  30. CONTENT_EXPORT extern const char kDisableAcceleratedVideoDecode[];
  31. extern const char kDisableBackingStoreLimit[];
  32. CONTENT_EXPORT extern const char kDisablePreferCompositingToLCDText[];
  33. CONTENT_EXPORT extern const char kDisableDatabases[];
  34. CONTENT_EXPORT extern const char kDisableDelayAgnosticAec[];
  35. extern const char kDisableDirectNPAPIRequests[];
  36. CONTENT_EXPORT extern const char kDisableDistanceFieldText[];
  37. CONTENT_EXPORT extern const char kDisableDisplayList2dCanvas[];
  38. extern const char kDisableDomainBlockingFor3DAPIs[];
  39. CONTENT_EXPORT extern const char kDisableEncryptedMedia[];
  40. CONTENT_EXPORT extern const char kDisableExperimentalWebGL[];
  41. CONTENT_EXPORT extern const char kDisableFeatures[];
  42. CONTENT_EXPORT extern const char kDisableFileSystem[];
  43. CONTENT_EXPORT extern const char kDisableFlash3d[];
  44. CONTENT_EXPORT extern const char kDisableFlashStage3d[];
  45. CONTENT_EXPORT extern const char kDisableGpu[];
  46. CONTENT_EXPORT extern const char kDisableGpuCompositing[];
  47. CONTENT_EXPORT extern const char kDisableGpuEarlyInit[];
  48. CONTENT_EXPORT extern const char kDisableGpuMemoryBufferVideoFrames[];
  49. extern const char kDisableGpuProcessCrashLimit[];
  50. CONTENT_EXPORT extern const char kDisableGpuRasterization[];
  51. CONTENT_EXPORT extern const char kDisableGpuSandbox[];
  52. CONTENT_EXPORT extern const char kDisableGpuWatchdog[];
  53. CONTENT_EXPORT extern const char kDisableLowResTiling[];
  54. CONTENT_EXPORT extern const char kDisableHangMonitor[];
  55. CONTENT_EXPORT extern const char kDisableHideInactiveStackedTabCloseButtons[];
  56. extern const char kDisableHistogramCustomizer[];
  57. CONTENT_EXPORT extern const char kDisableLCDText[];
  58. CONTENT_EXPORT extern const char kEnablePrefixedEncryptedMedia[];
  59. extern const char kDisableKillAfterBadIPC[];
  60. CONTENT_EXPORT extern const char kDisableLocalStorage[];
  61. CONTENT_EXPORT extern const char kDisableLogging[];
  62. CONTENT_EXPORT extern const char kDisableMediaSource[];
  63. CONTENT_EXPORT extern const char kDisableNamespaceSandbox[];
  64. CONTENT_EXPORT extern const char kDisableNativeGpuMemoryBuffers[];
  65. CONTENT_EXPORT extern const char kDisableNotifications[];
  66. extern const char kDisablePepper3d[];
  67. CONTENT_EXPORT extern const char kDisablePermissionsAPI[];
  68. CONTENT_EXPORT extern const char kDisablePersistentGpuMemoryBuffer[];
  69. CONTENT_EXPORT extern const char kDisablePinch[];
  70. CONTENT_EXPORT extern const char kDisablePluginsDiscovery[];
  71. CONTENT_EXPORT extern const char kDisablePresentationAPI[];
  72. CONTENT_EXPORT extern const char kDisableRGBA4444Textures[];
  73. CONTENT_EXPORT extern const char kDisableReadingFromCanvas[];
  74. extern const char kDisableRemoteFonts[];
  75. extern const char kDisableRendererAccessibility[];
  76. CONTENT_EXPORT extern const char kDisableRendererBackgrounding[];
  77. CONTENT_EXPORT extern const char kDisableSeccompFilterSandbox[];
  78. CONTENT_EXPORT extern const char kDisableSetuidSandbox[];
  79. CONTENT_EXPORT extern const char kDisableSharedWorkers[];
  80. CONTENT_EXPORT extern const char kDisableSmoothScrolling[];
  81. CONTENT_EXPORT extern const char kDisableSoftwareRasterizer[];
  82. CONTENT_EXPORT extern const char kDisableSpeechAPI[];
  83. CONTENT_EXPORT extern const char kDisableSVG1DOM[];
  84. CONTENT_EXPORT extern const char kDisableThreadedCompositing[];
  85. CONTENT_EXPORT extern const char kDisableThreadedScrolling[];
  86. extern const char kDisableV8IdleTasks[];
  87. CONTENT_EXPORT extern const char kDisableWebSecurity[];
  88. extern const char kDisableXSSAuditor[];
  89. CONTENT_EXPORT extern const char kDisableZeroCopy[];
  90. CONTENT_EXPORT extern const char kDomAutomationController[];
  91. extern const char kEnable2dCanvasClipAntialiasing[];
  92. CONTENT_EXPORT extern const char kEnableAggressiveDOMStorageFlushing[];
  93. CONTENT_EXPORT extern const char kEnableBleedingEdgeRenderingFastPaths[];
  94. CONTENT_EXPORT extern const char kEnableCompositorAnimationTimelines[];
  95. CONTENT_EXPORT extern const char kEnableCredentialManagerAPI[];
  96. CONTENT_EXPORT extern const char kEnablePreferCompositingToLCDText[];
  97. CONTENT_EXPORT extern const char kEnableBlinkFeatures[];
  98. CONTENT_EXPORT extern const char kEnableBrowserSideNavigation[];
  99. CONTENT_EXPORT extern const char kEnableDisplayList2dCanvas[];
  100. CONTENT_EXPORT extern const char kEnableDistanceFieldText[];
  101. CONTENT_EXPORT extern const char kEnableDownloadResumption[];
  102. CONTENT_EXPORT extern const char kEnableExperimentalCanvasFeatures[];
  103. CONTENT_EXPORT extern const char kEnableExperimentalWebPlatformFeatures[];
  104. CONTENT_EXPORT extern const char kEnableFeatures[];
  105. CONTENT_EXPORT extern const char kEnableWebBluetooth[];
  106. extern const char kEnableGpuClientTracing[];
  107. CONTENT_EXPORT extern const char kEnableGpuMemoryBufferVideoFrames[];
  108. CONTENT_EXPORT extern const char kEnableGpuRasterization[];
  109. CONTENT_EXPORT extern const char kGpuRasterizationMSAASampleCount[];
  110. CONTENT_EXPORT extern const char kEnableLowResTiling[];
  111. CONTENT_EXPORT extern const char kEnableImageColorProfiles[];
  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 kEnablePersistentGpuMemoryBuffer[];
  117. CONTENT_EXPORT extern const char kEnablePinch[];
  118. CONTENT_EXPORT extern const char kEnablePluginPlaceholderTesting[];
  119. CONTENT_EXPORT extern const char kEnablePreciseMemoryInfo[];
  120. CONTENT_EXPORT extern const char kEnablePushMessagePayload[];
  121. CONTENT_EXPORT extern const char kEnableRGBA4444Textures[];
  122. CONTENT_EXPORT extern const char kEnableSandboxLogging[];
  123. CONTENT_EXPORT extern const char kEnableSeccompFilterSandbox[];
  124. extern const char kEnableSkiaBenchmarking[];
  125. CONTENT_EXPORT extern const char kEnableSlimmingPaintV2[];
  126. CONTENT_EXPORT extern const char kEnableSmoothScrolling[];
  127. CONTENT_EXPORT extern const char kEnableSpatialNavigation[];
  128. CONTENT_EXPORT extern const char kEnableStatsTable[];
  129. CONTENT_EXPORT extern const char kEnableStrictMixedContentChecking[];
  130. CONTENT_EXPORT extern const char kEnableStrictPowerfulFeatureRestrictions[];
  131. CONTENT_EXPORT extern const char kEnableTcpFastOpen[];
  132. CONTENT_EXPORT extern const char kEnableThreadedCompositing[];
  133. CONTENT_EXPORT extern const char kEnableTracing[];
  134. CONTENT_EXPORT extern const char kEnableTracingOutput[];
  135. CONTENT_EXPORT extern const char kEnableUserMediaScreenCapturing[];
  136. CONTENT_EXPORT extern const char kEnableViewport[];
  137. CONTENT_EXPORT extern const char kEnableVtune[];
  138. CONTENT_EXPORT extern const char kEnableWebGLDraftExtensions[];
  139. CONTENT_EXPORT extern const char kEnableWebGLImageChromium[];
  140. CONTENT_EXPORT extern const char kEnableWebVR[];
  141. CONTENT_EXPORT extern const char kEnableZeroCopy[];
  142. CONTENT_EXPORT extern const char kExplicitlyAllowedPorts[];
  143. CONTENT_EXPORT extern const char kExtraPluginDir[];
  144. CONTENT_EXPORT extern const char kForceDisplayList2dCanvas[];
  145. CONTENT_EXPORT extern const char kForceGpuRasterization[];
  146. CONTENT_EXPORT extern const char kForceOverlayFullscreenVideo[];
  147. CONTENT_EXPORT extern const char kForceRendererAccessibility[];
  148. extern const char kGpuDeviceID[];
  149. extern const char kGpuDriverVendor[];
  150. extern const char kGpuDriverVersion[];
  151. extern const char kGpuLauncher[];
  152. CONTENT_EXPORT extern const char kGpuProcess[];
  153. CONTENT_EXPORT extern const char kGpuSandboxAllowSysVShm[];
  154. CONTENT_EXPORT extern const char kGpuSandboxFailuresFatal[];
  155. CONTENT_EXPORT extern const char kGpuSandboxStartEarly[];
  156. CONTENT_EXPORT extern const char kGpuStartupDialog[];
  157. extern const char kGpuVendorID[];
  158. CONTENT_EXPORT extern const char kHostResolverRules[];
  159. CONTENT_EXPORT extern const char kIgnoreCertificateErrors[];
  160. CONTENT_EXPORT extern const char kIgnoreGpuBlacklist[];
  161. CONTENT_EXPORT extern const char kInertVisualViewport[];
  162. CONTENT_EXPORT 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. CONTENT_EXPORT extern const char kMainFrameResizesAreOrientationChanges[];
  171. extern const char kMaxUntiledLayerHeight[];
  172. extern const char kMaxUntiledLayerWidth[];
  173. extern const char kMemoryMetrics[];
  174. CONTENT_EXPORT extern const char kMuteAudio[];
  175. CONTENT_EXPORT extern const char kNoReferrers[];
  176. CONTENT_EXPORT extern const char kNoSandbox[];
  177. CONTENT_EXPORT extern const char kEnableAppContainer[];
  178. CONTENT_EXPORT extern const char kNumRasterThreads[];
  179. CONTENT_EXPORT extern const char kOverridePluginPowerSaverForTesting[];
  180. CONTENT_EXPORT extern const char kOverscrollHistoryNavigation[];
  181. extern const char kPluginLauncher[];
  182. CONTENT_EXPORT extern const char kPluginPath[];
  183. CONTENT_EXPORT extern const char kPluginProcess[];
  184. extern const char kPluginStartupDialog[];
  185. CONTENT_EXPORT extern const char kPpapiBrokerProcess[];
  186. CONTENT_EXPORT extern const char kPpapiFlashArgs[];
  187. CONTENT_EXPORT extern const char kPpapiInProcess[];
  188. extern const char kPpapiPluginLauncher[];
  189. CONTENT_EXPORT extern const char kPpapiPluginProcess[];
  190. extern const char kPpapiStartupDialog[];
  191. CONTENT_EXPORT extern const char kProcessPerSite[];
  192. CONTENT_EXPORT extern const char kProcessPerTab[];
  193. CONTENT_EXPORT extern const char kProcessType[];
  194. CONTENT_EXPORT extern const char kReduceSecurityForTesting[];
  195. CONTENT_EXPORT extern const char kReducedReferrerGranularity[];
  196. CONTENT_EXPORT extern const char kRegisterPepperPlugins[];
  197. CONTENT_EXPORT extern const char kRemoteDebuggingPort[];
  198. extern const char kRendererCmdPrefix[];
  199. CONTENT_EXPORT extern const char kRendererProcess[];
  200. CONTENT_EXPORT extern const char kRendererProcessLimit[];
  201. CONTENT_EXPORT extern const char kRendererStartupDialog[];
  202. CONTENT_EXPORT extern const char kRootLayerScrolls[];
  203. extern const char kSandboxIPCProcess[];
  204. CONTENT_EXPORT extern const char kScrollEndEffect[];
  205. extern const char kShowPaintRects[];
  206. CONTENT_EXPORT extern const char kSingleProcess[];
  207. CONTENT_EXPORT extern const char kSitePerProcess[];
  208. CONTENT_EXPORT extern const char kSkipGpuDataLoading[];
  209. CONTENT_EXPORT extern const char kStartFullscreen[];
  210. CONTENT_EXPORT extern const char kStatsCollectionController[];
  211. CONTENT_EXPORT extern const char kTabCaptureDownscaleQuality[];
  212. CONTENT_EXPORT extern const char kTabCaptureUpscaleQuality[];
  213. CONTENT_EXPORT extern const char kTestingFixedHttpPort[];
  214. CONTENT_EXPORT extern const char kTestingFixedHttpsPort[];
  215. CONTENT_EXPORT extern const char kTestType[];
  216. CONTENT_EXPORT extern const char kTouchTextSelectionStrategy[];
  217. CONTENT_EXPORT extern const char kUIPrioritizeInGpuProcess[];
  218. CONTENT_EXPORT extern const char kUseFakeUIForMediaStream[];
  219. CONTENT_EXPORT extern const char kEnableNativeGpuMemoryBuffers[];
  220. CONTENT_EXPORT extern const char kContentImageTextureTarget[];
  221. CONTENT_EXPORT extern const char kVideoImageTextureTarget[];
  222. CONTENT_EXPORT extern const char kUseMobileUserAgent[];
  223. CONTENT_EXPORT extern const char kUseNormalPriorityForTileTaskWorkerThreads[];
  224. extern const char kUseSurfaces[];
  225. CONTENT_EXPORT extern const char kDisableSurfaces[];
  226. extern const char kUtilityCmdPrefix[];
  227. CONTENT_EXPORT extern const char kUtilityProcess[];
  228. extern const char kUtilityProcessAllowedDir[];
  229. CONTENT_EXPORT extern const char kUtilityProcessEnableMDns[];
  230. CONTENT_EXPORT extern const char kUtilityProcessRunningElevated[];
  231. CONTENT_EXPORT extern const char kV8CacheOptions[];
  232. CONTENT_EXPORT extern const char kV8NativesPassedByFD[];
  233. CONTENT_EXPORT extern const char kV8SnapshotPassedByFD[];
  234. CONTENT_EXPORT extern const char kValidateInputEventStream[];
  235. CONTENT_EXPORT extern const char kWaitForDebuggerChildren[];
  236. CONTENT_EXPORT extern const char kZygoteCmdPrefix[];
  237. CONTENT_EXPORT extern const char kZygoteProcess[];
  238. #if defined(ENABLE_WEBRTC)
  239. CONTENT_EXPORT extern const char kDisableWebRtcHWDecoding[];
  240. CONTENT_EXPORT extern const char kDisableWebRtcEncryption[];
  241. CONTENT_EXPORT extern const char kDisableWebRtcHWEncoding[];
  242. CONTENT_EXPORT extern const char kEnableWebRtcDtls12[];
  243. CONTENT_EXPORT extern const char kEnableWebRtcHWH264Encoding[];
  244. CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[];
  245. CONTENT_EXPORT extern const char kWebRtcStunProbeTrialParameter[];
  246. extern const char kWebRtcMaxCaptureFramerate[];
  247. #endif
  248. #if defined(OS_ANDROID)
  249. CONTENT_EXPORT extern const char kDisableGestureRequirementForMediaPlayback[];
  250. CONTENT_EXPORT extern const char kDisableOverscrollEdgeEffect[];
  251. CONTENT_EXPORT extern const char kDisablePullToRefreshEffect[];
  252. CONTENT_EXPORT extern const char kDisableScreenOrientationLock[];
  253. CONTENT_EXPORT extern const char kEnableAndroidCompositorAnimationTimelines[];
  254. CONTENT_EXPORT extern const char kEnableLongpressDragSelection[];
  255. CONTENT_EXPORT extern const char kHideScrollbars[];
  256. extern const char kNetworkCountryIso[];
  257. CONTENT_EXPORT extern const char kRemoteDebuggingSocketName[];
  258. CONTENT_EXPORT extern const char kRendererWaitForJavaDebugger[];
  259. #endif
  260. CONTENT_EXPORT extern const char kDisableWebAudio[];
  261. #if defined(OS_CHROMEOS)
  262. CONTENT_EXPORT extern const char kDisablePanelFitting[];
  263. CONTENT_EXPORT extern const char kDisableVaapiAcceleratedVideoEncode[];
  264. #endif
  265. #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
  266. CONTENT_EXPORT extern const char kEnableSpeechDispatcher[];
  267. #endif
  268. #if defined(OS_MACOSX) && !defined(OS_IOS)
  269. extern const char kDisableCoreAnimationPlugins[];
  270. extern const char kDisableThreadedEventHandlingMac[];
  271. #endif
  272. #if defined(OS_WIN)
  273. // This switch contains the device scale factor passed to certain processes
  274. // like renderers, etc.
  275. CONTENT_EXPORT extern const char kDeviceScaleFactor[];
  276. CONTENT_EXPORT extern const char kDisableLegacyIntermediateWindow[];
  277. CONTENT_EXPORT extern const char kDisableWin32kRendererLockDown[];
  278. CONTENT_EXPORT extern const char kEnableWin32kLockDownMimeTypes[];
  279. CONTENT_EXPORT extern const char kEnableAcceleratedVpxDecode[];
  280. // Switch to pass the font cache shared memory handle to the renderer.
  281. CONTENT_EXPORT extern const char kFontCacheSharedHandle[];
  282. CONTENT_EXPORT extern const char kMemoryPressureThresholdsMb[];
  283. CONTENT_EXPORT extern const char kTraceExportEventsToETW[];
  284. #endif
  285. // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
  286. // alphabetical order, or in one of the ifdefs (also in order in each section).
  287. } // namespace switches
  288. #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_