Mac: Remove flag to disable threaded event handling
[chromium-blink-merge.git] / content / public / common / content_switches.cc
blobc2fed1e7de1d4611c519f7eb37e521a5fa0a488e
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"
7 namespace switches {
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 frames with an https origin to use WebSockets with an insecure URL
18 // (ws://).
19 const char kAllowInsecureWebSocketFromHttpsOrigin[] =
20 "allow-insecure-websocket-from-https-origin";
22 // Allows loopback interface to be added in network list for peer connection.
23 const char kAllowLoopbackInPeerConnection[] =
24 "allow-loopback-in-peer-connection";
26 // Enables the sandboxed processes to run without a job object assigned to them.
27 // This flag is required to allow Chrome to run in RemoteApps or Citrix. This
28 // flag can reduce the security of the sandboxed processes and allow them to do
29 // certain API calls like shut down Windows or access the clipboard. Also we
30 // lose the chance to kill some processes until the outer job that owns them
31 // finishes.
32 const char kAllowNoSandboxJob[] = "allow-no-sandbox-job";
34 // Allows debugging of sandboxed processes (see zygote_main_linux.cc).
35 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging";
37 // The same as kAuditHandles except all handles are enumerated.
38 const char kAuditAllHandles[] = "enable-handle-auditing-all";
40 // Enumerates and prints a child process' most dangerous handles when it
41 // is terminated.
42 const char kAuditHandles[] = "enable-handle-auditing";
44 // Choose which logging channels in blink platform to activate. See
45 // Logging.cpp in blink's Source/platform for a list of available channels.
46 const char kBlinkPlatformLogChannels[] = "blink-platform-log-channels";
48 // Block cross-site documents (i.e., HTML/XML/JSON) from being loaded in
49 // subresources when a document is not supposed to read them. This will later
50 // allow us to block them from the entire renderer process when site isolation
51 // is enabled.
52 const char kBlockCrossSiteDocuments[] = "block-cross-site-documents";
54 // Causes the browser process to crash on startup.
55 const char kBrowserCrashTest[] = "crash-test";
57 // Path to the exe to run for the renderer and plugin subprocesses.
58 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
60 // Dumps extra logging about plugin loading to the log file.
61 const char kDebugPluginLoading[] = "debug-plugin-loading";
63 // Sets the tile size used by composited layers.
64 const char kDefaultTileWidth[] = "default-tile-width";
65 const char kDefaultTileHeight[] = "default-tile-height";
67 // Disable antialiasing on 2d canvas.
68 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa";
70 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
71 // This is controlled by policy and is kept separate from the other
72 // enable/disable switches to avoid accidentally regressing the policy
73 // support for controlling access to these APIs.
74 const char kDisable3DAPIs[] = "disable-3d-apis";
76 // Disable gpu-accelerated 2d canvas.
77 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas";
79 // Disables hardware acceleration of video decode, where available.
80 const char kDisableAcceleratedVideoDecode[] =
81 "disable-accelerated-video-decode";
83 // Disable limits on the number of backing stores. Can prevent blinking for
84 // users with many windows/tabs and lots of memory.
85 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
87 // Disable one or more Blink runtime-enabled features.
88 // Use names from RuntimeEnabledFeatures.in, separated by commas.
89 // Applied after kEnableBlinkFeatures, and after other flags that change these
90 // features.
91 const char kDisableBlinkFeatures[] = "disable-blink-features";
93 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks.
94 // This switch is intended only for performance tests.
95 const char kDisableBlinkScheduler[] = "disable-blink-scheduler";
97 // Disable the creation of compositing layers when it would prevent LCD text.
98 const char kDisablePreferCompositingToLCDText[] =
99 "disable-prefer-compositing-to-lcd-text";
101 // Disables HTML5 DB support.
102 const char kDisableDatabases[] = "disable-databases";
104 // Disables delegated renderer.
105 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer";
107 // Handles URL requests by NPAPI plugins through the renderer.
108 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests";
110 // Disable the per-domain blocking for 3D APIs after GPU reset.
111 // This switch is intended only for tests.
112 extern const char kDisableDomainBlockingFor3DAPIs[] =
113 "disable-domain-blocking-for-3d-apis";
115 // Disable experimental WebGL support.
116 const char kDisableExperimentalWebGL[] = "disable-webgl";
118 // Disable FileSystem API.
119 const char kDisableFileSystem[] = "disable-file-system";
121 // Disable 3D inside of flapper.
122 const char kDisableFlash3d[] = "disable-flash-3d";
124 // Disable Stage3D inside of flapper.
125 const char kDisableFlashStage3d[] = "disable-flash-stage3d";
127 // Disables GPU hardware acceleration. If software renderer is not in place,
128 // then the GPU process won't launch.
129 const char kDisableGpu[] = "disable-gpu";
131 // Prevent the compositor from using its GPU implementation.
132 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
134 // Disable the limit on the number of times the GPU process may be restarted
135 // This switch is intended only for tests.
136 extern const char kDisableGpuProcessCrashLimit[] =
137 "disable-gpu-process-crash-limit";
139 // Disable GPU rasterization, i.e. rasterize on the CPU only.
140 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
141 const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
143 // When using CPU rasterizing disable low resolution tiling. This uses
144 // less power, particularly during animations, but more white may be seen
145 // during fast scrolling especially on slower devices.
146 const char kDisableLowResTiling[] = "disable-low-res-tiling";
148 // Disable the GPU process sandbox.
149 const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
151 // Disable the thread that crashes the GPU process if it stops responding to
152 // messages.
153 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";
155 // Suppresses hang monitor dialogs in renderer processes. This may allow slow
156 // unload handlers on a page to prevent the tab from closing, but the Task
157 // Manager can be used to terminate the offending process in this case.
158 const char kDisableHangMonitor[] = "disable-hang-monitor";
160 // Disable the RenderThread's HistogramCustomizer.
161 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
163 // Paint content on the main thread instead of the compositor thread.
164 const char kDisableImplSidePainting[] = "disable-impl-side-painting";
166 // Prevent Java from running.
167 const char kDisableJava[] = "disable-java";
169 // Don't kill a child process when it sends a bad IPC message. Apart
170 // from testing, it is a bad idea from a security perspective to enable
171 // this switch.
172 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc";
174 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
175 const char kDisablePrefixedEncryptedMedia[] =
176 "disable-prefixed-encrypted-media";
178 // Disables LCD text.
179 const char kDisableLCDText[] = "disable-lcd-text";
181 // Disables distance field text.
182 const char kDisableDistanceFieldText[] = "disable-distance-field-text";
184 // Disable LocalStorage.
185 const char kDisableLocalStorage[] = "disable-local-storage";
187 // Force logging to be disabled. Logging is enabled by default in debug
188 // builds.
189 const char kDisableLogging[] = "disable-logging";
191 // Disables Media Source API (i.e., the MediaSource object).
192 const char kDisableMediaSource[] = "disable-media-source";
194 // Disables usage of the namespace sandbox.
195 const char kDisableNamespaceSandbox[] = "disable-namespace-sandbox";
197 // Disables the Web Notification and the Push APIs.
198 const char kDisableNotifications[] = "disable-notifications";
200 // Disable rasterizer that writes directly to GPU memory.
201 // Overrides the kEnableOneCopy flag.
202 const char kDisableOneCopy[] = "disable-one-copy";
204 // Disable Pepper3D.
205 const char kDisablePepper3d[] = "disable-pepper-3d";
207 // Disables compositor-accelerated touch-screen pinch gestures.
208 const char kDisablePinch[] = "disable-pinch";
210 // Disable discovering third-party plug-ins. Effectively loading only
211 // ones shipped with the browser plus third-party ones as specified by
212 // --extra-plugin-dir and --load-plugin switches.
213 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery";
215 // Taints all <canvas> elements, regardless of origin.
216 const char kDisableReadingFromCanvas[] = "disable-reading-from-canvas";
218 // Disables remote web font support. SVG font should always work whether this
219 // option is specified or not.
220 const char kDisableRemoteFonts[] = "disable-remote-fonts";
222 // Turns off the accessibility in the renderer.
223 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility";
225 // Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
226 const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox";
228 // Disable the setuid sandbox (Linux only).
229 const char kDisableSetuidSandbox[] = "disable-setuid-sandbox";
231 // Disable shared workers.
232 const char kDisableSharedWorkers[] = "disable-shared-workers";
234 // For tests, disable single thread scheduler and only manually composite.
235 const char kDisableSingleThreadProxyScheduler[] =
236 "disable-single-thread-proxy-scheduler";
238 // Disable smooth scrolling for testing.
239 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling";
241 // Disables the use of a 3D software rasterizer.
242 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer";
244 // Disables SVG 1.1 DOM.
245 const char kDisableSVG1DOM[] = "disable-svg1dom";
247 // Disable text blob rendering.
248 const char kDisableTextBlobs[] = "disable-text-blobs";
250 // Disable multithreaded GPU compositing of web content.
251 const char kDisableThreadedCompositing[] = "disable-threaded-compositing";
253 // Disable multithreaded, compositor scrolling of web content.
254 const char kDisableThreadedScrolling[] = "disable-threaded-scrolling";
256 // Disable V8 idle tasks.
257 const char kDisableV8IdleTasks[] = "disable-v8-idle-tasks";
259 // Don't enforce the same-origin policy. (Used by people testing their sites.)
260 const char kDisableWebSecurity[] = "disable-web-security";
262 // Specifies if the |DOMAutomationController| needs to be bound in the
263 // renderer. This binding happens on per-frame basis and hence can potentially
264 // be a performance bottleneck. One should only enable it when automating dom
265 // based tests.
266 const char kDomAutomationController[] = "dom-automation";
268 // Enable antialiasing on 2d canvas clips (as opposed to draw operations)
269 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa";
271 // Disable partially decoding jpeg images using the GPU.
272 // At least YUV decoding will be accelerated when not using this flag.
273 // Has no effect unless GPU rasterization is enabled.
274 const char kDisableAcceleratedJpegDecoding[] =
275 "disable-accelerated-jpeg-decoding";
277 // Enable bleeding-edge code to make Chrome draw content faster. The changes
278 // behind this path are very likely to break lots of content.
279 // ** DO NOT use this flag unless you know what you are doing. **
280 const char kEnableBleedingEdgeRenderingFastPaths[] =
281 "enable-bleeding-edge-rendering-fast-paths";
283 // Enables LCD text.
284 const char kEnableLCDText[] = "enable-lcd-text";
286 // Enables using signed distance fields when rendering text.
287 // Only valid if GPU rasterization is enabled as well.
288 const char kEnableDistanceFieldText[] = "enable-distance-field-text";
290 // Enable the experimental Credential Manager JavaScript API.
291 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api";
293 // Use a BeginFrame signal from browser to renderer to schedule rendering.
294 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
296 // Enable the creation of compositing layers when it would prevent LCD text.
297 const char kEnablePreferCompositingToLCDText[] =
298 "enable-prefer-compositing-to-lcd-text";
300 // Disable one or more Blink runtime-enabled features.
301 // Use names from RuntimeEnabledFeatures.in, separated by commas.
302 // Applied before kDisableBlinkFeatures, and after other flags that change these
303 // features.
304 const char kEnableBlinkFeatures[] = "enable-blink-features";
306 // PlzNavigate: Use the experimental browser-side navigation path.
307 const char kEnableBrowserSideNavigation[] = "enable-browser-side-navigation";
309 // Defer image decoding in WebKit until painting.
310 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding";
312 // Enables Delay Agnostic AEC in WebRTC.
313 const char kEnableDelayAgnosticAec[] = "enable-delay-agnostic-aec";
315 // Enables delegated renderer.
316 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer";
318 // Enables display list based 2d canvas implementation. Options:
319 // 1. Enable: allow browser to use display list for 2d canvas (browser makes
320 // decision).
321 // 2. Force: browser always uses display list for 2d canvas.
322 const char kEnableDisplayList2dCanvas[] = "enable-display-list-2d-canvas";
323 const char kForceDisplayList2dCanvas[] = "force-display-list-2d-canvas";
324 const char kDisableDisplayList2dCanvas[] = "disable-display-list-2d-canvas";
326 // Enables restarting interrupted downloads.
327 const char kEnableDownloadResumption[] = "enable-download-resumption";
329 // Disables (unprefixed) Encrypted Media Extensions.
330 const char kDisableEncryptedMedia[] = "disable-encrypted-media";
332 // Enable experimental canvas features, e.g. canvas 2D context attributes
333 const char kEnableExperimentalCanvasFeatures[] =
334 "enable-experimental-canvas-features";
336 // Enables Web Platform features that are in development.
337 const char kEnableExperimentalWebPlatformFeatures[] =
338 "enable-experimental-web-platform-features";
340 // By default, cookies are not allowed on file://. They are needed for testing,
341 // for example page cycler and layout tests. See bug 1157243.
342 const char kEnableFileCookies[] = "enable-file-cookies";
344 // Enables TRACE for GL calls in the renderer.
345 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing";
347 // Allow heuristics to determine when a layer tile should be drawn with the
348 // Skia GPU backend. Only valid with GPU accelerated compositing +
349 // impl-side painting.
350 const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
352 // When using CPU rasterizing generate low resolution tiling. Low res
353 // tiles may be displayed during fast scrolls especially on slower devices.
354 const char kEnableLowResTiling[] = "enable-low-res-tiling";
356 // Dynamically apply color profiles to web content images.
357 const char kEnableImageColorProfiles[] = "enable-image-color-profiles";
359 // Force logging to be enabled. Logging is disabled by default in release
360 // builds.
361 const char kEnableLogging[] = "enable-logging";
363 // Enables the memory benchmarking extension
364 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking";
366 // Enables the network information API.
367 const char kEnableNetworkInformation[] = "enable-network-information";
369 // Enable rasterizer that writes directly to GPU memory.
370 const char kEnableOneCopy[] = "enable-one-copy";
372 // Enables use of hardware overlay for fullscreen video playback. Android only.
373 const char kEnableOverlayFullscreenVideo[] = "enable-overlay-fullscreen-video";
375 // Enables compositor-accelerated touch-screen pinch gestures.
376 const char kEnablePinch[] = "enable-pinch";
378 // Make the values returned to window.performance.memory more granular and more
379 // up to date in shared worker. Without this flag, the memory information is
380 // still available, but it is bucketized and updated less frequently. This flag
381 // also applys to workers.
382 const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
384 // Enables payloads for received push messages when using the W3C Push API.
385 const char kEnablePushMessagePayload[] = "enable-push-message-payload";
387 // Enable hasPermission() method of the W3C Push API.
388 const char kEnablePushMessagingHasPermission[] =
389 "enable-push-messaging-has-permission";
391 // Set options to cache V8 data. (off, preparse data, or code)
392 const char kV8CacheOptions[] = "v8-cache-options";
394 // Enables the CSS multicol implementation that uses the regions implementation.
395 const char kEnableRegionBasedColumns[] =
396 "enable-region-based-columns";
398 // Cause the OS X sandbox write to syslog every time an access to a resource
399 // is denied by the sandbox.
400 const char kEnableSandboxLogging[] = "enable-sandbox-logging";
402 // Enables seccomp-bpf support for Android. Requires experimental kernel
403 // support. <http://crbug.com/166704>
404 const char kEnableSeccompFilterSandbox[] =
405 "enable-seccomp-filter-sandbox";
407 // Enables the Skia benchmarking extension
408 const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking";
410 // Enables slimming paint: http://www.chromium.org/blink/slimming-paint
411 const char kEnableSlimmingPaint[] = "enable-slimming-paint";
413 // On platforms that support it, enables smooth scroll animation.
414 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling";
416 // Enable spatial navigation
417 const char kEnableSpatialNavigation[] = "enable-spatial-navigation";
419 // Enables StatsTable, logging statistics to a global named shared memory table.
420 const char kEnableStatsTable[] = "enable-stats-table";
422 // Experimentally ensures that each renderer process:
423 // 1) Only handles rendering for pages from a single site, apart from iframes.
424 // (Note that a page can reference content from multiple origins due to images,
425 // JavaScript files, etc. Cross-site iframes are also loaded in-process.)
426 // 2) Only has authority to see or use cookies for the page's top-level origin.
427 // (So if a.com iframes b.com, the b.com network request will be sent without
428 // cookies.)
429 // This is expected to break compatibility with many pages for now. Unlike the
430 // --site-per-process flag, this allows cross-site iframes, but it blocks all
431 // cookies on cross-site requests.
432 const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation";
434 // Blocks all insecure requests from secure contexts, and prevents the user
435 // from overriding that decision.
436 const char kEnableStrictMixedContentChecking[] =
437 "enable-strict-mixed-content-checking";
439 // Blocks insecure usage of number of powerful features (geolocation, for
440 // example) that we haven't yet deprecated for the web at large.
441 const char kEnableStrictPowerfulFeatureRestrictions[] =
442 "enable-strict-powerful-feature-restrictions";
444 // Enable support for sync events in ServiceWorkers.
445 const char kEnableServiceWorkerSync[] = "enable-service-worker-sync";
447 // Enable use of experimental TCP sockets API for sending data in the
448 // SYN packet.
449 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen";
451 // Enabled threaded compositing for layout tests.
452 const char kEnableThreadedCompositing[] = "enable-threaded-compositing";
454 // Enable tracing during the execution of browser tests.
455 const char kEnableTracing[] = "enable-tracing";
457 // The filename to write the output of the test tracing to.
458 const char kEnableTracingOutput[] = "enable-tracing-output";
460 // Enable screen capturing support for MediaStream API.
461 const char kEnableUserMediaScreenCapturing[] =
462 "enable-usermedia-screen-capturing";
464 // Enables the use of the @viewport CSS rule, which allows
465 // pages to control aspects of their own layout. This also turns on touch-screen
466 // pinch gestures.
467 const char kEnableViewport[] = "enable-viewport";
469 // Enables the viewport meta tag, the de facto way to control layout which works
470 // only on mobile browsers.
471 const char kEnableViewportMeta[] = "enable-viewport-meta";
473 // Resizes of the main frame are the caused by changing between landscape
474 // and portrait mode (i.e. Android) so the page should be rescaled to fit
475 const char kMainFrameResizesAreOrientationChanges[] =
476 "main-frame-resizes-are-orientation-changes";
478 // Enable the Vtune profiler support.
479 const char kEnableVtune[] = "enable-vtune-support";
481 // Enables WebGL extensions not yet approved by the community.
482 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
484 // Enables WebGL rendering into a scanout buffer for overlay support.
485 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
487 // Enables Web MIDI API.
488 const char kEnableWebMIDI[] = "enable-web-midi";
490 // Enable rasterizer that writes directly to GPU memory associated with tiles.
491 const char kEnableZeroCopy[] = "enable-zero-copy";
493 // Load NPAPI plugins from the specified directory.
494 const char kExtraPluginDir[] = "extra-plugin-dir";
496 // This option can be used to force field trials when testing changes locally.
497 // The argument is a list of name and value pairs, separated by slashes. If a
498 // trial name is prefixed with an asterisk, that trial will start activated.
499 // For example, the following argument defines two trials, with the second one
500 // activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/"
501 // This option is also used by the browser to send the list of trials to
502 // renderers, using the same format. See
503 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
504 const char kForceFieldTrials[] = "force-fieldtrials";
506 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
507 // accelerated compositing + impl-side painting. Overrides the
508 // kEnableGpuRasterization flag.
509 const char kForceGpuRasterization[] = "force-gpu-rasterization";
511 // The number of multisample antialiasing samples for GPU rasterization.
512 // Requires MSAA support on GPU to have an effect. 0 disables MSAA.
513 const char kGpuRasterizationMSAASampleCount[] =
514 "gpu-rasterization-msaa-sample-count";
516 // Enable threaded GPU rasterization.
517 const char kEnableThreadedGpuRasterization[] =
518 "enable-threaded-gpu-rasterization";
520 // Disable threaded GPU rasterization. Overrides enable.
521 const char kDisableThreadedGpuRasterization[] =
522 "disable-threaded-gpu-rasterization";
524 // Force renderer accessibility to be on instead of enabling it on demand when
525 // a screen reader is detected. The disable-renderer-accessibility switch
526 // overrides this if present.
527 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
529 // Always use text blob rendering, overriding kDisableTextBlobs and any
530 // heuristics that may otherwise disable it.
531 // TODO(fmalita): remove after --disable-impl-side-painting is phased out.
532 const char kForceTextBlobs[] = "force-text-blobs";
534 // Passes gpu device_id from browser process to GPU process.
535 const char kGpuDeviceID[] = "gpu-device-id";
537 // Passes gpu driver_vendor from browser process to GPU process.
538 const char kGpuDriverVendor[] = "gpu-driver-vendor";
540 // Passes gpu driver_version from browser process to GPU process.
541 const char kGpuDriverVersion[] = "gpu-driver-version";
543 // Extra command line options for launching the GPU process (normally used
544 // for debugging). Use like renderer-cmd-prefix.
545 const char kGpuLauncher[] = "gpu-launcher";
547 // Makes this process a GPU sub-process.
548 const char kGpuProcess[] = "gpu-process";
550 // Allows shmat() system call in the GPU sandbox.
551 const char kGpuSandboxAllowSysVShm[] = "gpu-sandbox-allow-sysv-shm";
553 // Makes GPU sandbox failures fatal.
554 const char kGpuSandboxFailuresFatal[] = "gpu-sandbox-failures-fatal";
556 // Starts the GPU sandbox before creating a GL context.
557 const char kGpuSandboxStartEarly[] = "gpu-sandbox-start-early";
559 // Causes the GPU process to display a dialog on launch.
560 const char kGpuStartupDialog[] = "gpu-startup-dialog";
562 // Passes gpu vendor_id from browser process to GPU process.
563 const char kGpuVendorID[] = "gpu-vendor-id";
565 // These mappings only apply to the host resolver.
566 const char kHostResolverRules[] = "host-resolver-rules";
568 // Ignores certificate-related errors.
569 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors";
571 // Ignores GPU blacklist.
572 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist";
574 // Run the GPU process as a thread in the browser process.
575 const char kInProcessGPU[] = "in-process-gpu";
577 // Overrides the timeout, in seconds, that a child process waits for a
578 // connection from the browser before killing itself.
579 const char kIPCConnectionTimeout[] = "ipc-connection-timeout";
581 // Specifies the flags passed to JS engine
582 const char kJavaScriptFlags[] = "js-flags";
584 // Load an NPAPI plugin from the specified path.
585 const char kLoadPlugin[] = "load-plugin";
587 // Logs GPU control list decisions when enforcing blacklist rules.
588 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions";
590 // Sets the minimum log level. Valid values are from 0 to 3:
591 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
592 const char kLoggingLevel[] = "log-level";
594 // Enables saving net log events to a file and sets the file name to use.
595 const char kLogNetLog[] = "log-net-log";
597 // Make plugin processes log their sent and received messages to VLOG(1).
598 const char kLogPluginMessages[] = "log-plugin-messages";
600 // Sets the width and height above which a composited layer will get tiled.
601 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
602 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
604 // Sample memory usage with high frequency and store the results to the
605 // Renderer.Memory histogram. Used in memory tests.
606 const char kMemoryMetrics[] = "memory-metrics";
608 // Mutes audio sent to the audio device so it is not audible during
609 // automated testing.
610 const char kMuteAudio[] = "mute-audio";
612 // Don't send HTTP-Referer headers.
613 const char kNoReferrers[] = "no-referrers";
615 // Disables the sandbox for all process types that are normally sandboxed.
616 const char kNoSandbox[] = "no-sandbox";
618 // Number of worker threads used to rasterize content.
619 const char kNumRasterThreads[] = "num-raster-threads";
621 // Controls the behavior of history navigation in response to horizontal
622 // overscroll.
623 // Set the value to '0' to disable.
624 // Set the value to '1' to enable the behavior where pages slide in and out in
625 // response to the horizontal overscroll gesture and a screenshot of the target
626 // page is shown.
627 // Set the value to '2' to enable the simplified overscroll UI where a
628 // navigation arrow slides in from the side of the screen in response to the
629 // horizontal overscroll gesture.
630 // Defaults to '1'.
631 const char kOverscrollHistoryNavigation[] =
632 "overscroll-history-navigation";
634 // Specifies a command that should be used to launch the plugin process. Useful
635 // for running the plugin process through purify or quantify. Ex:
636 // --plugin-launcher="path\to\purify /Run=yes"
637 const char kPluginLauncher[] = "plugin-launcher";
639 // Tells the plugin process the path of the plugin to load
640 const char kPluginPath[] = "plugin-path";
642 // Causes the process to run as a plugin subprocess.
643 const char kPluginProcess[] = "plugin";
645 // Causes the plugin process to display a dialog on launch.
646 const char kPluginStartupDialog[] = "plugin-startup-dialog";
648 // Argument to the process type that indicates a PPAPI broker process type.
649 const char kPpapiBrokerProcess[] = "ppapi-broker";
651 // "Command-line" arguments for the PPAPI Flash; used for debugging options.
652 const char kPpapiFlashArgs[] = "ppapi-flash-args";
654 // Runs PPAPI (Pepper) plugins in-process.
655 const char kPpapiInProcess[] = "ppapi-in-process";
657 // Like kPluginLauncher for PPAPI plugins.
658 const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher";
660 // Argument to the process type that indicates a PPAPI plugin process type.
661 const char kPpapiPluginProcess[] = "ppapi";
663 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use
664 // --no-sandbox as well or the sandbox won't allow the dialog to display.
665 const char kPpapiStartupDialog[] = "ppapi-startup-dialog";
667 // Runs a single process for each site (i.e., group of pages from the same
668 // registered domain) the user visits. We default to using a renderer process
669 // for each site instance (i.e., group of pages from the same registered
670 // domain with script connections to each other).
671 const char kProcessPerSite[] = "process-per-site";
673 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
674 // renderer process. We default to using a renderer process for each
675 // site instance (i.e., group of pages from the same registered domain with
676 // script connections to each other).
677 const char kProcessPerTab[] = "process-per-tab";
679 // The value of this switch determines whether the process is started as a
680 // renderer or plugin host. If it's empty, it's the browser.
681 const char kProcessType[] = "type";
683 // Enables more web features over insecure connections. Designed to be used
684 // for testing purposes only.
685 const char kReduceSecurityForTesting[] = "reduce-security-for-testing";
687 // Register Pepper plugins (see pepper_plugin_list.cc for its format).
688 const char kRegisterPepperPlugins[] = "register-pepper-plugins";
690 // Enables remote debug over HTTP on the specified port.
691 const char kRemoteDebuggingPort[] = "remote-debugging-port";
693 // The contents of this flag are prepended to the renderer command line.
694 // Useful values might be "valgrind" or "xterm -e gdb --args".
695 const char kRendererCmdPrefix[] = "renderer-cmd-prefix";
697 // Causes the process to run as renderer instead of as browser.
698 const char kRendererProcess[] = "renderer";
700 // Overrides the default/calculated limit to the number of renderer processes.
701 // Very high values for this setting can lead to high memory/resource usage
702 // or instability.
703 const char kRendererProcessLimit[] = "renderer-process-limit";
705 // Causes the renderer process to display a dialog on launch.
706 const char kRendererStartupDialog[] = "renderer-startup-dialog";
708 // Reduce the default `referer` header's granularity.
709 const char kReducedReferrerGranularity[] =
710 "reduced-referrer-granularity";
712 // Handles frame scrolls via the root RenderLayer instead of the FrameView.
713 const char kRootLayerScrolls[] = "root-layer-scrolls";
715 // Causes the process to run as a sandbox IPC subprocess.
716 const char kSandboxIPCProcess[] = "sandbox-ipc";
718 // Enables or disables scroll end effect in response to vertical overscroll.
719 // Set the value to '1' to enable the feature, and set to '0' to disable.
720 // Defaults to disabled.
721 const char kScrollEndEffect[] = "scroll-end-effect";
723 // Visibly render a border around paint rects in the web page to help debug
724 // and study painting behavior.
725 const char kShowPaintRects[] = "show-paint-rects";
727 // Runs the renderer and plugins in the same process as the browser
728 const char kSingleProcess[] = "single-process";
730 // Experimentally enforces a one-site-per-process security policy.
731 // All cross-site navigations force process swaps, and we can restrict a
732 // renderer process's access rights based on its site. For details, see:
733 // http://www.chromium.org/developers/design-documents/site-isolation
735 // Unlike --enable-strict-site-isolation (which allows cross-site iframes),
736 // this flag does not affect which cookies are attached to cross-site requests.
737 // Support is being added to render cross-site iframes in a different process
738 // than their parent pages.
739 const char kSitePerProcess[] = "site-per-process";
741 // Skip gpu info collection, blacklist loading, and blacklist auto-update
742 // scheduling at browser startup time.
743 // Therefore, all GPU features are available, and about:gpu page shows empty
744 // content. The switch is intended only for layout tests.
745 // TODO(gab): Get rid of this switch entirely.
746 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading";
748 // Specifies if the browser should start in fullscreen mode, like if the user
749 // had pressed F11 right after startup.
750 const char kStartFullscreen[] = "start-fullscreen";
752 // Specifies if the |StatsCollectionController| needs to be bound in the
753 // renderer. This binding happens on per-frame basis and hence can potentially
754 // be a performance bottleneck. One should only enable it when running a test
755 // that needs to access the provided statistics.
756 const char kStatsCollectionController[] =
757 "enable-stats-collection-bindings";
759 // Upscale defaults to "good".
760 const char kTabCaptureDownscaleQuality[] = "tab-capture-downscale-quality";
762 // Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
763 // One flag for upscaling, one for downscaling.
764 // Upscale defaults to "best".
765 const char kTabCaptureUpscaleQuality[] = "tab-capture-upscale-quality";
767 // Options for hiding the close buttons of inactive tabs when touch
768 // is used to interact with the tabstrip.
769 const char kTabCloseButtonsHiddenWithTouch[] =
770 "tab-close-buttons-hidden-with-touch";
772 // Allows for forcing socket connections to http/https to use fixed ports.
773 const char kTestingFixedHttpPort[] = "testing-fixed-http-port";
774 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port";
776 // Type of the current test harness ("browser" or "ui").
777 const char kTestType[] = "test-type";
779 // Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
780 // can specify the specific trace categories to include (e.g.
781 // --trace-shutdown=base,net) otherwise, all events are recorded.
782 // --trace-shutdown-file can be used to control where the trace log gets stored
783 // to since there is otherwise no way to access the result.
784 const char kTraceShutdown[] = "trace-shutdown";
786 // If supplied, sets the file which shutdown tracing will be stored into, if
787 // omitted the default will be used "chrometrace.log" in the current directory.
788 // Has no effect unless --trace-shutdown is also supplied.
789 // Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
790 const char kTraceShutdownFile[] = "trace-shutdown-file";
792 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
793 // specify the specific trace categories to include (e.g.
794 // --trace-startup=base,net) otherwise, all events are recorded. Setting this
795 // flag results in the first call to BeginTracing() to receive all trace events
796 // since startup. In Chrome, you may find --trace-startup-file and
797 // --trace-startup-duration to control the auto-saving of the trace (not
798 // supported in the base-only TraceLog component).
799 const char kTraceStartup[] = "trace-startup";
801 // Sets the time in seconds until startup tracing ends. If omitted a default of
802 // 5 seconds is used. Has no effect without --trace-startup, or if
803 // --startup-trace-file=none was supplied.
804 const char kTraceStartupDuration[] = "trace-startup-duration";
806 // If supplied, sets the file which startup tracing will be stored into, if
807 // omitted the default will be used "chrometrace.log" in the current directory.
808 // Has no effect unless --trace-startup is also supplied.
809 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
810 // As a special case, can be set to 'none' - this disables automatically saving
811 // the result to a file and the first manually recorded trace will then receive
812 // all events since startup.
813 const char kTraceStartupFile[] = "trace-startup-file";
815 // Sets the target URL for uploading tracing data.
816 const char kTraceUploadURL[] = "trace-upload-url";
819 // Prioritizes the UI's command stream in the GPU process
820 extern const char kUIPrioritizeInGpuProcess[] =
821 "ui-prioritize-in-gpu-process";
823 // Overrides the preferred discardable memory implementation.
824 const char kUseDiscardableMemory[] = "use-discardable-memory";
826 // Bypass the media stream infobar by selecting the default device for media
827 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
828 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream";
830 // Enable native GPU memory buffer support when available.
831 const char kEnableNativeGpuMemoryBuffers[] = "enable-native-gpu-memory-buffers";
833 // Overrides the default texture target used with CHROMIUM_image extension.
834 const char kUseImageTextureTarget[] = "use-image-texture-target";
836 // Set when Chromium should use a mobile user agent.
837 const char kUseMobileUserAgent[] = "use-mobile-user-agent";
839 // Use normal priority for tile task worker threads. Otherwise they may
840 // be run at background priority on some platforms.
841 const char kUseNormalPriorityForTileTaskWorkerThreads[] =
842 "use-normal-priority-for-tile-task-worker-threads";
844 // Use the new surfaces system to handle compositor delegation.
845 const char kUseSurfaces[] = "use-surfaces";
847 // Disable the use of the new surfaces system to handle compositor delegation.
848 const char kDisableSurfaces[] = "disable-surfaces";
850 // The contents of this flag are prepended to the utility process command line.
851 // Useful values might be "valgrind" or "xterm -e gdb --args".
852 const char kUtilityCmdPrefix[] = "utility-cmd-prefix";
854 // Causes the process to run as a utility subprocess.
855 const char kUtilityProcess[] = "utility";
857 // The utility process is sandboxed, with access to one directory. This flag
858 // specifies the directory that can be accessed.
859 const char kUtilityProcessAllowedDir[] = "utility-allowed-dir";
861 // Allows MDns to access network in sandboxed process.
862 const char kUtilityProcessEnableMDns[] = "utility-enable-mdns";
864 const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
866 // In debug builds, asserts that the stream of input events is valid.
867 const char kValidateInputEventStream[] = "validate-input-event-stream";
869 // Will add kWaitForDebugger to every child processes. If a value is passed, it
870 // will be used as a filter to determine if the child process should have the
871 // kWaitForDebugger flag passed on or not.
872 const char kWaitForDebuggerChildren[] = "wait-for-debugger-children";
874 // The prefix used when starting the zygote process. (i.e. 'gdb --args')
875 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix";
877 // Causes the process to run as a renderer zygote.
878 const char kZygoteProcess[] = "zygote";
880 #if defined(ENABLE_WEBRTC)
881 // Disables HW decode acceleration for WebRTC.
882 const char kDisableWebRtcHWDecoding[] = "disable-webrtc-hw-decoding";
884 // Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
885 // ignores this switch on its stable and beta channels.
886 const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption";
888 // Disables HW encode acceleration for WebRTC.
889 const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding";
891 // Enables H264 HW encode acceleration for WebRTC.
892 const char kEnableWebRtcHWH264Encoding[] = "enable-webrtc-hw-h264-encoding";
894 // Override the maximum framerate as can be specified in calls to getUserMedia.
895 // This flag expects a value. Example: --max-gum-fps=17.5
896 const char kWebRtcMaxCaptureFramerate[] = "max-gum-fps";
898 #if defined(OS_LINUX) || defined(OS_MACOSX)
899 // Enables Video Capture Device captured data uploaded to Texture for zero-copy
900 // capture pipeline.
901 const char kEnableWebRtcCaptureToTexture[] = "enable-webrtc-capture-to-texture";
902 #endif
903 #endif
905 #if defined(OS_ANDROID)
906 // Disable user gesture requirement for media playback.
907 const char kDisableGestureRequirementForMediaPlayback[] =
908 "disable-gesture-requirement-for-media-playback";
910 // Disable the click delay by sending click events during double tap.
911 const char kDisableClickDelay[] = "disable-click-delay";
913 // Disable overscroll edge effects like those found in Android views.
914 const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect";
916 // Disable the pull-to-refresh effect when vertically overscrolling content.
917 const char kDisablePullToRefreshEffect[] = "disable-pull-to-refresh-effect";
919 // WebRTC is enabled by default on Android.
920 const char kDisableWebRTC[] = "disable-webrtc";
922 // Always use the video overlay for the embedded video.
923 // This switch is intended only for tests.
924 const char kForceUseOverlayEmbeddedVideo[] = "force-use-overlay-embedded-video";
926 // The telephony region (ISO country code) to use in phone number detection.
927 const char kNetworkCountryIso[] = "network-country-iso";
929 // Enables remote debug over HTTP on the specified socket name.
930 const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name";
932 // Block ChildProcessMain thread of the renderer's ChildProcessService until a
933 // Java debugger is attached.
934 const char kRendererWaitForJavaDebugger[] = "renderer-wait-for-java-debugger";
935 #endif
937 // Disable web audio API.
938 const char kDisableWebAudio[] = "disable-webaudio";
940 #if defined(OS_CHROMEOS)
941 // Disables panel fitting (used for mirror mode).
942 const char kDisablePanelFitting[] = "disable-panel-fitting";
944 // Disables VA-API accelerated video encode.
945 const char kDisableVaapiAcceleratedVideoEncode[] =
946 "disable-vaapi-accelerated-video-encode";
947 #endif
949 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
950 // Allows sending text-to-speech requests to speech-dispatcher, a common
951 // Linux speech service. Because it's buggy, the user must explicitly
952 // enable it so that visiting a random webpage can't cause instability.
953 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher";
954 #endif
956 #if defined(OS_MACOSX) && !defined(OS_IOS)
957 // Disables support for Core Animation plugins. This is triggered when
958 // accelerated compositing is disabled. See http://crbug.com/122430.
959 const char kDisableCoreAnimationPlugins[] =
960 "disable-core-animation-plugins";
961 #endif
963 #if defined(OS_WIN)
964 // Device scale factor passed to certain processes like renderers, etc.
965 const char kDeviceScaleFactor[] = "device-scale-factor";
967 // Disable the Legacy Window which corresponds to the size of the WebContents.
968 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
970 // Enables or disables the Win32K process mitigation policy for renderer
971 // processes which prevents them from invoking user32 and gdi32 system calls
972 // which enter the kernel. This is only supported on Windows 8 and beyond.
973 const char kDisableWin32kRendererLockDown[] =
974 "disable-win32k-renderer-lockdown";
975 const char kEnableWin32kRendererLockDown[] =
976 "enable-win32k-renderer-lockdown";
978 // DirectWrite FontCache is shared by browser to renderers using shared memory.
979 // This switch allows specifying suffix to shared memory section name to avoid
980 // clashes between different instances of Chrome.
981 const char kFontCacheSharedMemSuffix[] = "font-cache-shared-mem-suffix";
982 #endif
984 // Enables the use of NPAPI plugins.
985 const char kEnableNpapi[] = "enable-npapi";
987 #if defined(ENABLE_PLUGINS)
988 // Enables the plugin power saver feature.
989 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
990 #endif
992 // Don't dump stuff here, follow the same order as the header.
994 } // namespace switches