Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / public / common / content_switches.cc
blobacb8fd950a1a360c4270a82f410cd99af4ae6e99
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 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
26 // finishes.
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 // Disables hardware acceleration of video decode, where available.
68 const char kDisableAcceleratedVideoDecode[] =
69 "disable-accelerated-video-decode";
71 // Disable limits on the number of backing stores. Can prevent blinking for
72 // users with many windows/tabs and lots of memory.
73 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
75 // Disable one or more Blink runtime-enabled features.
76 // Use names from RuntimeEnabledFeatures.in, separated by commas.
77 // Applied after kEnableBlinkFeatures, and after other flags that change these
78 // features.
79 const char kDisableBlinkFeatures[] = "disable-blink-features";
81 // Disable the creation of compositing layers when it would prevent LCD text.
82 const char kDisablePreferCompositingToLCDText[] =
83 "disable-prefer-compositing-to-lcd-text";
85 // Disables HTML5 DB support.
86 const char kDisableDatabases[] = "disable-databases";
88 // Disables Delay Agnostic AEC in WebRTC.
89 const char kDisableDelayAgnosticAec[] = "disable-delay-agnostic-aec";
91 // Disables delegated renderer.
92 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer";
94 // Handles URL requests by NPAPI plugins through the renderer.
95 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests";
97 // Disable the per-domain blocking for 3D APIs after GPU reset.
98 // This switch is intended only for tests.
99 extern const char kDisableDomainBlockingFor3DAPIs[] =
100 "disable-domain-blocking-for-3d-apis";
102 // Disable experimental WebGL support.
103 const char kDisableExperimentalWebGL[] = "disable-webgl";
105 // Disable FileSystem API.
106 const char kDisableFileSystem[] = "disable-file-system";
108 // Disable 3D inside of flapper.
109 const char kDisableFlash3d[] = "disable-flash-3d";
111 // Disable Stage3D inside of flapper.
112 const char kDisableFlashStage3d[] = "disable-flash-stage3d";
114 // Disables GPU hardware acceleration. If software renderer is not in place,
115 // then the GPU process won't launch.
116 const char kDisableGpu[] = "disable-gpu";
118 // Prevent the compositor from using its GPU implementation.
119 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
121 // Disable proactive early init of GPU process.
122 const char kDisableGpuEarlyInit[] = "disable-gpu-early-init";
124 // Disable the limit on the number of times the GPU process may be restarted
125 // This switch is intended only for tests.
126 extern const char kDisableGpuProcessCrashLimit[] =
127 "disable-gpu-process-crash-limit";
129 // Disable GPU rasterization, i.e. rasterize on the CPU only.
130 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
131 const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
133 // When using CPU rasterizing disable low resolution tiling. This uses
134 // less power, particularly during animations, but more white may be seen
135 // during fast scrolling especially on slower devices.
136 const char kDisableLowResTiling[] = "disable-low-res-tiling";
138 // Disable the GPU process sandbox.
139 const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
141 // Disable the thread that crashes the GPU process if it stops responding to
142 // messages.
143 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";
145 // Suppresses hang monitor dialogs in renderer processes. This may allow slow
146 // unload handlers on a page to prevent the tab from closing, but the Task
147 // Manager can be used to terminate the offending process in this case.
148 const char kDisableHangMonitor[] = "disable-hang-monitor";
150 // Disable hiding the close buttons of inactive tabs when the tabstrip is in
151 // stacked mode.
152 const char kDisableHideInactiveStackedTabCloseButtons[] =
153 "disable-hide-inactive-stacked-tab-close-buttons";
155 // Disable the RenderThread's HistogramCustomizer.
156 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
158 // Prevent Java from running.
159 const char kDisableJava[] = "disable-java";
161 // Don't kill a child process when it sends a bad IPC message. Apart
162 // from testing, it is a bad idea from a security perspective to enable
163 // this switch.
164 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc";
166 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
167 const char kDisablePrefixedEncryptedMedia[] =
168 "disable-prefixed-encrypted-media";
170 // Disables LCD text.
171 const char kDisableLCDText[] = "disable-lcd-text";
173 // Disables distance field text.
174 const char kDisableDistanceFieldText[] = "disable-distance-field-text";
176 // Disable LocalStorage.
177 const char kDisableLocalStorage[] = "disable-local-storage";
179 // Force logging to be disabled. Logging is enabled by default in debug
180 // builds.
181 const char kDisableLogging[] = "disable-logging";
183 // Disables Media Source API (i.e., the MediaSource object).
184 const char kDisableMediaSource[] = "disable-media-source";
186 // Disables usage of the namespace sandbox.
187 const char kDisableNamespaceSandbox[] = "disable-namespace-sandbox";
189 // Disables the Web Notification and the Push APIs.
190 const char kDisableNotifications[] = "disable-notifications";
192 // Disable rasterizer that writes directly to GPU memory.
193 // Overrides the kEnableOneCopy flag.
194 const char kDisableOneCopy[] = "disable-one-copy";
196 // Disable Pepper3D.
197 const char kDisablePepper3d[] = "disable-pepper-3d";
199 // Disables the Permissions API.
200 const char kDisablePermissionsAPI[] = "disable-permissions-api";
202 // Disables compositor-accelerated touch-screen pinch gestures.
203 const char kDisablePinch[] = "disable-pinch";
205 // Disable discovering third-party plugins. Effectively loading only
206 // ones shipped with the browser plus third-party ones as specified by
207 // --extra-plugin-dir and --load-plugin switches.
208 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery";
210 // Taints all <canvas> elements, regardless of origin.
211 const char kDisableReadingFromCanvas[] = "disable-reading-from-canvas";
213 // Disables remote web font support. SVG font should always work whether this
214 // option is specified or not.
215 const char kDisableRemoteFonts[] = "disable-remote-fonts";
217 // Turns off the accessibility in the renderer.
218 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility";
220 // Prevent renderer process backgrounding when set.
221 const char kDisableRendererBackgrounding[] = "disable-renderer-backgrounding";
223 // Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
224 const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox";
226 // Disable the setuid sandbox (Linux only).
227 const char kDisableSetuidSandbox[] = "disable-setuid-sandbox";
229 // Disable shared workers.
230 const char kDisableSharedWorkers[] = "disable-shared-workers";
232 // Disables slimming paint: http://www.chromium.org/blink/slimming-paint
233 // Can be overridden by kEnableSlimmingPaint.
234 const char kDisableSlimmingPaint[] = "disable-slimming-paint";
236 // Disable smooth scrolling for testing.
237 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling";
239 // Disables the use of a 3D software rasterizer.
240 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer";
242 // Disables the Web Speech API.
243 const char kDisableSpeechAPI[] = "disable-speech-api";
245 // Disables SVG 1.1 DOM.
246 const char kDisableSVG1DOM[] = "disable-svg1dom";
248 // Disable text blob rendering.
249 const char kDisableTextBlobs[] = "disable-text-blobs";
251 // Disable multithreaded GPU compositing of web content.
252 const char kDisableThreadedCompositing[] = "disable-threaded-compositing";
254 // Disable multithreaded, compositor scrolling of web content.
255 const char kDisableThreadedScrolling[] = "disable-threaded-scrolling";
257 // Disable V8 idle tasks.
258 const char kDisableV8IdleTasks[] = "disable-v8-idle-tasks";
260 // Don't enforce the same-origin policy. (Used by people testing their sites.)
261 const char kDisableWebSecurity[] = "disable-web-security";
263 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
264 const char kDisableXSSAuditor[] = "disable-xss-auditor";
266 // Specifies if the |DOMAutomationController| needs to be bound in the
267 // renderer. This binding happens on per-frame basis and hence can potentially
268 // be a performance bottleneck. One should only enable it when automating dom
269 // based tests.
270 const char kDomAutomationController[] = "dom-automation";
272 // Enable antialiasing on 2d canvas clips (as opposed to draw operations)
273 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa";
275 // Disable partially decoding jpeg images using the GPU.
276 // At least YUV decoding will be accelerated when not using this flag.
277 // Has no effect unless GPU rasterization is enabled.
278 const char kDisableAcceleratedJpegDecoding[] =
279 "disable-accelerated-jpeg-decoding";
281 // Enable hardware acceleration of mjpeg decode for captured frame, where
282 // available.
283 const char kEnableAcceleratedMjpegDecode[] = "enable-accelerated-mjpeg-decode";
285 // Enable bleeding-edge code to make Chrome draw content faster. The changes
286 // behind this path are very likely to break lots of content.
287 // ** DO NOT use this flag unless you know what you are doing. **
288 const char kEnableBleedingEdgeRenderingFastPaths[] =
289 "enable-bleeding-edge-rendering-fast-paths";
291 // Enables new cc/animation system (Project Heaviside). crbug.com/394772
292 const char kEnableCompositorAnimationTimelines[] =
293 "enable-compositor-animation-timelines";
295 // Enables LCD text.
296 const char kEnableLCDText[] = "enable-lcd-text";
298 // Enables using signed distance fields when rendering text.
299 // Only valid if GPU rasterization is enabled as well.
300 const char kEnableDistanceFieldText[] = "enable-distance-field-text";
302 // Enable the experimental Credential Manager JavaScript API.
303 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api";
305 // Enable the creation of compositing layers when it would prevent LCD text.
306 const char kEnablePreferCompositingToLCDText[] =
307 "enable-prefer-compositing-to-lcd-text";
309 // Disable one or more Blink runtime-enabled features.
310 // Use names from RuntimeEnabledFeatures.in, separated by commas.
311 // Applied before kDisableBlinkFeatures, and after other flags that change these
312 // features.
313 const char kEnableBlinkFeatures[] = "enable-blink-features";
315 // PlzNavigate: Use the experimental browser-side navigation path.
316 const char kEnableBrowserSideNavigation[] = "enable-browser-side-navigation";
318 // Enables Delay Agnostic AEC in WebRTC.
319 const char kEnableDelayAgnosticAec[] = "enable-delay-agnostic-aec";
321 // Enables delegated renderer.
322 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer";
324 // Enables display list based 2d canvas implementation. Options:
325 // 1. Enable: allow browser to use display list for 2d canvas (browser makes
326 // decision).
327 // 2. Force: browser always uses display list for 2d canvas.
328 const char kEnableDisplayList2dCanvas[] = "enable-display-list-2d-canvas";
329 const char kForceDisplayList2dCanvas[] = "force-display-list-2d-canvas";
330 const char kDisableDisplayList2dCanvas[] = "disable-display-list-2d-canvas";
332 // Enables restarting interrupted downloads.
333 const char kEnableDownloadResumption[] = "enable-download-resumption";
335 // Disables (unprefixed) Encrypted Media Extensions.
336 const char kDisableEncryptedMedia[] = "disable-encrypted-media";
338 // Enable experimental canvas features, e.g. canvas 2D context attributes
339 const char kEnableExperimentalCanvasFeatures[] =
340 "enable-experimental-canvas-features";
342 // Enables Web Platform features that are in development.
343 const char kEnableExperimentalWebPlatformFeatures[] =
344 "enable-experimental-web-platform-features";
346 // Enable Web Bluetooth.
347 const char kEnableWebBluetooth[] = "enable-web-bluetooth";
349 // Enables TRACE for GL calls in the renderer.
350 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing";
352 // Allow heuristics to determine when a layer tile should be drawn with the
353 // Skia GPU backend. Only valid with GPU accelerated compositing +
354 // impl-side painting.
355 const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
357 // When using CPU rasterizing generate low resolution tiling. Low res
358 // tiles may be displayed during fast scrolls especially on slower devices.
359 const char kEnableLowResTiling[] = "enable-low-res-tiling";
361 // Dynamically apply color profiles to web content images.
362 const char kEnableImageColorProfiles[] = "enable-image-color-profiles";
364 // Force logging to be enabled. Logging is disabled by default in release
365 // builds.
366 const char kEnableLogging[] = "enable-logging";
368 // Enables the memory benchmarking extension
369 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking";
371 // Enables the network information API.
372 const char kEnableNetworkInformation[] = "enable-network-information";
374 // Enable rasterizer that writes directly to GPU memory.
375 const char kEnableOneCopy[] = "enable-one-copy";
377 // Enables use of hardware overlay for fullscreen video playback. Android only.
378 const char kEnableOverlayFullscreenVideo[] = "enable-overlay-fullscreen-video";
380 // Enables compositor-accelerated touch-screen pinch gestures.
381 const char kEnablePinch[] = "enable-pinch";
383 // Enables testing features of the Plugin Placeholder. For internal use only.
384 const char kEnablePluginPlaceholderTesting[] =
385 "enable-plugin-placeholder-testing";
387 // Make the values returned to window.performance.memory more granular and more
388 // up to date in shared worker. Without this flag, the memory information is
389 // still available, but it is bucketized and updated less frequently. This flag
390 // also applys to workers.
391 const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
393 // Enables payloads for received push messages when using the W3C Push API.
394 const char kEnablePushMessagePayload[] = "enable-push-message-payload";
396 // Set options to cache V8 data. (off, preparse data, or code)
397 const char kV8CacheOptions[] = "v8-cache-options";
399 // Signals that the V8 natives file has been transfered to the child process
400 // by a file descriptor.
401 const char kV8NativesPassedByFD[] = "v8-natives-passed-by-fd";
403 // Signals that the V8 startup snapshot file has been transfered to the child
404 // process by a file descriptor.
405 const char kV8SnapshotPassedByFD[] = "v8-snapshot-passed-by-fd";
407 // Cause the OS X sandbox write to syslog every time an access to a resource
408 // is denied by the sandbox.
409 const char kEnableSandboxLogging[] = "enable-sandbox-logging";
411 // Enables seccomp-bpf support for Android. Requires experimental kernel
412 // support. <http://crbug.com/166704>
413 const char kEnableSeccompFilterSandbox[] =
414 "enable-seccomp-filter-sandbox";
416 // Enables the Skia benchmarking extension
417 const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking";
419 // Enables slimming paint: http://www.chromium.org/blink/slimming-paint
420 // Overrides kDisableSlimmingPaint if both are present.
421 const char kEnableSlimmingPaint[] = "enable-slimming-paint";
423 // On platforms that support it, enables smooth scroll animation.
424 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling";
426 // Enable spatial navigation
427 const char kEnableSpatialNavigation[] = "enable-spatial-navigation";
429 // Enables implementation of the Cache-Control: stale-while-revalidate directive
430 // which permits servers to allow the use of stale resources while revalidation
431 // proceeds in the background.
432 const char kEnableStaleWhileRevalidate[] = "enable-stale-while-revalidate";
434 // Enables StatsTable, logging statistics to a global named shared memory table.
435 const char kEnableStatsTable[] = "enable-stats-table";
437 // Blocks all insecure requests from secure contexts, and prevents the user
438 // from overriding that decision.
439 const char kEnableStrictMixedContentChecking[] =
440 "enable-strict-mixed-content-checking";
442 // Blocks insecure usage of number of powerful features (geolocation, for
443 // example) that we haven't yet deprecated for the web at large.
444 const char kEnableStrictPowerfulFeatureRestrictions[] =
445 "enable-strict-powerful-feature-restrictions";
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 // Enables experiment to scroll the inner viewport first in some situations.
474 const char kInvertViewportScrollOrder[] = "invert-viewport-scroll-order";
476 // Enable the Vtune profiler support.
477 const char kEnableVtune[] = "enable-vtune-support";
479 // Enables WebGL extensions not yet approved by the community.
480 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
482 // Enables WebGL rendering into a scanout buffer for overlay support.
483 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
485 // Enables interaction with virtual reality devices.
486 const char kEnableWebVR[] = "enable-webvr";
488 // Enable rasterizer that writes directly to GPU memory associated with tiles.
489 const char kEnableZeroCopy[] = "enable-zero-copy";
491 // Explicitly allows additional ports using a comma-separated list of port
492 // numbers.
493 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports";
495 // Load NPAPI plugins from the specified directory.
496 const char kExtraPluginDir[] = "extra-plugin-dir";
498 // This option can be used to force field trials when testing changes locally.
499 // The argument is a list of name and value pairs, separated by slashes. If a
500 // trial name is prefixed with an asterisk, that trial will start activated.
501 // For example, the following argument defines two trials, with the second one
502 // activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/"
503 // This option is also used by the browser to send the list of trials to
504 // renderers, using the same format. See
505 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
506 const char kForceFieldTrials[] = "force-fieldtrials";
508 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
509 // accelerated compositing + impl-side painting. Overrides the
510 // kEnableGpuRasterization flag.
511 const char kForceGpuRasterization[] = "force-gpu-rasterization";
513 // The number of multisample antialiasing samples for GPU rasterization.
514 // Requires MSAA support on GPU to have an effect. 0 disables MSAA.
515 const char kGpuRasterizationMSAASampleCount[] =
516 "gpu-rasterization-msaa-sample-count";
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 // Disables appcontainer/lowbox for renderer on Win8+ platforms.
613 const char kDisableAppContainer[] = "disable-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
627 // overscroll.
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
631 // page is shown.
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.
635 // Defaults to '1'.
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
707 // or instability.
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 // Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
786 // can specify the specific trace categories to include (e.g.
787 // --trace-shutdown=base,net) otherwise, all events are recorded.
788 // --trace-shutdown-file can be used to control where the trace log gets stored
789 // to since there is otherwise no way to access the result.
790 const char kTraceShutdown[] = "trace-shutdown";
792 // If supplied, sets the file which shutdown tracing will be stored into, if
793 // omitted the default will be used "chrometrace.log" in the current directory.
794 // Has no effect unless --trace-shutdown is also supplied.
795 // Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
796 const char kTraceShutdownFile[] = "trace-shutdown-file";
798 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
799 // specify the specific trace categories to include (e.g.
800 // --trace-startup=base,net) otherwise, all events are recorded. Setting this
801 // flag results in the first call to BeginTracing() to receive all trace events
802 // since startup. In Chrome, you may find --trace-startup-file and
803 // --trace-startup-duration to control the auto-saving of the trace (not
804 // supported in the base-only TraceLog component).
805 const char kTraceStartup[] = "trace-startup";
807 // Sets the time in seconds until startup tracing ends. If omitted a default of
808 // 5 seconds is used. Has no effect without --trace-startup, or if
809 // --startup-trace-file=none was supplied.
810 const char kTraceStartupDuration[] = "trace-startup-duration";
812 // If supplied, sets the file which startup tracing will be stored into, if
813 // omitted the default will be used "chrometrace.log" in the current directory.
814 // Has no effect unless --trace-startup is also supplied.
815 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
816 // As a special case, can be set to 'none' - this disables automatically saving
817 // the result to a file and the first manually recorded trace will then receive
818 // all events since startup.
819 const char kTraceStartupFile[] = "trace-startup-file";
821 // Sets the target URL for uploading tracing data.
822 const char kTraceUploadURL[] = "trace-upload-url";
825 // Prioritizes the UI's command stream in the GPU process
826 extern const char kUIPrioritizeInGpuProcess[] =
827 "ui-prioritize-in-gpu-process";
829 // Bypass the media stream infobar by selecting the default device for media
830 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
831 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream";
833 // Enable native GPU memory buffer support when available.
834 const char kEnableNativeGpuMemoryBuffers[] = "enable-native-gpu-memory-buffers";
836 // Texture target for CHROMIUM_image backed content textures.
837 const char kContentImageTextureTarget[] = "content-image-texture-target";
839 // Texture target for CHROMIUM_image backed video frame textures.
840 const char kVideoImageTextureTarget[] = "video-image-texture-target";
842 // Set when Chromium should use a mobile user agent.
843 const char kUseMobileUserAgent[] = "use-mobile-user-agent";
845 // Use normal priority for tile task worker threads. Otherwise they may
846 // be run at background priority on some platforms.
847 const char kUseNormalPriorityForTileTaskWorkerThreads[] =
848 "use-normal-priority-for-tile-task-worker-threads";
850 // Use the new surfaces system to handle compositor delegation.
851 const char kUseSurfaces[] = "use-surfaces";
853 // Disable the use of the new surfaces system to handle compositor delegation.
854 const char kDisableSurfaces[] = "disable-surfaces";
856 // The contents of this flag are prepended to the utility process command line.
857 // Useful values might be "valgrind" or "xterm -e gdb --args".
858 const char kUtilityCmdPrefix[] = "utility-cmd-prefix";
860 // Causes the process to run as a utility subprocess.
861 const char kUtilityProcess[] = "utility";
863 // The utility process is sandboxed, with access to one directory. This flag
864 // specifies the directory that can be accessed.
865 const char kUtilityProcessAllowedDir[] = "utility-allowed-dir";
867 // Allows MDns to access network in sandboxed process.
868 const char kUtilityProcessEnableMDns[] = "utility-enable-mdns";
870 const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
872 // In debug builds, asserts that the stream of input events is valid.
873 const char kValidateInputEventStream[] = "validate-input-event-stream";
875 // Will add kWaitForDebugger to every child processes. If a value is passed, it
876 // will be used as a filter to determine if the child process should have the
877 // kWaitForDebugger flag passed on or not.
878 const char kWaitForDebuggerChildren[] = "wait-for-debugger-children";
880 // The prefix used when starting the zygote process. (i.e. 'gdb --args')
881 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix";
883 // Causes the process to run as a renderer zygote.
884 const char kZygoteProcess[] = "zygote";
886 #if defined(ENABLE_WEBRTC)
887 // Disables HW decode acceleration for WebRTC.
888 const char kDisableWebRtcHWDecoding[] = "disable-webrtc-hw-decoding";
890 // Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
891 // ignores this switch on its stable and beta channels.
892 const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption";
894 // Disables HW encode acceleration for WebRTC.
895 const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding";
897 // Enables negotiation of DTLS 1.2 for WebRTC.
898 const char kEnableWebRtcDtls12[] = "enable-webrtc-dtls12";
900 // Enables H264 HW encode acceleration for WebRTC.
901 const char kEnableWebRtcHWH264Encoding[] = "enable-webrtc-hw-h264-encoding";
903 // Enables Origin header in Stun messages for WebRTC.
904 const char kEnableWebRtcStunOrigin[] = "enable-webrtc-stun-origin";
906 // Renderer process parameter for WebRTC Stun probe trial to determine the
907 // interval. Please see SetupStunProbeTrial in
908 // chrome_browser_field_trials_desktop.cc for more detail.
909 const char kWebRtcStunProbeTrialParameter[] = "webrtc-stun-probe-trial";
911 // Override the maximum framerate as can be specified in calls to getUserMedia.
912 // This flag expects a value. Example: --max-gum-fps=17.5
913 const char kWebRtcMaxCaptureFramerate[] = "max-gum-fps";
914 #endif
916 #if defined(OS_ANDROID)
917 // Disable user gesture requirement for media playback.
918 const char kDisableGestureRequirementForMediaPlayback[] =
919 "disable-gesture-requirement-for-media-playback";
921 // Disable the click delay by sending click events during double tap.
922 const char kDisableClickDelay[] = "disable-click-delay";
924 // Disable overscroll edge effects like those found in Android views.
925 const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect";
927 // Disable the pull-to-refresh effect when vertically overscrolling content.
928 const char kDisablePullToRefreshEffect[] = "disable-pull-to-refresh-effect";
930 // Disable the locking feature of the screen orientation API.
931 const char kDisableScreenOrientationLock[] = "disable-screen-orientation-lock";
933 // WebRTC is enabled by default on Android.
934 const char kDisableWebRTC[] = "disable-webrtc";
936 // Enable external animation system for Android compositor.
937 // See also kEnableCompositorAnimationTimelines for renderer compositors.
938 const char kEnableAndroidCompositorAnimationTimelines[] =
939 "enable-android-compositor-animation-timelines";
941 // Enable drag manipulation of longpress-triggered text selections.
942 const char kEnableLongpressDragSelection[] = "enable-longpress-drag-selection";
944 // The telephony region (ISO country code) to use in phone number detection.
945 const char kNetworkCountryIso[] = "network-country-iso";
947 // Enables remote debug over HTTP on the specified socket name.
948 const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name";
950 // Block ChildProcessMain thread of the renderer's ChildProcessService until a
951 // Java debugger is attached.
952 const char kRendererWaitForJavaDebugger[] = "renderer-wait-for-java-debugger";
953 #endif
955 // Enable the aggressive flushing of DOM Storage to minimize data loss.
956 const char kEnableAggressiveDOMStorageFlushing[] =
957 "enable-aggressive-domstorage-flushing";
959 // Disable web audio API.
960 const char kDisableWebAudio[] = "disable-webaudio";
962 #if defined(OS_CHROMEOS)
963 // Disables panel fitting (used for mirror mode).
964 const char kDisablePanelFitting[] = "disable-panel-fitting";
966 // Disables VA-API accelerated video encode.
967 const char kDisableVaapiAcceleratedVideoEncode[] =
968 "disable-vaapi-accelerated-video-encode";
969 #endif
971 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
972 // Allows sending text-to-speech requests to speech-dispatcher, a common
973 // Linux speech service. Because it's buggy, the user must explicitly
974 // enable it so that visiting a random webpage can't cause instability.
975 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher";
976 #endif
978 #if defined(OS_MACOSX) && !defined(OS_IOS)
979 // Disables support for Core Animation plugins. This is triggered when
980 // accelerated compositing is disabled. See http://crbug.com/122430.
981 const char kDisableCoreAnimationPlugins[] =
982 "disable-core-animation-plugins";
983 #endif
985 #if defined(OS_WIN)
986 // Device scale factor passed to certain processes like renderers, etc.
987 const char kDeviceScaleFactor[] = "device-scale-factor";
989 // Disable the Legacy Window which corresponds to the size of the WebContents.
990 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
992 // Disables the Win32K process mitigation policy for renderer processes.
993 const char kDisableWin32kRendererLockDown[] =
994 "disable-win32k-renderer-lockdown";
996 // Enables experimental hardware acceleration for VP8/VP9 video decoding.
997 const char kEnableAcceleratedVpxDecode[] = "enable-accelerated-vpx-decode";
999 // DirectWrite FontCache is shared by browser to renderers using shared memory.
1000 // This switch allows us to pass the shared memory handle to the renderer.
1001 const char kFontCacheSharedHandle[] = "font-cache-shared-handle";
1003 // Sets the free memory thresholds below which the system is considered to be
1004 // under moderate and critical memory pressure. Used in the browser process,
1005 // and ignored if invalid. Specified as a pair of comma separated integers.
1006 // See base/win/memory_pressure_monitor.cc for defaults.
1007 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb";
1009 // Enables the exporting of the tracing events to ETW. This is only supported on
1010 // Windows Vista and later.
1011 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1012 #endif
1014 // Don't dump stuff here, follow the same order as the header.
1016 } // namespace switches