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 #include "content/public/common/content_switches.h"
9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
10 // have an effect. 0 disables MSAA.
11 const char kAcceleratedCanvas2dMSAASampleCount
[] = "canvas-msaa-sample-count";
13 // By default, file:// URIs cannot read other file:// URIs. This is an
14 // override for developers who need the old behavior for testing.
15 const char kAllowFileAccessFromFiles
[] = "allow-file-access-from-files";
17 // Allows loopback interface to be added in network list for peer connection.
18 const char kAllowLoopbackInPeerConnection
[] =
19 "allow-loopback-in-peer-connection";
21 // Enables the sandboxed processes to run without a job object assigned to them.
22 // This flag is required to allow Chrome to run in RemoteApps or Citrix. This
23 // flag can reduce the security of the sandboxed processes and allow them to do
24 // certain API calls like shut down Windows or access the clipboard. Also we
25 // lose the chance to kill some processes until the outer job that owns them
27 const char kAllowNoSandboxJob
[] = "allow-no-sandbox-job";
29 // Allows debugging of sandboxed processes (see zygote_main_linux.cc).
30 const char kAllowSandboxDebugging
[] = "allow-sandbox-debugging";
32 // Choose which logging channels in blink platform to activate. See
33 // Logging.cpp in blink's Source/platform for a list of available channels.
34 const char kBlinkPlatformLogChannels
[] = "blink-platform-log-channels";
36 // Set blink settings. Format is <name>[=<value],<name>[=<value>],...
37 // The names are declared in Settings.in. For boolean type, use "true", "false",
38 // or omit '=<value>' part to set to true. For enum type, use the int value of
39 // the enum value. Applied after other command line flags and prefs.
40 const char kBlinkSettings
[] = "blink-settings";
42 // Causes the browser process to crash on startup.
43 const char kBrowserCrashTest
[] = "crash-test";
45 // Path to the exe to run for the renderer and plugin subprocesses.
46 const char kBrowserSubprocessPath
[] = "browser-subprocess-path";
48 // Dumps extra logging about plugin loading to the log file.
49 const char kDebugPluginLoading
[] = "debug-plugin-loading";
51 // Sets the tile size used by composited layers.
52 const char kDefaultTileWidth
[] = "default-tile-width";
53 const char kDefaultTileHeight
[] = "default-tile-height";
55 // Disable antialiasing on 2d canvas.
56 const char kDisable2dCanvasAntialiasing
[] = "disable-canvas-aa";
58 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
59 // This is controlled by policy and is kept separate from the other
60 // enable/disable switches to avoid accidentally regressing the policy
61 // support for controlling access to these APIs.
62 const char kDisable3DAPIs
[] = "disable-3d-apis";
64 // Disable gpu-accelerated 2d canvas.
65 const char kDisableAccelerated2dCanvas
[] = "disable-accelerated-2d-canvas";
67 // Disable hardware acceleration of mjpeg decode for captured frame, where
69 const char kDisableAcceleratedMjpegDecode
[] =
70 "disable-accelerated-mjpeg-decode";
72 // Disables hardware acceleration of video decode, where available.
73 const char kDisableAcceleratedVideoDecode
[] =
74 "disable-accelerated-video-decode";
76 // Disable limits on the number of backing stores. Can prevent blinking for
77 // users with many windows/tabs and lots of memory.
78 const char kDisableBackingStoreLimit
[] = "disable-backing-store-limit";
80 // Disable one or more Blink runtime-enabled features.
81 // Use names from RuntimeEnabledFeatures.in, separated by commas.
82 // Applied after kEnableBlinkFeatures, and after other flags that change these
84 const char kDisableBlinkFeatures
[] = "disable-blink-features";
86 // Disable the creation of compositing layers when it would prevent LCD text.
87 const char kDisablePreferCompositingToLCDText
[] =
88 "disable-prefer-compositing-to-lcd-text";
90 // Disables HTML5 DB support.
91 const char kDisableDatabases
[] = "disable-databases";
93 // Disables Delay Agnostic AEC in WebRTC.
94 const char kDisableDelayAgnosticAec
[] = "disable-delay-agnostic-aec";
96 // Disables delegated renderer.
97 const char kDisableDelegatedRenderer
[] = "disable-delegated-renderer";
99 // Handles URL requests by NPAPI plugins through the renderer.
100 const char kDisableDirectNPAPIRequests
[] = "disable-direct-npapi-requests";
102 // Disable the per-domain blocking for 3D APIs after GPU reset.
103 // This switch is intended only for tests.
104 const char kDisableDomainBlockingFor3DAPIs
[] =
105 "disable-domain-blocking-for-3d-apis";
107 // Disable experimental WebGL support.
108 const char kDisableExperimentalWebGL
[] = "disable-webgl";
110 // Disable FileSystem API.
111 const char kDisableFileSystem
[] = "disable-file-system";
113 // Disable 3D inside of flapper.
114 const char kDisableFlash3d
[] = "disable-flash-3d";
116 // Disable Stage3D inside of flapper.
117 const char kDisableFlashStage3d
[] = "disable-flash-stage3d";
119 // Disables GPU hardware acceleration. If software renderer is not in place,
120 // then the GPU process won't launch.
121 const char kDisableGpu
[] = "disable-gpu";
123 // Prevent the compositor from using its GPU implementation.
124 const char kDisableGpuCompositing
[] = "disable-gpu-compositing";
126 // Disable proactive early init of GPU process.
127 const char kDisableGpuEarlyInit
[] = "disable-gpu-early-init";
129 // Disable GpuMemoryBuffer backed VideoFrames.
130 const char kDisableGpuMemoryBufferVideoFrames
[] =
131 "disable-gpu-memory-buffer-video-frames";
133 // Disable the limit on the number of times the GPU process may be restarted
134 // This switch is intended only for tests.
135 const char kDisableGpuProcessCrashLimit
[] = "disable-gpu-process-crash-limit";
137 // Disable GPU rasterization, i.e. rasterize on the CPU only.
138 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
139 const char kDisableGpuRasterization
[] = "disable-gpu-rasterization";
141 // When using CPU rasterizing disable low resolution tiling. This uses
142 // less power, particularly during animations, but more white may be seen
143 // during fast scrolling especially on slower devices.
144 const char kDisableLowResTiling
[] = "disable-low-res-tiling";
146 // Disable the GPU process sandbox.
147 const char kDisableGpuSandbox
[] = "disable-gpu-sandbox";
149 // Disable the thread that crashes the GPU process if it stops responding to
151 const char kDisableGpuWatchdog
[] = "disable-gpu-watchdog";
153 // Suppresses hang monitor dialogs in renderer processes. This may allow slow
154 // unload handlers on a page to prevent the tab from closing, but the Task
155 // Manager can be used to terminate the offending process in this case.
156 const char kDisableHangMonitor
[] = "disable-hang-monitor";
158 // Disable hiding the close buttons of inactive tabs when the tabstrip is in
160 const char kDisableHideInactiveStackedTabCloseButtons
[] =
161 "disable-hide-inactive-stacked-tab-close-buttons";
163 // Disable the RenderThread's HistogramCustomizer.
164 const char kDisableHistogramCustomizer
[] = "disable-histogram-customizer";
166 // Don't kill a child process when it sends a bad IPC message. Apart
167 // from testing, it is a bad idea from a security perspective to enable
169 const char kDisableKillAfterBadIPC
[] = "disable-kill-after-bad-ipc";
171 // Enables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
172 const char kEnablePrefixedEncryptedMedia
[] =
173 "enable-prefixed-encrypted-media";
175 // Disables LCD text.
176 const char kDisableLCDText
[] = "disable-lcd-text";
178 // Disables distance field text.
179 const char kDisableDistanceFieldText
[] = "disable-distance-field-text";
181 // Disable LocalStorage.
182 const char kDisableLocalStorage
[] = "disable-local-storage";
184 // Force logging to be disabled. Logging is enabled by default in debug
186 const char kDisableLogging
[] = "disable-logging";
188 // Disables Media Source API (i.e., the MediaSource object).
189 const char kDisableMediaSource
[] = "disable-media-source";
191 // Disables usage of the namespace sandbox.
192 const char kDisableNamespaceSandbox
[] = "disable-namespace-sandbox";
194 // Disables native GPU memory buffer support.
195 const char kDisableNativeGpuMemoryBuffers
[] =
196 "disable-native-gpu-memory-buffers";
198 // Disables the Web Notification and the Push APIs.
199 const char kDisableNotifications
[] = "disable-notifications";
202 const char kDisablePepper3d
[] = "disable-pepper-3d";
204 // Disables the Permissions API.
205 const char kDisablePermissionsAPI
[] = "disable-permissions-api";
207 // Disables the use of persistent GPU memory buffers for partial raster.
208 const char kDisablePersistentGpuMemoryBuffer
[] =
209 "disable-persistent-gpu-memory-buffer";
211 // Disables compositor-accelerated touch-screen pinch gestures.
212 const char kDisablePinch
[] = "disable-pinch";
214 // Disable discovering third-party plugins. Effectively loading only
215 // ones shipped with the browser plus third-party ones as specified by
216 // --extra-plugin-dir and --load-plugin switches.
217 const char kDisablePluginsDiscovery
[] = "disable-plugins-discovery";
219 // Disables the Presentation API.
220 const char kDisablePresentationAPI
[] = "disable-presentation-api";
222 // Disables RGBA_4444 textures.
223 const char kDisableRGBA4444Textures
[] = "disable-rgba-4444-textures";
225 // Taints all <canvas> elements, regardless of origin.
226 const char kDisableReadingFromCanvas
[] = "disable-reading-from-canvas";
228 // Disables remote web font support. SVG font should always work whether this
229 // option is specified or not.
230 const char kDisableRemoteFonts
[] = "disable-remote-fonts";
232 // Turns off the accessibility in the renderer.
233 const char kDisableRendererAccessibility
[] = "disable-renderer-accessibility";
235 // Prevent renderer process backgrounding when set.
236 const char kDisableRendererBackgrounding
[] = "disable-renderer-backgrounding";
238 // Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
239 const char kDisableSeccompFilterSandbox
[] = "disable-seccomp-filter-sandbox";
241 // Disable the setuid sandbox (Linux only).
242 const char kDisableSetuidSandbox
[] = "disable-setuid-sandbox";
244 // Disable shared workers.
245 const char kDisableSharedWorkers
[] = "disable-shared-workers";
247 // Disable smooth scrolling for testing.
248 const char kDisableSmoothScrolling
[] = "disable-smooth-scrolling";
250 // Disables the use of a 3D software rasterizer.
251 const char kDisableSoftwareRasterizer
[] = "disable-software-rasterizer";
253 // Disables the Web Speech API.
254 const char kDisableSpeechAPI
[] = "disable-speech-api";
256 // Disables SVG 1.1 DOM.
257 const char kDisableSVG1DOM
[] = "disable-svg1dom";
259 // Disable multithreaded GPU compositing of web content.
260 const char kDisableThreadedCompositing
[] = "disable-threaded-compositing";
262 // Disable multithreaded, compositor scrolling of web content.
263 const char kDisableThreadedScrolling
[] = "disable-threaded-scrolling";
265 // Disable V8 idle tasks.
266 const char kDisableV8IdleTasks
[] = "disable-v8-idle-tasks";
268 // Don't enforce the same-origin policy. (Used by people testing their sites.)
269 const char kDisableWebSecurity
[] = "disable-web-security";
271 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
272 const char kDisableXSSAuditor
[] = "disable-xss-auditor";
274 // Specifies if the |DOMAutomationController| needs to be bound in the
275 // renderer. This binding happens on per-frame basis and hence can potentially
276 // be a performance bottleneck. One should only enable it when automating dom
278 const char kDomAutomationController
[] = "dom-automation";
280 // Enable antialiasing on 2d canvas clips (as opposed to draw operations)
281 const char kEnable2dCanvasClipAntialiasing
[] = "enable-2d-canvas-clip-aa";
283 // Disable partially decoding jpeg images using the GPU.
284 // At least YUV decoding will be accelerated when not using this flag.
285 // Has no effect unless GPU rasterization is enabled.
286 const char kDisableAcceleratedJpegDecoding
[] =
287 "disable-accelerated-jpeg-decoding";
289 // Enable bleeding-edge code to make Chrome draw content faster. The changes
290 // behind this path are very likely to break lots of content.
291 // ** DO NOT use this flag unless you know what you are doing. **
292 const char kEnableBleedingEdgeRenderingFastPaths
[] =
293 "enable-bleeding-edge-rendering-fast-paths";
295 // Enables new cc/animation system (Project Heaviside). crbug.com/394772
296 const char kEnableCompositorAnimationTimelines
[] =
297 "enable-compositor-animation-timelines";
300 const char kEnableLCDText
[] = "enable-lcd-text";
302 // Enables using signed distance fields when rendering text.
303 // Only valid if GPU rasterization is enabled as well.
304 const char kEnableDistanceFieldText
[] = "enable-distance-field-text";
306 // Enable the experimental Credential Manager JavaScript API.
307 const char kEnableCredentialManagerAPI
[] = "enable-credential-manager-api";
309 // Enable the creation of compositing layers when it would prevent LCD text.
310 const char kEnablePreferCompositingToLCDText
[] =
311 "enable-prefer-compositing-to-lcd-text";
313 // Disable one or more Blink runtime-enabled features.
314 // Use names from RuntimeEnabledFeatures.in, separated by commas.
315 // Applied before kDisableBlinkFeatures, and after other flags that change these
317 const char kEnableBlinkFeatures
[] = "enable-blink-features";
319 // PlzNavigate: Use the experimental browser-side navigation path.
320 const char kEnableBrowserSideNavigation
[] = "enable-browser-side-navigation";
322 // Enables Delay Agnostic AEC in WebRTC.
323 const char kEnableDelayAgnosticAec
[] = "enable-delay-agnostic-aec";
325 // Enables delegated renderer.
326 const char kEnableDelegatedRenderer
[] = "enable-delegated-renderer";
328 // Enables display list based 2d canvas implementation. Options:
329 // 1. Enable: allow browser to use display list for 2d canvas (browser makes
331 // 2. Force: browser always uses display list for 2d canvas.
332 const char kEnableDisplayList2dCanvas
[] = "enable-display-list-2d-canvas";
333 const char kForceDisplayList2dCanvas
[] = "force-display-list-2d-canvas";
334 const char kDisableDisplayList2dCanvas
[] = "disable-display-list-2d-canvas";
336 // Enables restarting interrupted downloads.
337 const char kEnableDownloadResumption
[] = "enable-download-resumption";
339 // Disables (unprefixed) Encrypted Media Extensions.
340 const char kDisableEncryptedMedia
[] = "disable-encrypted-media";
342 // Enable experimental canvas features, e.g. canvas 2D context attributes
343 const char kEnableExperimentalCanvasFeatures
[] =
344 "enable-experimental-canvas-features";
346 // Enables Web Platform features that are in development.
347 const char kEnableExperimentalWebPlatformFeatures
[] =
348 "enable-experimental-web-platform-features";
350 // Enable Web Bluetooth.
351 const char kEnableWebBluetooth
[] = "enable-web-bluetooth";
353 // Enables TRACE for GL calls in the renderer.
354 const char kEnableGpuClientTracing
[] = "enable-gpu-client-tracing";
356 // Enable GpuMemoryBuffer backed VideoFrames.
357 const char kEnableGpuMemoryBufferVideoFrames
[] =
358 "enable-gpu-memory-buffer-video-frames";
360 // Allow heuristics to determine when a layer tile should be drawn with the
361 // Skia GPU backend. Only valid with GPU accelerated compositing +
362 // impl-side painting.
363 const char kEnableGpuRasterization
[] = "enable-gpu-rasterization";
365 // When using CPU rasterizing generate low resolution tiling. Low res
366 // tiles may be displayed during fast scrolls especially on slower devices.
367 const char kEnableLowResTiling
[] = "enable-low-res-tiling";
369 // Dynamically apply color profiles to web content images.
370 const char kEnableImageColorProfiles
[] = "enable-image-color-profiles";
372 // Force logging to be enabled. Logging is disabled by default in release
374 const char kEnableLogging
[] = "enable-logging";
376 // Enables the memory benchmarking extension
377 const char kEnableMemoryBenchmarking
[] = "enable-memory-benchmarking";
379 // Enables the network information API.
380 const char kEnableNetworkInformation
[] = "enable-network-information";
382 // Enables the use of persistent GPU memory buffers for partial raster.
383 const char kEnablePersistentGpuMemoryBuffer
[] =
384 "enable-persistent-gpu-memory-buffer";
386 // Enables compositor-accelerated touch-screen pinch gestures.
387 const char kEnablePinch
[] = "enable-pinch";
389 // Enables testing features of the Plugin Placeholder. For internal use only.
390 const char kEnablePluginPlaceholderTesting
[] =
391 "enable-plugin-placeholder-testing";
393 // Make the values returned to window.performance.memory more granular and more
394 // up to date in shared worker. Without this flag, the memory information is
395 // still available, but it is bucketized and updated less frequently. This flag
396 // also applys to workers.
397 const char kEnablePreciseMemoryInfo
[] = "enable-precise-memory-info";
399 // Enables payloads for received push messages when using the W3C Push API.
400 const char kEnablePushMessagePayload
[] = "enable-push-message-payload";
402 // Enables RGBA_4444 textures.
403 const char kEnableRGBA4444Textures
[] = "enable-rgba-4444-textures";
405 // Set options to cache V8 data. (off, preparse data, or code)
406 const char kV8CacheOptions
[] = "v8-cache-options";
408 // Signals that the V8 natives file has been transfered to the child process
409 // by a file descriptor.
410 const char kV8NativesPassedByFD
[] = "v8-natives-passed-by-fd";
412 // Signals that the V8 startup snapshot file has been transfered to the child
413 // process by a file descriptor.
414 const char kV8SnapshotPassedByFD
[] = "v8-snapshot-passed-by-fd";
416 // Cause the OS X sandbox write to syslog every time an access to a resource
417 // is denied by the sandbox.
418 const char kEnableSandboxLogging
[] = "enable-sandbox-logging";
420 // Enables seccomp-bpf support for Android. Requires experimental kernel
421 // support. <http://crbug.com/166704>
422 const char kEnableSeccompFilterSandbox
[] =
423 "enable-seccomp-filter-sandbox";
425 // Enables the Skia benchmarking extension
426 const char kEnableSkiaBenchmarking
[] = "enable-skia-benchmarking";
428 // Enables slimming paint phase 2: http://www.chromium.org/blink/slimming-paint
429 const char kEnableSlimmingPaintV2
[] = "enable-slimming-paint-v2";
431 // On platforms that support it, enables smooth scroll animation.
432 const char kEnableSmoothScrolling
[] = "enable-smooth-scrolling";
434 // Enable spatial navigation
435 const char kEnableSpatialNavigation
[] = "enable-spatial-navigation";
437 // Enables StatsTable, logging statistics to a global named shared memory table.
438 const char kEnableStatsTable
[] = "enable-stats-table";
440 // Blocks all insecure requests from secure contexts, and prevents the user
441 // from overriding that decision.
442 const char kEnableStrictMixedContentChecking
[] =
443 "enable-strict-mixed-content-checking";
445 // Blocks insecure usage of number of powerful features (geolocation, for
446 // example) that we haven't yet deprecated for the web at large.
447 const char kEnableStrictPowerfulFeatureRestrictions
[] =
448 "enable-strict-powerful-feature-restrictions";
450 // Enable use of experimental TCP sockets API for sending data in the
452 const char kEnableTcpFastOpen
[] = "enable-tcp-fastopen";
454 // Enabled threaded compositing for layout tests.
455 const char kEnableThreadedCompositing
[] = "enable-threaded-compositing";
457 // Enable tracing during the execution of browser tests.
458 const char kEnableTracing
[] = "enable-tracing";
460 // The filename to write the output of the test tracing to.
461 const char kEnableTracingOutput
[] = "enable-tracing-output";
463 // Enable screen capturing support for MediaStream API.
464 const char kEnableUserMediaScreenCapturing
[] =
465 "enable-usermedia-screen-capturing";
467 // Enables the use of the @viewport CSS rule, which allows
468 // pages to control aspects of their own layout. This also turns on touch-screen
470 const char kEnableViewport
[] = "enable-viewport";
472 // Enable the Vtune profiler support.
473 const char kEnableVtune
[] = "enable-vtune-support";
475 // Enables WebGL extensions not yet approved by the community.
476 const char kEnableWebGLDraftExtensions
[] = "enable-webgl-draft-extensions";
478 // Enables WebGL rendering into a scanout buffer for overlay support.
479 const char kEnableWebGLImageChromium
[] = "enable-webgl-image-chromium";
481 // Enables interaction with virtual reality devices.
482 const char kEnableWebVR
[] = "enable-webvr";
484 // Enable rasterizer that writes directly to GPU memory associated with tiles.
485 const char kEnableZeroCopy
[] = "enable-zero-copy";
487 // Explicitly allows additional ports using a comma-separated list of port
489 const char kExplicitlyAllowedPorts
[] = "explicitly-allowed-ports";
491 // Load NPAPI plugins from the specified directory.
492 const char kExtraPluginDir
[] = "extra-plugin-dir";
494 // This option can be used to force field trials when testing changes locally.
495 // The argument is a list of name and value pairs, separated by slashes. If a
496 // trial name is prefixed with an asterisk, that trial will start activated.
497 // For example, the following argument defines two trials, with the second one
498 // activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/"
499 // This option is also used by the browser to send the list of trials to
500 // renderers, using the same format. See
501 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
502 const char kForceFieldTrials
[] = "force-fieldtrials";
504 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
505 // accelerated compositing + impl-side painting. Overrides the
506 // kEnableGpuRasterization flag.
507 const char kForceGpuRasterization
[] = "force-gpu-rasterization";
509 // The number of multisample antialiasing samples for GPU rasterization.
510 // Requires MSAA support on GPU to have an effect. 0 disables MSAA.
511 const char kGpuRasterizationMSAASampleCount
[] =
512 "gpu-rasterization-msaa-sample-count";
514 // Forces use of hardware overlay for fullscreen video playback. Useful for
515 // testing the Android overlay fullscreen functionality on other platforms.
516 const char kForceOverlayFullscreenVideo
[] = "force-overlay-fullscreen-video";
518 // Force renderer accessibility to be on instead of enabling it on demand when
519 // a screen reader is detected. The disable-renderer-accessibility switch
520 // overrides this if present.
521 const char kForceRendererAccessibility
[] = "force-renderer-accessibility";
523 // Passes gpu device_id from browser process to GPU process.
524 const char kGpuDeviceID
[] = "gpu-device-id";
526 // Passes gpu driver_vendor from browser process to GPU process.
527 const char kGpuDriverVendor
[] = "gpu-driver-vendor";
529 // Passes gpu driver_version from browser process to GPU process.
530 const char kGpuDriverVersion
[] = "gpu-driver-version";
532 // Extra command line options for launching the GPU process (normally used
533 // for debugging). Use like renderer-cmd-prefix.
534 const char kGpuLauncher
[] = "gpu-launcher";
536 // Makes this process a GPU sub-process.
537 const char kGpuProcess
[] = "gpu-process";
539 // Allows shmat() system call in the GPU sandbox.
540 const char kGpuSandboxAllowSysVShm
[] = "gpu-sandbox-allow-sysv-shm";
542 // Makes GPU sandbox failures fatal.
543 const char kGpuSandboxFailuresFatal
[] = "gpu-sandbox-failures-fatal";
545 // Starts the GPU sandbox before creating a GL context.
546 const char kGpuSandboxStartEarly
[] = "gpu-sandbox-start-early";
548 // Causes the GPU process to display a dialog on launch.
549 const char kGpuStartupDialog
[] = "gpu-startup-dialog";
551 // Passes gpu vendor_id from browser process to GPU process.
552 const char kGpuVendorID
[] = "gpu-vendor-id";
554 // These mappings only apply to the host resolver.
555 const char kHostResolverRules
[] = "host-resolver-rules";
557 // Ignores certificate-related errors.
558 const char kIgnoreCertificateErrors
[] = "ignore-certificate-errors";
560 // Ignores GPU blacklist.
561 const char kIgnoreGpuBlacklist
[] = "ignore-gpu-blacklist";
563 // Run the GPU process as a thread in the browser process.
564 const char kInProcessGPU
[] = "in-process-gpu";
566 // Overrides the timeout, in seconds, that a child process waits for a
567 // connection from the browser before killing itself.
568 const char kIPCConnectionTimeout
[] = "ipc-connection-timeout";
570 // Specifies the flags passed to JS engine
571 const char kJavaScriptFlags
[] = "js-flags";
573 // Load an NPAPI plugin from the specified path.
574 const char kLoadPlugin
[] = "load-plugin";
576 // Logs GPU control list decisions when enforcing blacklist rules.
577 const char kLogGpuControlListDecisions
[] = "log-gpu-control-list-decisions";
579 // Sets the minimum log level. Valid values are from 0 to 3:
580 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
581 const char kLoggingLevel
[] = "log-level";
583 // Enables saving net log events to a file and sets the file name to use.
584 const char kLogNetLog
[] = "log-net-log";
586 // Make plugin processes log their sent and received messages to VLOG(1).
587 const char kLogPluginMessages
[] = "log-plugin-messages";
589 // Resizes of the main frame are caused by changing between landscape and
590 // portrait mode (i.e. Android) so the page should be rescaled to fit.
591 const char kMainFrameResizesAreOrientationChanges
[] =
592 "main-frame-resizes-are-orientation-changes";
594 // Sets the width and height above which a composited layer will get tiled.
595 const char kMaxUntiledLayerHeight
[] = "max-untiled-layer-height";
596 const char kMaxUntiledLayerWidth
[] = "max-untiled-layer-width";
598 // Sample memory usage with high frequency and store the results to the
599 // Renderer.Memory histogram. Used in memory tests.
600 const char kMemoryMetrics
[] = "memory-metrics";
602 // Mutes audio sent to the audio device so it is not audible during
603 // automated testing.
604 const char kMuteAudio
[] = "mute-audio";
606 // Don't send HTTP-Referer headers.
607 const char kNoReferrers
[] = "no-referrers";
609 // Disables the sandbox for all process types that are normally sandboxed.
610 const char kNoSandbox
[] = "no-sandbox";
612 // Enables appcontainer/lowbox for renderer on Win8+ platforms.
613 const char kEnableAppContainer
[] = "enable-appcontainer";
615 // Number of worker threads used to rasterize content.
616 const char kNumRasterThreads
[] = "num-raster-threads";
618 // Override the behavior of plugin throttling for testing.
619 // By default the throttler is only enabled for a hard-coded list of plugins.
620 // Set the value to 'never' to disable throttling.
621 // Set the value to 'ignore-list' to ignore the hard-coded list.
622 // Set the value to 'always' to always throttle every plugin instance.
623 const char kOverridePluginPowerSaverForTesting
[] =
624 "override-plugin-power-saver-for-testing";
626 // Controls the behavior of history navigation in response to horizontal
628 // Set the value to '0' to disable.
629 // Set the value to '1' to enable the behavior where pages slide in and out in
630 // response to the horizontal overscroll gesture and a screenshot of the target
632 // Set the value to '2' to enable the simplified overscroll UI where a
633 // navigation arrow slides in from the side of the screen in response to the
634 // horizontal overscroll gesture.
636 const char kOverscrollHistoryNavigation
[] =
637 "overscroll-history-navigation";
639 // Specifies a command that should be used to launch the plugin process. Useful
640 // for running the plugin process through purify or quantify. Ex:
641 // --plugin-launcher="path\to\purify /Run=yes"
642 const char kPluginLauncher
[] = "plugin-launcher";
644 // Tells the plugin process the path of the plugin to load
645 const char kPluginPath
[] = "plugin-path";
647 // Causes the process to run as a plugin subprocess.
648 const char kPluginProcess
[] = "plugin";
650 // Causes the plugin process to display a dialog on launch.
651 const char kPluginStartupDialog
[] = "plugin-startup-dialog";
653 // Argument to the process type that indicates a PPAPI broker process type.
654 const char kPpapiBrokerProcess
[] = "ppapi-broker";
656 // "Command-line" arguments for the PPAPI Flash; used for debugging options.
657 const char kPpapiFlashArgs
[] = "ppapi-flash-args";
659 // Runs PPAPI (Pepper) plugins in-process.
660 const char kPpapiInProcess
[] = "ppapi-in-process";
662 // Like kPluginLauncher for PPAPI plugins.
663 const char kPpapiPluginLauncher
[] = "ppapi-plugin-launcher";
665 // Argument to the process type that indicates a PPAPI plugin process type.
666 const char kPpapiPluginProcess
[] = "ppapi";
668 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use
669 // --no-sandbox as well or the sandbox won't allow the dialog to display.
670 const char kPpapiStartupDialog
[] = "ppapi-startup-dialog";
672 // Runs a single process for each site (i.e., group of pages from the same
673 // registered domain) the user visits. We default to using a renderer process
674 // for each site instance (i.e., group of pages from the same registered
675 // domain with script connections to each other).
676 const char kProcessPerSite
[] = "process-per-site";
678 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
679 // renderer process. We default to using a renderer process for each
680 // site instance (i.e., group of pages from the same registered domain with
681 // script connections to each other).
682 const char kProcessPerTab
[] = "process-per-tab";
684 // The value of this switch determines whether the process is started as a
685 // renderer or plugin host. If it's empty, it's the browser.
686 const char kProcessType
[] = "type";
688 // Enables more web features over insecure connections. Designed to be used
689 // for testing purposes only.
690 const char kReduceSecurityForTesting
[] = "reduce-security-for-testing";
692 // Register Pepper plugins (see pepper_plugin_list.cc for its format).
693 const char kRegisterPepperPlugins
[] = "register-pepper-plugins";
695 // Enables remote debug over HTTP on the specified port.
696 const char kRemoteDebuggingPort
[] = "remote-debugging-port";
698 // The contents of this flag are prepended to the renderer command line.
699 // Useful values might be "valgrind" or "xterm -e gdb --args".
700 const char kRendererCmdPrefix
[] = "renderer-cmd-prefix";
702 // Causes the process to run as renderer instead of as browser.
703 const char kRendererProcess
[] = "renderer";
705 // Overrides the default/calculated limit to the number of renderer processes.
706 // Very high values for this setting can lead to high memory/resource usage
708 const char kRendererProcessLimit
[] = "renderer-process-limit";
710 // Causes the renderer process to display a dialog on launch.
711 const char kRendererStartupDialog
[] = "renderer-startup-dialog";
713 // Reduce the default `referer` header's granularity.
714 const char kReducedReferrerGranularity
[] =
715 "reduced-referrer-granularity";
717 // Handles frame scrolls via the root RenderLayer instead of the FrameView.
718 const char kRootLayerScrolls
[] = "root-layer-scrolls";
720 // Causes the process to run as a sandbox IPC subprocess.
721 const char kSandboxIPCProcess
[] = "sandbox-ipc";
723 // Enables or disables scroll end effect in response to vertical overscroll.
724 // Set the value to '1' to enable the feature, and set to '0' to disable.
725 // Defaults to disabled.
726 const char kScrollEndEffect
[] = "scroll-end-effect";
728 // Visibly render a border around paint rects in the web page to help debug
729 // and study painting behavior.
730 const char kShowPaintRects
[] = "show-paint-rects";
732 // Runs the renderer and plugins in the same process as the browser
733 const char kSingleProcess
[] = "single-process";
735 // Enforces a one-site-per-process security policy:
736 // * Each renderer process, for its whole lifetime, is dedicated to rendering
737 // pages for just one site.
738 // * Thus, pages from different sites are never in the same process.
739 // * A renderer process's access rights are restricted based on its site.
740 // * All cross-site navigations force process swaps.
741 // * <iframe>s are rendered out-of-process whenever the src= is cross-site.
743 // More details here:
744 // http://www.chromium.org/developers/design-documents/site-isolation
745 const char kSitePerProcess
[] = "site-per-process";
747 // Skip gpu info collection, blacklist loading, and blacklist auto-update
748 // scheduling at browser startup time.
749 // Therefore, all GPU features are available, and about:gpu page shows empty
750 // content. The switch is intended only for layout tests.
751 // TODO(gab): Get rid of this switch entirely.
752 const char kSkipGpuDataLoading
[] = "skip-gpu-data-loading";
754 // Specifies if the browser should start in fullscreen mode, like if the user
755 // had pressed F11 right after startup.
756 const char kStartFullscreen
[] = "start-fullscreen";
758 // Specifies if the |StatsCollectionController| needs to be bound in the
759 // renderer. This binding happens on per-frame basis and hence can potentially
760 // be a performance bottleneck. One should only enable it when running a test
761 // that needs to access the provided statistics.
762 const char kStatsCollectionController
[] =
763 "enable-stats-collection-bindings";
765 // Upscale defaults to "good".
766 const char kTabCaptureDownscaleQuality
[] = "tab-capture-downscale-quality";
768 // Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
769 // One flag for upscaling, one for downscaling.
770 // Upscale defaults to "best".
771 const char kTabCaptureUpscaleQuality
[] = "tab-capture-upscale-quality";
773 // Allows for forcing socket connections to http/https to use fixed ports.
774 const char kTestingFixedHttpPort
[] = "testing-fixed-http-port";
775 const char kTestingFixedHttpsPort
[] = "testing-fixed-https-port";
777 // Type of the current test harness ("browser" or "ui").
778 const char kTestType
[] = "test-type";
780 // Controls how text selection granularity changes when touch text selection
781 // handles are dragged. Should be "character" or "direction". If not specified,
782 // the platform default is used.
783 const char kTouchTextSelectionStrategy
[] = "touch-selection-strategy";
785 // Prioritizes the UI's command stream in the GPU process
786 const char kUIPrioritizeInGpuProcess
[] = "ui-prioritize-in-gpu-process";
788 // Bypass the media stream infobar by selecting the default device for media
789 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
790 const char kUseFakeUIForMediaStream
[] = "use-fake-ui-for-media-stream";
792 // Enable native GPU memory buffer support when available.
793 const char kEnableNativeGpuMemoryBuffers
[] = "enable-native-gpu-memory-buffers";
795 // Texture target for CHROMIUM_image backed content textures.
796 const char kContentImageTextureTarget
[] = "content-image-texture-target";
798 // Texture target for CHROMIUM_image backed video frame textures.
799 const char kVideoImageTextureTarget
[] = "video-image-texture-target";
801 // Set when Chromium should use a mobile user agent.
802 const char kUseMobileUserAgent
[] = "use-mobile-user-agent";
804 // Use normal priority for tile task worker threads. Otherwise they may
805 // be run at background priority on some platforms.
806 const char kUseNormalPriorityForTileTaskWorkerThreads
[] =
807 "use-normal-priority-for-tile-task-worker-threads";
809 // Use the new surfaces system to handle compositor delegation.
810 const char kUseSurfaces
[] = "use-surfaces";
812 // Disable the use of the new surfaces system to handle compositor delegation.
813 const char kDisableSurfaces
[] = "disable-surfaces";
815 // The contents of this flag are prepended to the utility process command line.
816 // Useful values might be "valgrind" or "xterm -e gdb --args".
817 const char kUtilityCmdPrefix
[] = "utility-cmd-prefix";
819 // Causes the process to run as a utility subprocess.
820 const char kUtilityProcess
[] = "utility";
822 // The utility process is sandboxed, with access to one directory. This flag
823 // specifies the directory that can be accessed.
824 const char kUtilityProcessAllowedDir
[] = "utility-allowed-dir";
826 // Allows MDns to access network in sandboxed process.
827 const char kUtilityProcessEnableMDns
[] = "utility-enable-mdns";
829 const char kUtilityProcessRunningElevated
[] = "utility-run-elevated";
831 // In debug builds, asserts that the stream of input events is valid.
832 const char kValidateInputEventStream
[] = "validate-input-event-stream";
834 // Will add kWaitForDebugger to every child processes. If a value is passed, it
835 // will be used as a filter to determine if the child process should have the
836 // kWaitForDebugger flag passed on or not.
837 const char kWaitForDebuggerChildren
[] = "wait-for-debugger-children";
839 // The prefix used when starting the zygote process. (i.e. 'gdb --args')
840 const char kZygoteCmdPrefix
[] = "zygote-cmd-prefix";
842 // Causes the process to run as a renderer zygote.
843 const char kZygoteProcess
[] = "zygote";
845 #if defined(ENABLE_WEBRTC)
846 // Disables HW decode acceleration for WebRTC.
847 const char kDisableWebRtcHWDecoding
[] = "disable-webrtc-hw-decoding";
849 // Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
850 // ignores this switch on its stable and beta channels.
851 const char kDisableWebRtcEncryption
[] = "disable-webrtc-encryption";
853 // Disables HW encode acceleration for WebRTC.
854 const char kDisableWebRtcHWEncoding
[] = "disable-webrtc-hw-encoding";
856 // Enables negotiation of DTLS 1.2 for WebRTC.
857 const char kEnableWebRtcDtls12
[] = "enable-webrtc-dtls12";
859 // Enables H264 HW encode acceleration for WebRTC.
860 const char kEnableWebRtcHWH264Encoding
[] = "enable-webrtc-hw-h264-encoding";
862 // Enables Origin header in Stun messages for WebRTC.
863 const char kEnableWebRtcStunOrigin
[] = "enable-webrtc-stun-origin";
865 // Renderer process parameter for WebRTC Stun probe trial to determine the
866 // interval. Please see SetupStunProbeTrial in
867 // chrome_browser_field_trials_desktop.cc for more detail.
868 const char kWebRtcStunProbeTrialParameter
[] = "webrtc-stun-probe-trial";
870 // Override the maximum framerate as can be specified in calls to getUserMedia.
871 // This flag expects a value. Example: --max-gum-fps=17.5
872 const char kWebRtcMaxCaptureFramerate
[] = "max-gum-fps";
875 #if defined(OS_ANDROID)
876 // Disable user gesture requirement for media playback.
877 const char kDisableGestureRequirementForMediaPlayback
[] =
878 "disable-gesture-requirement-for-media-playback";
880 // Disable overscroll edge effects like those found in Android views.
881 const char kDisableOverscrollEdgeEffect
[] = "disable-overscroll-edge-effect";
883 // Disable the pull-to-refresh effect when vertically overscrolling content.
884 const char kDisablePullToRefreshEffect
[] = "disable-pull-to-refresh-effect";
886 // Disable the locking feature of the screen orientation API.
887 const char kDisableScreenOrientationLock
[] = "disable-screen-orientation-lock";
889 // Enable external animation system for Android compositor.
890 // See also kEnableCompositorAnimationTimelines for renderer compositors.
891 const char kEnableAndroidCompositorAnimationTimelines
[] =
892 "enable-android-compositor-animation-timelines";
894 // Enable drag manipulation of longpress-triggered text selections.
895 const char kEnableLongpressDragSelection
[] = "enable-longpress-drag-selection";
897 // The telephony region (ISO country code) to use in phone number detection.
898 const char kNetworkCountryIso
[] = "network-country-iso";
900 // Enables remote debug over HTTP on the specified socket name.
901 const char kRemoteDebuggingSocketName
[] = "remote-debugging-socket-name";
903 // Block ChildProcessMain thread of the renderer's ChildProcessService until a
904 // Java debugger is attached.
905 const char kRendererWaitForJavaDebugger
[] = "renderer-wait-for-java-debugger";
908 // Enable the aggressive flushing of DOM Storage to minimize data loss.
909 const char kEnableAggressiveDOMStorageFlushing
[] =
910 "enable-aggressive-domstorage-flushing";
912 // Disable web audio API.
913 const char kDisableWebAudio
[] = "disable-webaudio";
915 #if defined(OS_CHROMEOS)
916 // Disables panel fitting (used for mirror mode).
917 const char kDisablePanelFitting
[] = "disable-panel-fitting";
919 // Disables VA-API accelerated video encode.
920 const char kDisableVaapiAcceleratedVideoEncode
[] =
921 "disable-vaapi-accelerated-video-encode";
924 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
925 // Allows sending text-to-speech requests to speech-dispatcher, a common
926 // Linux speech service. Because it's buggy, the user must explicitly
927 // enable it so that visiting a random webpage can't cause instability.
928 const char kEnableSpeechDispatcher
[] = "enable-speech-dispatcher";
931 #if defined(OS_MACOSX) && !defined(OS_IOS)
932 // Disables support for Core Animation plugins. This is triggered when
933 // accelerated compositing is disabled. See http://crbug.com/122430.
934 const char kDisableCoreAnimationPlugins
[] =
935 "disable-core-animation-plugins";
939 // Device scale factor passed to certain processes like renderers, etc.
940 const char kDeviceScaleFactor
[] = "device-scale-factor";
942 // Disable the Legacy Window which corresponds to the size of the WebContents.
943 const char kDisableLegacyIntermediateWindow
[] = "disable-legacy-window";
945 // Disables the Win32K process mitigation policy for renderer processes.
946 const char kDisableWin32kRendererLockDown
[] =
947 "disable-win32k-renderer-lockdown";
949 // Enables the Win32K process mitigation policy for certain PPAPI mime
950 // types. Each mime type is separated by a comma. Specify * to enable
951 // the policy for all mime types.
952 const char kEnableWin32kLockDownMimeTypes
[] =
953 "enable-win32k-lockdown-mimetypes";
955 // Enables experimental hardware acceleration for VP8/VP9 video decoding.
956 const char kEnableAcceleratedVpxDecode
[] = "enable-accelerated-vpx-decode";
958 // DirectWrite FontCache is shared by browser to renderers using shared memory.
959 // This switch allows us to pass the shared memory handle to the renderer.
960 const char kFontCacheSharedHandle
[] = "font-cache-shared-handle";
962 // Sets the free memory thresholds below which the system is considered to be
963 // under moderate and critical memory pressure. Used in the browser process,
964 // and ignored if invalid. Specified as a pair of comma separated integers.
965 // See base/win/memory_pressure_monitor.cc for defaults.
966 const char kMemoryPressureThresholdsMb
[] = "memory-pressure-thresholds-mb";
968 // Enables the exporting of the tracing events to ETW. This is only supported on
969 // Windows Vista and later.
970 const char kTraceExportEventsToETW
[] = "trace-export-events-to-etw";
973 // Don't dump stuff here, follow the same order as the header.
975 } // namespace switches