linux_aura: Disable the plugin install infobar.
[chromium-blink-merge.git] / content / public / common / content_switches.cc
blob0770a14b29967b08247e43848b050041350a0898
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 #include "base/command_line.h"
9 namespace switches {
11 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
12 // have an effect. 0 disables MSAA.
13 const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count";
15 // By default, file:// URIs cannot read other file:// URIs. This is an
16 // override for developers who need the old behavior for testing.
17 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files";
19 // Allows frames with an https origin to use WebSockets with an insecure URL
20 // (ws://).
21 const char kAllowInsecureWebSocketFromHttpsOrigin[] =
22 "allow-insecure-websocket-from-https-origin";
24 // Allows loopback interface to be added in network list for peer connection.
25 const char kAllowLoopbackInPeerConnection[] =
26 "allow-loopback-in-peer-connection";
28 // Enables the sandboxed processes to run without a job object assigned to them.
29 // This flag is required to allow Chrome to run in RemoteApps or Citrix. This
30 // flag can reduce the security of the sandboxed processes and allow them to do
31 // certain API calls like shut down Windows or access the clipboard. Also we
32 // lose the chance to kill some processes until the outer job that owns them
33 // finishes.
34 const char kAllowNoSandboxJob[] = "allow-no-sandbox-job";
36 // Allows debugging of sandboxed processes (see zygote_main_linux.cc).
37 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging";
39 // The same as kAuditHandles except all handles are enumerated.
40 const char kAuditAllHandles[] = "enable-handle-auditing-all";
42 // Enumerates and prints a child process' most dangerous handles when it
43 // is terminated.
44 const char kAuditHandles[] = "enable-handle-auditing";
46 // Choose which logging channels in blink platform to activate. See
47 // Logging.cpp in blink's Source/platform for a list of available channels.
48 const char kBlinkPlatformLogChannels[] = "blink-platform-log-channels";
50 // Block cross-site documents (i.e., HTML/XML/JSON) from being loaded in
51 // subresources when a document is not supposed to read them. This will later
52 // allow us to block them from the entire renderer process when site isolation
53 // is enabled.
54 const char kBlockCrossSiteDocuments[] = "block-cross-site-documents";
56 // Causes the browser process to throw an assertion on startup.
57 const char kBrowserAssertTest[] = "assert-test";
59 // Causes the browser process to crash on startup.
60 const char kBrowserCrashTest[] = "crash-test";
62 // Path to the exe to run for the renderer and plugin subprocesses.
63 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
65 // Dumps extra logging about plugin loading to the log file.
66 const char kDebugPluginLoading[] = "debug-plugin-loading";
68 // Sets the tile size used by composited layers.
69 const char kDefaultTileWidth[] = "default-tile-width";
70 const char kDefaultTileHeight[] = "default-tile-height";
72 // Disable antialiasing on 2d canvas.
73 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa";
75 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
76 // This is controlled by policy and is kept separate from the other
77 // enable/disable switches to avoid accidentally regressing the policy
78 // support for controlling access to these APIs.
79 const char kDisable3DAPIs[] = "disable-3d-apis";
81 // Disable gpu-accelerated 2d canvas.
82 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas";
84 // Disables accelerated compositing for backgrounds of root layers with
85 // background-attachment: fixed.
86 const char kDisableAcceleratedFixedRootBackground[] =
87 "disable-accelerated-fixed-root-background";
89 // Disables accelerated compositing for overflow scroll.
90 const char kDisableAcceleratedOverflowScroll[] =
91 "disable-accelerated-overflow-scroll";
93 // Disables layer squashing.
94 const char kDisableLayerSquashing[] =
95 "disable-layer-squashing";
97 // Disables hardware acceleration of video decode, where available.
98 const char kDisableAcceleratedVideoDecode[] =
99 "disable-accelerated-video-decode";
101 // Disable the ApplicationCache.
102 const char kDisableApplicationCache[] = "disable-application-cache";
104 // Disable limits on the number of backing stores. Can prevent blinking for
105 // users with many windows/tabs and lots of memory.
106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
108 // See comment for kEnableCompositingForFixedPosition.
109 const char kDisableCompositingForFixedPosition[] =
110 "disable-fixed-position-compositing";
112 // See comment for kEnableCompositingForTransition.
113 const char kDisableCompositingForTransition[] =
114 "disable-transition-compositing";
116 // Disables HTML5 DB support.
117 const char kDisableDatabases[] = "disable-databases";
119 // Disables delegated renderer.
120 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer";
122 // Disables desktop notifications (default enabled on windows).
123 const char kDisableDesktopNotifications[] = "disable-desktop-notifications";
125 // Disables experimental navigator content utils implementation.
126 const char kDisableNavigatorContentUtils[] =
127 "disable-navigator-content-utils";
129 // Handles URL requests by NPAPI plugins through the renderer.
130 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests";
132 // Disable the per-domain blocking for 3D APIs after GPU reset.
133 // This switch is intended only for tests.
134 extern const char kDisableDomainBlockingFor3DAPIs[] =
135 "disable-domain-blocking-for-3d-apis";
137 // Disable running the SharedWorker inside the renderer process.
138 const char kDisableEmbeddedSharedWorker[] = "disable-embedded-shared-worker";
140 // Disable experimental WebGL support.
141 const char kDisableExperimentalWebGL[] = "disable-webgl";
143 // Disable the fast text autosizing implementation.
144 const char kDisableFastTextAutosizing[] = "disable-fast-text-autosizing";
146 // Disable FileSystem API.
147 const char kDisableFileSystem[] = "disable-file-system";
149 // Disable 3D inside of flapper.
150 const char kDisableFlash3d[] = "disable-flash-3d";
152 // Disable Stage3D inside of flapper.
153 const char kDisableFlashStage3d[] = "disable-flash-stage3d";
155 const char kDisableGestureTapHighlight[] = "disable-gesture-tap-highlight";
157 // Disable GL multisampling.
158 const char kDisableGLMultisampling[] = "disable-gl-multisampling";
160 // Disables GPU hardware acceleration. If software renderer is not in place,
161 // then the GPU process won't launch.
162 const char kDisableGpu[] = "disable-gpu";
164 // Prevent the compositor from using its GPU implementation.
165 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
167 // Disable the limit on the number of times the GPU process may be restarted
168 // This switch is intended only for tests.
169 extern const char kDisableGpuProcessCrashLimit[] =
170 "disable-gpu-process-crash-limit";
172 // Disable GPU rasterization, i.e. rasterize on the CPU only.
173 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
174 const char kDisableGpuRasterization[] = "disable-gpu-rasterization";
176 // When using CPU rasterizing disable low resolution tiling. This uses
177 // less power, particularly during animations, but more white may be seen
178 // during fast scrolling especially on slower devices.
179 const char kDisableLowResTiling[] = "disable-low-res-tiling";
181 // Disable the GPU process sandbox.
182 const char kDisableGpuSandbox[] = "disable-gpu-sandbox";
184 // Disable the thread that crashes the GPU process if it stops responding to
185 // messages.
186 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";
188 // Suppresses hang monitor dialogs in renderer processes. This may allow slow
189 // unload handlers on a page to prevent the tab from closing, but the Task
190 // Manager can be used to terminate the offending process in this case.
191 const char kDisableHangMonitor[] = "disable-hang-monitor";
193 // Disable the RenderThread's HistogramCustomizer.
194 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";
196 // Paint content on the main thread instead of the compositor thread.
197 // Overrides the kEnableImplSidePainting flag.
198 const char kDisableImplSidePainting[] = "disable-impl-side-painting";
200 // Prevent Java from running.
201 const char kDisableJava[] = "disable-java";
203 // Don't execute JavaScript (browser JS like the new tab page still runs).
204 const char kDisableJavaScript[] = "disable-javascript";
206 // Don't kill a child process when it sends a bad IPC message. Apart
207 // from testing, it is a bad idea from a security perspective to enable
208 // this switch.
209 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc";
211 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
212 const char kDisablePrefixedEncryptedMedia[] =
213 "disable-prefixed-encrypted-media";
215 // Disables LCD text.
216 const char kDisableLCDText[] = "disable-lcd-text";
218 // Disables distance field text.
219 const char kDisableDistanceFieldText[] = "disable-distance-field-text";
221 // Disable LocalStorage.
222 const char kDisableLocalStorage[] = "disable-local-storage";
224 // Force logging to be disabled. Logging is enabled by default in debug
225 // builds.
226 const char kDisableLogging[] = "disable-logging";
228 // Disables Media Source API (i.e., the MediaSource object).
229 const char kDisableMediaSource[] = "disable-media-source";
231 // Disable Pepper3D.
232 const char kDisablePepper3d[] = "disable-pepper-3d";
234 // Disables compositor-accelerated touch-screen pinch gestures.
235 const char kDisablePinch[] = "disable-pinch";
237 // Prevent plugins from running.
238 const char kDisablePlugins[] = "disable-plugins";
240 // Disable discovering third-party plug-ins. Effectively loading only
241 // ones shipped with the browser plus third-party ones as specified by
242 // --extra-plugin-dir and --load-plugin switches.
243 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery";
245 // Disables remote web font support. SVG font should always work whether this
246 // option is specified or not.
247 const char kDisableRemoteFonts[] = "disable-remote-fonts";
249 // Turns off the accessibility in the renderer.
250 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility";
252 // Disables the new layout/paint system which paints after layout is complete.
253 const char kDisableRepaintAfterLayout[] = "disable-repaint-after-layout";
255 // Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
256 const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox";
258 // Disable session storage.
259 const char kDisableSessionStorage[] = "disable-session-storage";
261 // Disable the setuid sandbox (Linux only).
262 const char kDisableSetuidSandbox[] = "disable-setuid-sandbox";
264 // Enable shared workers. Functionality not yet complete.
265 const char kDisableSharedWorkers[] = "disable-shared-workers";
267 // Disables site-specific tailoring to compatibility issues in WebKit.
268 const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks";
270 // Disable smooth scrolling for testing.
271 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling";
273 // Disables the use of a 3D software rasterizer.
274 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer";
276 // Disable False Start in SSL and TLS connections.
277 const char kDisableSSLFalseStart[] = "disable-ssl-false-start";
279 // Disable multithreaded GPU compositing of web content.
280 const char kDisableThreadedCompositing[] = "disable-threaded-compositing";
282 // Disable accelerated overflow scrolling in corner cases (that would not be
283 // handled by enable-accelerated-overflow-scroll).
284 const char kDisableUniversalAcceleratedOverflowScroll[] =
285 "disable-universal-accelerated-overflow-scroll";
287 // Don't enforce the same-origin policy. (Used by people testing their sites.)
288 const char kDisableWebSecurity[] = "disable-web-security";
290 // Disables support for XSLT.
291 const char kDisableXSLT[] = "disable-xslt";
293 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
294 const char kDisableXSSAuditor[] = "disable-xss-auditor";
296 // Disable rasterizer that writes directly to GPU memory associated with tiles.
297 // Overrides the kEnableZeroCopy flag.
298 const char kDisableZeroCopy[] = "disable-zero-copy";
300 // Specifies if the |DOMAutomationController| needs to be bound in the
301 // renderer. This binding happens on per-frame basis and hence can potentially
302 // be a performance bottleneck. One should only enable it when automating dom
303 // based tests.
304 const char kDomAutomationController[] = "dom-automation";
306 // Enable bleeding-edge code to make Chrome draw content faster. The changes
307 // behind this path are very likely to break lots of content.
308 // ** DO NOT use this flag unless you know what you are doing. **
309 const char kEnableBleedingEdgeRenderingFastPaths[] =
310 "enable-bleeding-edge-rendering-fast-paths";
312 // Disable deferred image filters.
313 const char kDisableDeferredFilters[] = "disable-deferred-filters";
315 // Enables accelerated compositing for backgrounds of root layers with
316 // background-attachment: fixed.
317 const char kEnableAcceleratedFixedRootBackground[] =
318 "enable-accelerated-fixed-root-background";
320 // Enables accelerated compositing for overflow scroll. Promotes eligible
321 // overflow:scroll elements to layers to enable accelerated scrolling for them.
322 const char kEnableAcceleratedOverflowScroll[] =
323 "enable-accelerated-overflow-scroll";
325 // Enables LCD text.
326 const char kEnableLCDText[] = "enable-lcd-text";
328 // Enables using signed distance fields when rendering text.
329 // Only valid if GPU rasterization is enabled as well.
330 const char kEnableDistanceFieldText[] = "enable-distance-field-text";
332 // Enables experimental feature that maps multiple RenderLayers to
333 // one composited layer to avoid pathological layer counts.
334 const char kEnableLayerSquashing[] =
335 "enable-layer-squashing";
337 // Enable experimental container node culling.
338 const char kEnableContainerCulling[] = "enable-container-culling";
340 // Use a BeginFrame signal from browser to renderer to schedule rendering.
341 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
343 // Enable the creation of compositing layers for fixed position
344 // elements. Three options are needed to support four possible scenarios:
345 // 1. Default (disabled)
346 // 2. Enabled always (to allow dogfooding)
347 // 3. Disabled always (to give safety fallback for users)
348 // 4. Enabled only if we detect a highDPI display
350 // Option #4 may soon be the default, because the feature is needed soon for
351 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
352 // override Option #4.
353 const char kEnableCompositingForFixedPosition[] =
354 "enable-fixed-position-compositing";
356 // Enable/Disable the creation of compositing layers for RenderLayers with a
357 // transition on a property that supports accelerated animation (that is,
358 // opacity, -webkit-transform, and -webkit-filter), even when no animation is
359 // running. These options allow for three possible scenarios:
360 // 1. Default (enabled only if we dectect a highDPI display)
361 // 2. Enabled always.
362 // 3. Disabled always.
363 const char kEnableCompositingForTransition[] =
364 "enable-transition-compositing";
366 // Defer image decoding in WebKit until painting.
367 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding";
369 // Enables delegated renderer.
370 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer";
372 // Enables restarting interrupted downloads.
373 const char kEnableDownloadResumption[] = "enable-download-resumption";
375 // Enables support for Encrypted Media Extensions (e.g. MediaKeys).
376 const char kEnableEncryptedMedia[] = "enable-encrypted-media";
378 // Enable experimental canvas features, e.g. canvas 2D context attributes
379 const char kEnableExperimentalCanvasFeatures[] =
380 "enable-experimental-canvas-features";
382 // Enables Web Platform features that are in development.
383 const char kEnableExperimentalWebPlatformFeatures[] =
384 "enable-experimental-web-platform-features";
386 // By default, cookies are not allowed on file://. They are needed for testing,
387 // for example page cycler and layout tests. See bug 1157243.
388 const char kEnableFileCookies[] = "enable-file-cookies";
390 // Enable the fast text autosizing implementation.
391 const char kEnableFastTextAutosizing[] = "enable-fast-text-autosizing";
393 // Enable Gesture Tap Highlight
394 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight";
396 // Enables TRACE for GL calls in the renderer.
397 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing";
399 // Allow heuristics to determine when a layer tile should be drawn with the
400 // Skia GPU backend. Only valid with GPU accelerated compositing +
401 // impl-side painting.
402 const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
404 // When using CPU rasterizing generate low resolution tiling. Low res
405 // tiles may be displayed during fast scrolls especially on slower devices.
406 const char kEnableLowResTiling[] = "enable-low-res-tiling";
408 // See comment for kEnableCompositingForFixedPosition.
409 const char kEnableHighDpiCompositingForFixedPosition[] =
410 "enable-high-dpi-fixed-position-compositing";
412 #if defined(OS_WIN)
413 // Disable the Legacy Window which corresponds to the size of the WebContents.
414 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
416 // Enables the DirectWrite font rendering system on windows.
417 const char kEnableDirectWrite[] = "enable-direct-write";
419 // Use high resolution timers for TimeTicks.
420 const char kEnableHighResolutionTime[] = "enable-high-resolution-time";
422 // Enable the Win32K process mitigation policy for renderer processes which
423 // prevents them from invoking user32 and gdi32 system calls which enter
424 // the kernel. This is only supported on Windows 8 and beyond.
425 const char kEnableWin32kRendererLockDown[]
426 = "enable_win32k_renderer_lockdown";
427 #endif
429 // Paint content on the compositor thread instead of the main thread.
430 const char kEnableImplSidePainting[] = "enable-impl-side-painting";
432 // Enables support for inband text tracks in media content.
433 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
435 // Force logging to be enabled. Logging is disabled by default in release
436 // builds.
437 const char kEnableLogging[] = "enable-logging";
439 // Enables the memory benchmarking extension
440 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking";
442 // Enable rasterizer that writes directly to GPU memory.
443 const char kEnableOneCopy[] = "enable-one-copy";
445 // Enables use of hardware overlay for fullscreen video playback. Android only.
446 const char kEnableOverlayFullscreenVideo[] = "enable-overlay-fullscreen-video";
448 // Disables blink subtitle and media control on top of overlay fullscreen video.
449 const char kDisableOverlayFullscreenVideoSubtitle[] =
450 "disable-overlay-fullscreen-video-subtitle";
452 // Forward overscroll event data from the renderer to the browser.
453 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
455 // Enables compositor-accelerated touch-screen pinch gestures.
456 const char kEnablePinch[] = "enable-pinch";
458 // Make the values returned to window.performance.memory more granular and more
459 // up to date in shared worker. Without this flag, the memory information is
460 // still available, but it is bucketized and updated less frequently. This flag
461 // also applys to workers.
462 const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
464 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407.
465 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching";
467 // Enables the CSS multicol implementation that uses the regions implementation.
468 const char kEnableRegionBasedColumns[] =
469 "enable-region-based-columns";
471 // Enables the new layout/paint system which paints after layout is complete.
472 const char kEnableRepaintAfterLayout[] =
473 "enable-repaint-after-layout";
475 // Enables targeted style recalculation optimizations.
476 const char kEnableTargetedStyleRecalc[] =
477 "enable-targeted-style-recalc";
479 // Cause the OS X sandbox write to syslog every time an access to a resource
480 // is denied by the sandbox.
481 const char kEnableSandboxLogging[] = "enable-sandbox-logging";
483 // Enables seccomp-bpf support for Android. Requires experimental kernel
484 // support. <http://crbug.com/166704>
485 const char kEnableSeccompFilterSandbox[] =
486 "enable-seccomp-filter-sandbox";
488 // Enables the Skia benchmarking extension
489 const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking";
491 // On platforms that support it, enables smooth scroll animation.
492 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling";
494 // Enable spatial navigation
495 const char kEnableSpatialNavigation[] = "enable-spatial-navigation";
497 // Enables the synthesis part of the Web Speech API.
498 const char kEnableSpeechSynthesis[] = "enable-speech-synthesis";
500 // Enables StatsTable, logging statistics to a global named shared memory table.
501 const char kEnableStatsTable[] = "enable-stats-table";
503 // Experimentally ensures that each renderer process:
504 // 1) Only handles rendering for pages from a single site, apart from iframes.
505 // (Note that a page can reference content from multiple origins due to images,
506 // JavaScript files, etc. Cross-site iframes are also loaded in-process.)
507 // 2) Only has authority to see or use cookies for the page's top-level origin.
508 // (So if a.com iframes b.com, the b.com network request will be sent without
509 // cookies.)
510 // This is expected to break compatibility with many pages for now. Unlike the
511 // --site-per-process flag, this allows cross-site iframes, but it blocks all
512 // cookies on cross-site requests.
513 const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation";
515 // Enable support for ServiceWorker. See
516 // https://github.com/slightlyoff/ServiceWorker for more information.
517 const char kEnableServiceWorker[] = "enable-service-worker";
519 // Enable support for sync events in ServiceWorkers.
520 const char kEnableServiceWorkerSync[] = "enable-service-worker-sync";
522 // Enable use of experimental TCP sockets API for sending data in the
523 // SYN packet.
524 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen";
526 // Enable multithreaded GPU compositing of web content.
527 const char kEnableThreadedCompositing[] = "enable-threaded-compositing";
529 // Enable accelerated overflow scrolling in all cases.
530 const char kEnableUniversalAcceleratedOverflowScroll[] =
531 "enable-universal-accelerated-overflow-scroll";
533 // Enable screen capturing support for MediaStream API.
534 const char kEnableUserMediaScreenCapturing[] =
535 "enable-usermedia-screen-capturing";
537 // Enables the use of the @viewport CSS rule, which allows
538 // pages to control aspects of their own layout. This also turns on touch-screen
539 // pinch gestures.
540 const char kEnableViewport[] = "enable-viewport";
542 // Enables the use of the legacy viewport meta tag. Turning this on also
543 // turns on the @viewport CSS rule
544 const char kEnableViewportMeta[] = "enable-viewport-meta";
546 // Resizes of the main frame are the caused by changing between landscape
547 // and portrait mode (i.e. Android) so the page should be rescaled to fit
548 const char kMainFrameResizesAreOrientationChanges[] =
549 "main-frame-resizes-are-orientation-changes";
551 // Enable the Vtune profiler support.
552 const char kEnableVtune[] = "enable-vtune-support";
554 // Enable SVG Animations on the Web Animations model.
555 const char kEnableWebAnimationsSVG[] = "enable-web-animations-svg";
557 // Enables WebGL extensions not yet approved by the community.
558 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
560 // Enables WebGL rendering into a scanout buffer for overlay support.
561 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
563 // Enables Web MIDI API.
564 const char kEnableWebMIDI[] = "enable-web-midi";
566 // Enable rasterizer that writes directly to GPU memory associated with tiles.
567 const char kEnableZeroCopy[] = "enable-zero-copy";
569 // Load NPAPI plugins from the specified directory.
570 const char kExtraPluginDir[] = "extra-plugin-dir";
572 // Enable force_compositing_mode in layout tests.
573 const char kForceCompositingMode[] = "force-compositing-mode";
575 // Some field trials may be randomized in the browser, and the randomly selected
576 // outcome needs to be propagated to the renderer. For instance, this is used
577 // to modify histograms recorded in the renderer, or to get the renderer to
578 // also set of its state (initialize, or not initialize components) to match the
579 // experiment(s). The option is also useful for forcing field trials when
580 // testing changes locally. The argument is a list of name and value pairs,
581 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in
582 // field_trial.h for details.
583 const char kForceFieldTrials[] = "force-fieldtrials";
585 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
586 // accelerated compositing + impl-side painting. Overrides the
587 // kEnableGpuRasterization flag.
588 const char kForceGpuRasterization[] = "force-gpu-rasterization";
590 // Force renderer accessibility to be on instead of enabling it on demand when
591 // a screen reader is detected. The disable-renderer-accessibility switch
592 // overrides this if present.
593 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
595 // Passes gpu device_id from browser process to GPU process.
596 const char kGpuDeviceID[] = "gpu-device-id";
598 // Passes gpu driver_vendor from browser process to GPU process.
599 const char kGpuDriverVendor[] = "gpu-driver-vendor";
601 // Passes gpu driver_version from browser process to GPU process.
602 const char kGpuDriverVersion[] = "gpu-driver-version";
604 // Extra command line options for launching the GPU process (normally used
605 // for debugging). Use like renderer-cmd-prefix.
606 const char kGpuLauncher[] = "gpu-launcher";
608 // Makes this process a GPU sub-process.
609 const char kGpuProcess[] = "gpu-process";
611 // Allow shmat system call in GPU sandbox.
612 const char kGpuSandboxAllowSysVShm[] = "gpu-sandbox-allow-sysv-shm";
614 // Makes GPU sandbox failures fatal.
615 const char kGpuSandboxFailuresFatal[] = "gpu-sandbox-failures-fatal";
617 // Allow GPU sandbox to start later
618 const char kGpuSandboxStartAfterInitialization[] =
619 "gpu-sandbox-start-after-initialization";
621 // Causes the GPU process to display a dialog on launch.
622 const char kGpuStartupDialog[] = "gpu-startup-dialog";
624 // Passes gpu vendor_id from browser process to GPU process.
625 const char kGpuVendorID[] = "gpu-vendor-id";
627 // These mappings only apply to the host resolver.
628 const char kHostResolverRules[] = "host-resolver-rules";
630 // Ignores certificate-related errors.
631 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors";
633 // Ignores GPU blacklist.
634 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist";
636 // Run the GPU process as a thread in the browser process.
637 const char kInProcessGPU[] = "in-process-gpu";
639 // Specifies the flags passed to JS engine
640 const char kJavaScriptFlags[] = "js-flags";
642 // Load an NPAPI plugin from the specified path.
643 const char kLoadPlugin[] = "load-plugin";
645 // Logs GPU control list decisions when enforcing blacklist rules.
646 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions";
648 // Sets the minimum log level. Valid values are from 0 to 3:
649 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
650 const char kLoggingLevel[] = "log-level";
652 // Enables saving net log events to a file and sets the file name to use.
653 const char kLogNetLog[] = "log-net-log";
655 // Make plugin processes log their sent and received messages to VLOG(1).
656 const char kLogPluginMessages[] = "log-plugin-messages";
658 // Sets the width and height above which a composited layer will get tiled.
659 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
660 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
662 // Sample memory usage with high frequency and store the results to the
663 // Renderer.Memory histogram. Used in memory tests.
664 const char kMemoryMetrics[] = "memory-metrics";
666 // Mutes audio sent to the audio device so it is not audible during
667 // automated testing.
668 const char kMuteAudio[] = "mute-audio";
670 // Don't send HTTP-Referer headers.
671 const char kNoReferrers[] = "no-referrers";
673 // Disables the sandbox for all process types that are normally sandboxed.
674 const char kNoSandbox[] = "no-sandbox";
676 // Number of worker threads used to rasterize content.
677 const char kNumRasterThreads[] = "num-raster-threads";
679 // Enables or disables history navigation in response to horizontal overscroll.
680 // Set the value to '1' to enable the feature, and set to '0' to disable.
681 // Defaults to enabled.
682 const char kOverscrollHistoryNavigation[] =
683 "overscroll-history-navigation";
685 // Specifies a command that should be used to launch the plugin process. Useful
686 // for running the plugin process through purify or quantify. Ex:
687 // --plugin-launcher="path\to\purify /Run=yes"
688 const char kPluginLauncher[] = "plugin-launcher";
690 // Tells the plugin process the path of the plugin to load
691 const char kPluginPath[] = "plugin-path";
693 // Causes the process to run as a plugin subprocess.
694 const char kPluginProcess[] = "plugin";
696 // Causes the plugin process to display a dialog on launch.
697 const char kPluginStartupDialog[] = "plugin-startup-dialog";
699 // Argument to the process type that indicates a PPAPI broker process type.
700 const char kPpapiBrokerProcess[] = "ppapi-broker";
702 // "Command-line" arguments for the PPAPI Flash; used for debugging options.
703 const char kPpapiFlashArgs[] = "ppapi-flash-args";
705 // Runs PPAPI (Pepper) plugins in-process.
706 const char kPpapiInProcess[] = "ppapi-in-process";
708 // Like kPluginLauncher for PPAPI plugins.
709 const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher";
711 // Argument to the process type that indicates a PPAPI plugin process type.
712 const char kPpapiPluginProcess[] = "ppapi";
714 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use
715 // --no-sandbox as well or the sandbox won't allow the dialog to display.
716 const char kPpapiStartupDialog[] = "ppapi-startup-dialog";
718 // Runs a single process for each site (i.e., group of pages from the same
719 // registered domain) the user visits. We default to using a renderer process
720 // for each site instance (i.e., group of pages from the same registered
721 // domain with script connections to each other).
722 const char kProcessPerSite[] = "process-per-site";
724 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
725 // renderer process. We default to using a renderer process for each
726 // site instance (i.e., group of pages from the same registered domain with
727 // script connections to each other).
728 const char kProcessPerTab[] = "process-per-tab";
730 // The value of this switch determines whether the process is started as a
731 // renderer or plugin host. If it's empty, it's the browser.
732 const char kProcessType[] = "type";
734 // Enables more web features over insecure connections. Designed to be used
735 // for testing purposes only.
736 const char kReduceSecurityForTesting[] = "reduce-security-for-testing";
738 // Register Pepper plugins (see pepper_plugin_list.cc for its format).
739 const char kRegisterPepperPlugins[] = "register-pepper-plugins";
741 // Enables remote debug over HTTP on the specified port.
742 const char kRemoteDebuggingPort[] = "remote-debugging-port";
744 // Causes the renderer process to throw an assertion on launch.
745 const char kRendererAssertTest[] = "renderer-assert-test";
747 // On POSIX only: the contents of this flag are prepended to the renderer
748 // command line. Useful values might be "valgrind" or "xterm -e gdb --args".
749 const char kRendererCmdPrefix[] = "renderer-cmd-prefix";
751 // Causes the process to run as renderer instead of as browser.
752 const char kRendererProcess[] = "renderer";
754 // Overrides the default/calculated limit to the number of renderer processes.
755 // Very high values for this setting can lead to high memory/resource usage
756 // or instability.
757 const char kRendererProcessLimit[] = "renderer-process-limit";
759 // Causes the renderer process to display a dialog on launch.
760 const char kRendererStartupDialog[] = "renderer-startup-dialog";
762 // Causes the process to run as a sandbox IPC subprocess.
763 const char kSandboxIPCProcess[] = "sandbox-ipc";
765 // Enables or disables scroll end effect in response to vertical overscroll.
766 // Set the value to '1' to enable the feature, and set to '0' to disable.
767 // Defaults to disabled.
768 const char kScrollEndEffect[] = "scroll-end-effect";
770 // Visibly render a border around paint rects in the web page to help debug
771 // and study painting behavior.
772 const char kShowPaintRects[] = "show-paint-rects";
774 // Runs the renderer and plugins in the same process as the browser
775 const char kSingleProcess[] = "single-process";
777 // Experimentally enforces a one-site-per-process security policy.
778 // All cross-site navigations force process swaps, and we can restrict a
779 // renderer process's access rights based on its site. For details, see:
780 // http://www.chromium.org/developers/design-documents/site-isolation
782 // Unlike --enable-strict-site-isolation (which allows cross-site iframes),
783 // this flag does not affect which cookies are attached to cross-site requests.
784 // Support is being added to render cross-site iframes in a different process
785 // than their parent pages.
786 const char kSitePerProcess[] = "site-per-process";
788 // Skip gpu info collection, blacklist loading, and blacklist auto-update
789 // scheduling at browser startup time.
790 // Therefore, all GPU features are available, and about:gpu page shows empty
791 // content. The switch is intended only for layout tests.
792 // TODO(gab): Get rid of this switch entirely.
793 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading";
795 // Specifies if the browser should start in fullscreen mode, like if the user
796 // had pressed F11 right after startup.
797 const char kStartFullscreen[] = "start-fullscreen";
799 // Specifies if the |StatsCollectionController| needs to be bound in the
800 // renderer. This binding happens on per-frame basis and hence can potentially
801 // be a performance bottleneck. One should only enable it when running a test
802 // that needs to access the provided statistics.
803 const char kStatsCollectionController[] =
804 "enable-stats-collection-bindings";
806 // Upscale defaults to "good".
807 const char kTabCaptureDownscaleQuality[] = "tab-capture-downscale-quality";
809 // Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
810 // One flag for upscaling, one for downscaling.
811 // Upscale defaults to "best".
812 const char kTabCaptureUpscaleQuality[] = "tab-capture-upscale-quality";
814 // Allows for forcing socket connections to http/https to use fixed ports.
815 const char kTestingFixedHttpPort[] = "testing-fixed-http-port";
816 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port";
818 // Runs the security test for the renderer sandbox.
819 const char kTestSandbox[] = "test-sandbox";
821 // Type of the current test harness ("browser" or "ui").
822 const char kTestType[] = "test-type";
824 const char kTouchScrollingMode[] = "touch-scrolling-mode";
825 const char kTouchScrollingModeAsyncTouchmove[] = "async-touchmove";
826 const char kTouchScrollingModeSyncTouchmove[] = "sync-touchmove";
827 const char kTouchScrollingModeTouchcancel[] = "touchcancel";
829 // Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
830 // can specify the specific trace categories to include (e.g.
831 // --trace-shutdown=base,net) otherwise, all events are recorded.
832 // --trace-shutdown-file can be used to control where the trace log gets stored
833 // to since there is otherwise no way to access the result.
834 const char kTraceShutdown[] = "trace-shutdown";
836 // If supplied, sets the file which shutdown tracing will be stored into, if
837 // omitted the default will be used "chrometrace.log" in the current directory.
838 // Has no effect unless --trace-shutdown is also supplied.
839 // Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
840 const char kTraceShutdownFile[] = "trace-shutdown-file";
842 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
843 // specify the specific trace categories to include (e.g.
844 // --trace-startup=base,net) otherwise, all events are recorded. Setting this
845 // flag results in the first call to BeginTracing() to receive all trace events
846 // since startup. In Chrome, you may find --trace-startup-file and
847 // --trace-startup-duration to control the auto-saving of the trace (not
848 // supported in the base-only TraceLog component).
849 const char kTraceStartup[] = "trace-startup";
851 // Sets the time in seconds until startup tracing ends. If omitted a default of
852 // 5 seconds is used. Has no effect without --trace-startup, or if
853 // --startup-trace-file=none was supplied.
854 const char kTraceStartupDuration[] = "trace-startup-duration";
856 // If supplied, sets the file which startup tracing will be stored into, if
857 // omitted the default will be used "chrometrace.log" in the current directory.
858 // Has no effect unless --trace-startup is also supplied.
859 // Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
860 // As a special case, can be set to 'none' - this disables automatically saving
861 // the result to a file and the first manually recorded trace will then receive
862 // all events since startup.
863 const char kTraceStartupFile[] = "trace-startup-file";
867 // Prioritizes the UI's command stream in the GPU process
868 extern const char kUIPrioritizeInGpuProcess[] =
869 "ui-prioritize-in-gpu-process";
871 // Overrides the preferred discardable memory implementation.
872 const char kUseDiscardableMemory[] = "use-discardable-memory";
874 // Bypass the media stream infobar by selecting the default device for media
875 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
876 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream";
878 // Set when Chromium should use a mobile user agent.
879 const char kUseMobileUserAgent[] = "use-mobile-user-agent";
881 // Use the new surfaces system to handle compositor delegation.
882 const char kUseSurfaces[] = "use-surfaces";
884 // On POSIX only: the contents of this flag are prepended to the utility
885 // process command line. Useful values might be "valgrind" or "xterm -e gdb
886 // --args".
887 const char kUtilityCmdPrefix[] = "utility-cmd-prefix";
889 // Causes the process to run as a utility subprocess.
890 const char kUtilityProcess[] = "utility";
892 // The utility process is sandboxed, with access to one directory. This flag
893 // specifies the directory that can be accessed.
894 const char kUtilityProcessAllowedDir[] = "utility-allowed-dir";
896 // Allows MDns to access network in sandboxed process.
897 const char kUtilityProcessEnableMDns[] = "utility-enable-mdns";
899 const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
901 // In debug builds, asserts that the stream of input events is valid.
902 const char kValidateInputEventStream[] = "validate-input-event-stream";
904 // Will add kWaitForDebugger to every child processes. If a value is passed, it
905 // will be used as a filter to determine if the child process should have the
906 // kWaitForDebugger flag passed on or not.
907 const char kWaitForDebuggerChildren[] = "wait-for-debugger-children";
909 // Causes the process to run as a worker subprocess.
910 const char kWorkerProcess[] = "worker";
912 // The prefix used when starting the zygote process. (i.e. 'gdb --args')
913 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix";
915 // Causes the process to run as a renderer zygote.
916 const char kZygoteProcess[] = "zygote";
918 #if defined(ENABLE_WEBRTC)
919 // Disables audio processing in a MediaStreamTrack. When this flag is on, AEC,
920 // NS and AGC will be done in PeerConnection instead of MediaStreamTrack.
921 const char kDisableAudioTrackProcessing[] = "disable-audio-track-processing";
923 // Disables WebRTC device enumeration.
924 const char kDisableDeviceEnumeration[] = "disable-device-enumeration";
926 // Disables HW decode acceleration for WebRTC.
927 const char kDisableWebRtcHWDecoding[] = "disable-webrtc-hw-decoding";
929 // Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
930 // ignores this switch on its stable and beta channels.
931 const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption";
933 // Disables HW encode acceleration for WebRTC.
934 const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding";
936 // Enables VP8 HW encode acceleration for WebRTC.
937 const char kEnableWebRtcHWVp8Encoding[] = "enable-webrtc-hw-vp8-encoding";
938 #endif
940 #if defined(OS_ANDROID)
941 // Disable user gesture requirement for media playback.
942 const char kDisableGestureRequirementForMediaPlayback[] =
943 "disable-gesture-requirement-for-media-playback";
945 // Disable the click delay by sending click events during double tap.
946 const char kDisableClickDelay[] = "disable-click-delay";
948 // Disable overscroll edge effects like those found in Android views.
949 const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect";
951 // WebRTC is enabled by default on Android.
952 const char kDisableWebRTC[] = "disable-webrtc";
954 // Enable the recognition part of the Web Speech API.
955 const char kEnableSpeechRecognition[] = "enable-speech-recognition";
957 // Always use the video overlay for the embedded video.
958 // This switch is intended only for tests.
959 const char kForceUseOverlayEmbeddedVideo[] = "force-use-overlay-embedded-video";
961 // The telephony region (ISO country code) to use in phone number detection.
962 const char kNetworkCountryIso[] = "network-country-iso";
964 // Enables remote debug over HTTP on the specified socket name.
965 const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name";
966 #endif
968 // Disable web audio API.
969 const char kDisableWebAudio[] = "disable-webaudio";
971 #if defined(OS_CHROMEOS)
972 // Disables panel fitting (used for mirror mode).
973 const char kDisablePanelFitting[] = "disable-panel-fitting";
974 #endif
976 #if defined(OS_MACOSX) && !defined(OS_IOS)
977 const char kEnableCarbonInterposing[] = "enable-carbon-interposing";
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 // Don't dump stuff here, follow the same order as the header.
987 } // namespace switches