content_switches.cc revision 1e9bf3e0803691d0a228da41fc608347b6db4340
1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "content/public/common/content_switches.h" 6 7namespace switches { 8 9// The number of MSAA samples for canvas2D. Requires MSAA support by GPU to 10// have an effect. 0 disables MSAA. 11const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count"; 12 13// By default, file:// URIs cannot read other file:// URIs. This is an 14// override for developers who need the old behavior for testing. 15const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; 16 17// Allows filters (SkImageFilter objects) to be sent between processes over IPC 18const char kAllowFiltersOverIPC[] = "allow-filters-over-ipc"; 19 20// Enables the sandboxed processes to run without a job object assigned to them. 21// This flag is required to allow Chrome to run in RemoteApps or Citrix. This 22// flag can reduce the security of the sandboxed processes and allow them to do 23// certain API calls like shut down Windows or access the clipboard. Also we 24// lose the chance to kill some processes until the outer job that owns them 25// finishes. 26const char kAllowNoSandboxJob[] = "allow-no-sandbox-job"; 27 28// Allows debugging of sandboxed processes (see zygote_main_linux.cc). 29const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; 30 31// Allow compositing on chrome:// pages. 32const char kAllowWebUICompositing[] = "allow-webui-compositing"; 33 34// The same as kAuditHandles except all handles are enumerated. 35const char kAuditAllHandles[] = "enable-handle-auditing-all"; 36 37// Enumerates and prints a child process' most dangerous handles when it 38// is terminated. 39const char kAuditHandles[] = "enable-handle-auditing"; 40 41// Blacklist the GPU for accelerated compositing. 42const char kBlacklistAcceleratedCompositing[] = 43 "blacklist-accelerated-compositing"; 44 45// Blacklist the GPU for WebGL. 46const char kBlacklistWebGL[] = "blacklist-webgl"; 47 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. 52const char kBlockCrossSiteDocuments[] = "block-cross-site-documents"; 53 54// Causes the browser process to throw an assertion on startup. 55const char kBrowserAssertTest[] = "assert-test"; 56 57// Causes the browser process to crash on startup. 58const char kBrowserCrashTest[] = "crash-test"; 59 60// Path to the exe to run for the renderer and plugin subprocesses. 61const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 62 63// Dumps extra logging about plugin loading to the log file. 64const char kDebugPluginLoading[] = "debug-plugin-loading"; 65 66// Sets the tile size used by composited layers. 67const char kDefaultTileWidth[] = "default-tile-width"; 68const char kDefaultTileHeight[] = "default-tile-height"; 69 70// Disable antialiasing on 2d canvas. 71const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; 72 73// Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. 74// This is controlled by policy and is kept separate from the other 75// enable/disable switches to avoid accidentally regressing the policy 76// support for controlling access to these APIs. 77const char kDisable3DAPIs[] = "disable-3d-apis"; 78 79// Disable gpu-accelerated 2d canvas. 80const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; 81 82// Disables accelerated compositing. 83const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; 84 85// Disables accelerated compositing for backgrounds of root layers with 86// background-attachment: fixed. 87const char kDisableAcceleratedFixedRootBackground[] = 88 "disable-accelerated-fixed-root-background"; 89 90// Disables the hardware acceleration of 3D CSS and animation. 91const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; 92 93// Disables accelerated compositing for overflow scroll. 94const char kDisableAcceleratedOverflowScroll[] = 95 "disable-accelerated-overflow-scroll"; 96 97// Disable accelerated compositing for scrollable frames. 98const char kDisableAcceleratedScrollableFrames[] = 99 "disable-accelerated-scrollable-frames"; 100 101// Disables the hardware acceleration of plugins. 102const char kDisableAcceleratedPlugins[] = "disable-accelerated-plugins"; 103 104// Disables GPU accelerated video display. 105const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; 106 107// Disables hardware acceleration of video decode, where available. 108const char kDisableAcceleratedVideoDecode[] = 109 "disable-accelerated-video-decode"; 110 111// Disables the alternate window station for the renderer. 112const char kDisableAltWinstation[] = "disable-winsta"; 113 114// Disable the ApplicationCache. 115const char kDisableApplicationCache[] = "disable-application-cache"; 116// 117// TODO(scherkus): remove --disable-audio when we have a proper fallback 118// mechanism. 119const char kDisableAudio[] = "disable-audio"; 120 121// Disable limits on the number of backing stores. Can prevent blinking for 122// users with many windows/tabs and lots of memory. 123const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; 124 125// Enables browser plugin compositing experiment. 126const char kDisableBrowserPluginCompositing[] = 127 "disable-browser-plugin-compositing"; 128 129// Disable accelerated scrolling by the compositor for frames. 130const char kDisableCompositedScrollingForFrames[] = 131 "disable-composited-scrolling-for-frames"; 132 133// See comment for kEnableCompositingForFixedPosition. 134const char kDisableCompositingForFixedPosition[] = 135 "disable-fixed-position-compositing"; 136 137// See comment for kEnableCompositingForTransition. 138const char kDisableCompositingForTransition[] = 139 "disable-transition-compositing"; 140 141// Disables HTML5 DB support. 142const char kDisableDatabases[] = "disable-databases"; 143 144// Disables the deadline scheduler. 145const char kDisableDeadlineScheduling[] = "disable-deadline-scheduling"; 146 147// Disables delegated renderer. 148const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; 149 150// Disables desktop notifications (default enabled on windows). 151const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; 152 153// Disable device motion events. 154const char kDisableDeviceMotion[] = "disable-device-motion"; 155 156// Disable device orientation events. 157const char kDisableDeviceOrientation[] = "disable-device-orientation"; 158 159// Handles URL requests by NPAPI plugins through the renderer. 160const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; 161 162// Disable the per-domain blocking for 3D APIs after GPU reset. 163// This switch is intended only for tests. 164extern const char kDisableDomainBlockingFor3DAPIs[] = 165 "disable-domain-blocking-for-3d-apis"; 166 167// Disable experimental WebGL support. 168const char kDisableExperimentalWebGL[] = "disable-webgl"; 169 170// Disable FileSystem API. 171const char kDisableFileSystem[] = "disable-file-system"; 172 173const char kDisableFixedPositionCreatesStackingContext[] 174 = "disable-fixed-position-creates-stacking-context"; 175 176// Disable 3D inside of flapper. 177const char kDisableFlash3d[] = "disable-flash-3d"; 178 179// Disable Stage3D inside of flapper. 180const char kDisableFlashStage3d[] = "disable-flash-stage3d"; 181 182// This flag disables force compositing mode and prevents it from being enabled 183// via field trials. 184const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; 185 186// Disable the JavaScript Full Screen API. 187const char kDisableFullScreen[] = "disable-fullscreen"; 188 189// Suppresses support for the Geolocation javascript API. 190const char kDisableGeolocation[] = "disable-geolocation"; 191 192const char kDisableGestureTapHighlight[] = "disable-gesture-tap-highlight"; 193 194// Disable GL multisampling. 195const char kDisableGLMultisampling[] = "disable-gl-multisampling"; 196 197// Disables GPU hardware acceleration. If software renderer is not in place, 198// then the GPU process won't launch. 199const char kDisableGpu[] = "disable-gpu"; 200 201// Prevent the compositor from using its GPU implementation. 202const char kDisableGpuCompositing[] = "disable-gpu-compositing"; 203 204// Do not launch the GPU process shortly after browser process launch. Instead 205// launch it when it is first needed. 206const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch"; 207 208// Disable the GPU process sandbox. 209const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; 210 211// Disable the thread that crashes the GPU process if it stops responding to 212// messages. 213const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; 214 215// Suppresses hang monitor dialogs in renderer processes. This may allow slow 216// unload handlers on a page to prevent the tab from closing, but the Task 217// Manager can be used to terminate the offending process in this case. 218const char kDisableHangMonitor[] = "disable-hang-monitor"; 219 220// Disable the RenderThread's HistogramCustomizer. 221const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; 222 223// Disables HTML-based desktop notifications. 224const char kDisableHTMLNotifications[] = "disable-html-notifications"; 225 226// Disable the use of an ImageTransportSurface. This means the GPU process 227// will present the rendered page rather than the browser process. 228const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; 229 230// Prevent Java from running. 231const char kDisableJava[] = "disable-java"; 232 233// Don't execute JavaScript (browser JS like the new tab page still runs). 234const char kDisableJavaScript[] = "disable-javascript"; 235 236// Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). 237const char kDisablePrefixedEncryptedMedia[] = 238 "disable-prefixed-encrypted-media"; 239 240// Disable LocalStorage. 241const char kDisableLocalStorage[] = "disable-local-storage"; 242 243// Force logging to be disabled. Logging is enabled by default in debug 244// builds. 245const char kDisableLogging[] = "disable-logging"; 246 247// Disable Pepper3D. 248const char kDisablePepper3d[] = "disable-pepper-3d"; 249 250// Disables compositor-accelerated touch-screen pinch gestures. 251const char kDisablePinch[] = "disable-pinch"; 252 253// Prevent plugins from running. 254const char kDisablePlugins[] = "disable-plugins"; 255 256// Disable discovering third-party plug-ins. Effectively loading only 257// ones shipped with the browser plus third-party ones as specified by 258// --extra-plugin-dir and --load-plugin switches. 259const char kDisablePluginsDiscovery[] = "disable-plugins-discovery"; 260 261// Disables remote web font support. SVG font should always work whether this 262// option is specified or not. 263const char kDisableRemoteFonts[] = "disable-remote-fonts"; 264 265// Turns off the accessibility in the renderer. 266const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; 267 268// Disable the seccomp filter sandbox (seccomp-bpf) (Linux only). 269const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox"; 270 271// Disable session storage. 272const char kDisableSessionStorage[] = "disable-session-storage"; 273 274// Disable the setuid sandbox (Linux only). 275const char kDisableSetuidSandbox[] = "disable-setuid-sandbox"; 276 277// Enable shared workers. Functionality not yet complete. 278const char kDisableSharedWorkers[] = "disable-shared-workers"; 279 280// Disables site-specific tailoring to compatibility issues in WebKit. 281const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks"; 282 283// Disable smooth scrolling for testing. 284const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; 285 286// Disables the use of a 3D software rasterizer. 287const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; 288 289// Disables speech input. 290const char kDisableSpeechInput[] = "disable-speech-input"; 291 292// Disable False Start in SSL and TLS connections. 293const char kDisableSSLFalseStart[] = "disable-ssl-false-start"; 294 295// Disable multithreaded GPU compositing of web content. 296const char kDisableThreadedCompositing[] = "disable-threaded-compositing"; 297 298// Disables the threaded HTML parser in Blink 299const char kDisableThreadedHTMLParser[] = "disable-threaded-html-parser"; 300 301// Disable accelerated overflow scrolling in corner cases (that would not be 302// handled by enable-accelerated-overflow-scroll). 303const char kDisableUniversalAcceleratedOverflowScroll[] = 304 "disable-universal-accelerated-overflow-scroll"; 305 306// Disable web audio API. 307const char kDisableWebAudio[] = "disable-webaudio"; 308 309// Disables prefixed Media Source API (i.e., the WebKitMediaSource object). 310const char kDisableWebKitMediaSource[] = "disable-webkit-media-source"; 311 312// Disables unprefixed Media Source API (i.e., the MediaSource object). 313const char kDisableUnprefixedMediaSource[] = "disable-unprefixed-media-source"; 314 315// Don't enforce the same-origin policy. (Used by people testing their sites.) 316const char kDisableWebSecurity[] = "disable-web-security"; 317 318// Disables support for XSLT. 319const char kDisableXSLT[] = "disable-xslt"; 320 321// Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS. 322const char kDisableXSSAuditor[] = "disable-xss-auditor"; 323 324// Specifies if the |DOMAutomationController| needs to be bound in the 325// renderer. This binding happens on per-frame basis and hence can potentially 326// be a performance bottleneck. One should only enable it when automating dom 327// based tests. 328const char kDomAutomationController[] = "dom-automation"; 329 330// Enable gpu-accelerated SVG/W3C filters. 331const char kEnableAcceleratedFilters[] = "enable-accelerated-filters"; 332 333// Enables accelerated compositing for backgrounds of root layers with 334// background-attachment: fixed. Requires kForceCompositingMode. 335const char kEnableAcceleratedFixedRootBackground[] = 336 "enable-accelerated-fixed-root-background"; 337 338// Enables accelerated compositing for overflow scroll. Promotes eligible 339// overflow:scroll elements to layers to enable accelerated scrolling for them. 340const char kEnableAcceleratedOverflowScroll[] = 341 "enable-accelerated-overflow-scroll"; 342 343// Enables accelerated compositing for scrollable frames for accelerated 344// scrolling for them. Requires kForceCompositingMode. 345const char kEnableAcceleratedScrollableFrames[] = 346 "enable-accelerated-scrollable-frames"; 347 348// Turns on extremely verbose logging of accessibility events. 349const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; 350 351// Use a BeginImplFrame signal from browser to renderer to schedule rendering. 352const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; 353 354// Enables browser plugin for all types of pages. 355const char kEnableBrowserPluginForAllViewTypes[] = 356 "enable-browser-plugin-for-all-view-types"; 357 358// Enables Drag and Drop into and out of Browser Plugin. 359// kEnableBrowserPluginGuestViews must also be set at this time. 360const char kEnableBrowserPluginDragDrop[] = "enable-browser-plugin-drag-drop"; 361 362// Enables accelerated scrolling by the compositor for frames. Requires 363// kForceCompositingMode and kEnableAcceleratedScrollableFrames. 364const char kEnableCompositedScrollingForFrames[] = 365 "enable-composited-scrolling-for-frames"; 366 367// Enable the creation of compositing layers for fixed position 368// elements. Three options are needed to support four possible scenarios: 369// 1. Default (disabled) 370// 2. Enabled always (to allow dogfooding) 371// 3. Disabled always (to give safety fallback for users) 372// 4. Enabled only if we detect a highDPI display 373// 374// Option #4 may soon be the default, because the feature is needed soon for 375// high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will 376// override Option #4. 377const char kEnableCompositingForFixedPosition[] = 378 "enable-fixed-position-compositing"; 379 380// Enable/Disable the creation of compositing layers for RenderLayers with a 381// transition on a property that supports accelerated animation (that is, 382// opacity, -webkit-transform, and -webkit-filter), even when no animation is 383// running. These options allow for three possible scenarios: 384// 1. Default (enabled only if we dectect a highDPI display) 385// 2. Enabled always. 386// 3. Disabled always. 387const char kEnableCompositingForTransition[] = 388 "enable-transition-compositing"; 389 390// Defer image decoding in WebKit until painting. 391const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; 392 393// Enables the deadline scheduler. 394const char kEnableDeadlineScheduling[] = "enable-deadline-scheduling"; 395 396// Enables delegated renderer. 397const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; 398 399// Enables restarting interrupted downloads. 400const char kEnableDownloadResumption[] = "enable-download-resumption"; 401 402// Enables support for Encrypted Media Extensions (e.g. MediaKeys). 403const char kEnableEncryptedMedia[] = "enable-encrypted-media"; 404 405// Enable experimental canvas features, e.g. canvas 2D context attributes 406const char kEnableExperimentalCanvasFeatures[] = 407 "enable-experimental-canvas-features"; 408 409// Enables Web Platform features that are in development. 410const char kEnableExperimentalWebPlatformFeatures[] = 411 "enable-experimental-web-platform-features"; 412 413// Enable an experimental WebSocket implementation. 414const char kEnableExperimentalWebSocket[] = "enable-experimental-websocket"; 415 416// Enable the fast text autosizing implementation. 417const char kEnableFastTextAutosizing[] = "enable-fast-text-autosizing"; 418 419const char kEnableFixedPositionCreatesStackingContext[] 420 = "enable-fixed-position-creates-stacking-context"; 421 422// Enable Gesture Tap Highlight 423const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight"; 424 425// Enables the GPU benchmarking extension 426const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; 427 428// Enables TRACE for GL calls in the renderer. 429const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing"; 430 431// See comment for kEnableCompositingForFixedPosition. 432const char kEnableHighDpiCompositingForFixedPosition[] = 433 "enable-high-dpi-fixed-position-compositing"; 434 435#if defined(OS_WIN) 436// Use high resolution timers for TimeTicks. 437const char kEnableHighResolutionTime[] = "enable-high-resolution-time"; 438#endif 439 440// Enable HTML Imports 441extern const char kEnableHTMLImports[] = "enable-html-imports"; 442 443// Enables support for inband text tracks in media content. 444const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; 445 446// Enable inputmode attribute of HTML input or text element. 447extern const char kEnableInputModeAttribute[] = "enable-input-mode-attribute"; 448 449// Force logging to be enabled. Logging is disabled by default in release 450// builds. 451const char kEnableLogging[] = "enable-logging"; 452 453// Enables the memory benchmarking extension 454const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; 455 456// On Windows, converts the page to the currently-installed monitor profile. 457// This does NOT enable color management for images. The source is still 458// assumed to be sRGB. 459const char kEnableMonitorProfile[] = "enable-monitor-profile"; 460 461// Enables use of cache if offline, even if it's stale 462const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; 463 464// Enables use of hardware overlay for fullscreen video playback. Android only. 465const char kEnableOverlayFullscreenVideo[] = "enable-overlay-fullscreen-video"; 466 467// Enables overlay scrollbars on Aura or Linux. Does nothing on Mac. 468const char kEnableOverlayScrollbars[] = "enable-overlay-scrollbars"; 469 470// Forward overscroll event data from the renderer to the browser. 471const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications"; 472 473// Enables compositor-accelerated touch-screen pinch gestures. 474const char kEnablePinch[] = "enable-pinch"; 475 476// Enable caching of pre-parsed JS script data. See http://crbug.com/32407. 477const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; 478 479// Enable privileged WebGL extensions; without this switch such extensions are 480// available only to Chrome extensions. 481const char kEnablePrivilegedWebGLExtensions[] = 482 "enable-privileged-webgl-extensions"; 483 484// Aggressively free GPU command buffers belonging to hidden tabs. 485const char kEnablePruneGpuCommandBuffers[] = 486 "enable-prune-gpu-command-buffers"; 487 488// Enables the CSS multicol implementation that uses the regions implementation. 489const char kEnableRegionBasedColumns[] = 490 "enable-region-based-columns"; 491 492// Cause the OS X sandbox write to syslog every time an access to a resource 493// is denied by the sandbox. 494const char kEnableSandboxLogging[] = "enable-sandbox-logging"; 495 496// Enables the Skia benchmarking extension 497const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking"; 498 499// On platforms that support it, enables smooth scroll animation. 500const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; 501 502// Allow the compositor to use its software implementation if GL fails. 503const char kEnableSoftwareCompositing[] = "enable-software-compositing"; 504 505// Enable spatial navigation 506const char kEnableSpatialNavigation[] = "enable-spatial-navigation"; 507 508// Enables the synthesis part of the Web Speech API. 509const char kEnableSpeechSynthesis[] = "enable-speech-synthesis"; 510 511// Enables TLS cached info extension. 512const char kEnableSSLCachedInfo[] = "enable-ssl-cached-info"; 513 514// Enables StatsTable, logging statistics to a global named shared memory table. 515const char kEnableStatsTable[] = "enable-stats-table"; 516 517// Experimentally ensures that each renderer process: 518// 1) Only handles rendering for pages from a single site, apart from iframes. 519// (Note that a page can reference content from multiple origins due to images, 520// JavaScript files, etc. Cross-site iframes are also loaded in-process.) 521// 2) Only has authority to see or use cookies for the page's top-level origin. 522// (So if a.com iframes b.com, the b.com network request will be sent without 523// cookies.) 524// This is expected to break compatibility with many pages for now. Unlike the 525// --site-per-process flag, this allows cross-site iframes, but it blocks all 526// cookies on cross-site requests. 527const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation"; 528 529// Enable support for ServiceWorker. See 530// https://github.com/slightlyoff/ServiceWorker for more information. 531const char kEnableServiceWorker[] = "enable-service-worker"; 532 533// Enable use of experimental TCP sockets API for sending data in the 534// SYN packet. 535const char kEnableTcpFastOpen[] = "enable-tcp-fastopen"; 536 537// Enable Text Service Framework(TSF) for text inputting instead of IMM32. This 538// flag is ignored on Metro environment. 539const char kEnableTextServicesFramework[] = "enable-text-services-framework"; 540 541// Enable multithreaded GPU compositing of web content. 542const char kEnableThreadedCompositing[] = "enable-threaded-compositing"; 543 544// Enable accelerated overflow scrolling in all cases. 545const char kEnableUniversalAcceleratedOverflowScroll[] = 546 "enable-universal-accelerated-overflow-scroll"; 547 548// Enable screen capturing support for MediaStream API. 549const char kEnableUserMediaScreenCapturing[] = 550 "enable-usermedia-screen-capturing"; 551 552// Enables the use of the viewport meta tag, which allows 553// pages to control aspects of their own layout. This also turns on touch-screen 554// pinch gestures. 555const char kEnableViewport[] = "enable-viewport"; 556 557// Enables moving cursor by word in visual order. 558const char kEnableVisualWordMovement[] = "enable-visual-word-movement"; 559 560// Enable the Vtune profiler support. 561const char kEnableVtune[] = "enable-vtune-support"; 562 563// Enable CSS Transitions / Animations on the Web Animations model. 564const char kEnableWebAnimationsCSS[] = "enable-web-animations-css"; 565 566// Enable SVG Animations on the Web Animations model. 567const char kEnableWebAnimationsSVG[] = "enable-web-animations-svg"; 568 569// Enables WebGL extensions not yet approved by the community. 570const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; 571 572// Enables Web MIDI API. 573const char kEnableWebMIDI[] = "enable-web-midi"; 574 575// Load NPAPI plugins from the specified directory. 576const char kExtraPluginDir[] = "extra-plugin-dir"; 577 578// If accelerated compositing is supported, always enter compositing mode for 579// the base layer even when compositing is not strictly required. 580const char kForceCompositingMode[] = "force-compositing-mode"; 581 582// Some field trials may be randomized in the browser, and the randomly selected 583// outcome needs to be propagated to the renderer. For instance, this is used 584// to modify histograms recorded in the renderer, or to get the renderer to 585// also set of its state (initialize, or not initialize components) to match the 586// experiment(s). The option is also useful for forcing field trials when 587// testing changes locally. The argument is a list of name and value pairs, 588// separated by slashes. See FieldTrialList::CreateTrialsFromString() in 589// field_trial.h for details. 590const char kForceFieldTrials[] = "force-fieldtrials"; 591 592// Force renderer accessibility to be on instead of enabling it on demand when 593// a screen reader is detected. The disable-renderer-accessibility switch 594// overrides this if present. 595const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 596 597// Passes gpu device_id from browser process to GPU process. 598const char kGpuDeviceID[] = "gpu-device-id"; 599 600// Passes gpu driver_vendor from browser process to GPU process. 601const char kGpuDriverVendor[] = "gpu-driver-vendor"; 602 603// Passes gpu driver_version from browser process to GPU process. 604const char kGpuDriverVersion[] = "gpu-driver-version"; 605 606// Extra command line options for launching the GPU process (normally used 607// for debugging). Use like renderer-cmd-prefix. 608const char kGpuLauncher[] = "gpu-launcher"; 609 610// Makes this process a GPU sub-process. 611const char kGpuProcess[] = "gpu-process"; 612 613// Allow shmat system call in GPU sandbox. 614const char kGpuSandboxAllowSysVShm[] = "gpu-sandbox-allow-sysv-shm"; 615 616// Causes the GPU process to display a dialog on launch. 617const char kGpuStartupDialog[] = "gpu-startup-dialog"; 618 619// Passes gpu vendor_id from browser process to GPU process. 620const char kGpuVendorID[] = "gpu-vendor-id"; 621 622// These mappings only apply to the host resolver. 623const char kHostResolverRules[] = "host-resolver-rules"; 624 625// Ignores certificate-related errors. 626const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; 627 628// Ignores GPU blacklist. 629const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist"; 630 631// Run the GPU process as a thread in the browser process. 632const char kInProcessGPU[] = "in-process-gpu"; 633 634// Runs plugins inside the renderer process 635const char kInProcessPlugins[] = "in-process-plugins"; 636 637// Specifies the flags passed to JS engine 638const char kJavaScriptFlags[] = "js-flags"; 639 640// Load an NPAPI plugin from the specified path. 641const char kLoadPlugin[] = "load-plugin"; 642 643// Logs GPU control list decisions when enforcing blacklist rules. 644const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; 645 646// Sets the minimum log level. Valid values are from 0 to 3: 647// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. 648const char kLoggingLevel[] = "log-level"; 649 650// Enables displaying net log events on the command line, or writing the events 651// to a separate file if a file name is given. 652const char kLogNetLog[] = "log-net-log"; 653 654// Make plugin processes log their sent and received messages to VLOG(1). 655const char kLogPluginMessages[] = "log-plugin-messages"; 656 657// Sets the width and height above which a composited layer will get tiled. 658const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 659const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 660 661// Sample memory usage with high frequency and store the results to the 662// Renderer.Memory histogram. Used in memory tests. 663const char kMemoryMetrics[] = "memory-metrics"; 664 665// Mutes audio sent to the audio device so it is not audible during 666// automated testing. 667const char kMuteAudio[] = "mute-audio"; 668 669// Don't send HTTP-Referer headers. 670const char kNoReferrers[] = "no-referrers"; 671 672// Disables the sandbox for all process types that are normally sandboxed. 673const char kNoSandbox[] = "no-sandbox"; 674 675// Enables or disables history navigation in response to horizontal overscroll. 676// Set the value to '1' to enable the feature, and set to '0' to disable. 677// Defaults to enabled. 678const char kOverscrollHistoryNavigation[] = 679 "overscroll-history-navigation"; 680 681// Specifies a command that should be used to launch the plugin process. Useful 682// for running the plugin process through purify or quantify. Ex: 683// --plugin-launcher="path\to\purify /Run=yes" 684const char kPluginLauncher[] = "plugin-launcher"; 685 686// Tells the plugin process the path of the plugin to load 687const char kPluginPath[] = "plugin-path"; 688 689// Causes the process to run as a plugin subprocess. 690const char kPluginProcess[] = "plugin"; 691 692// Causes the plugin process to display a dialog on launch. 693const char kPluginStartupDialog[] = "plugin-startup-dialog"; 694 695// Argument to the process type that indicates a PPAPI broker process type. 696const char kPpapiBrokerProcess[] = "ppapi-broker"; 697 698// "Command-line" arguments for the PPAPI Flash; used for debugging options. 699const char kPpapiFlashArgs[] = "ppapi-flash-args"; 700 701// Runs PPAPI (Pepper) plugins in-process. 702const char kPpapiInProcess[] = "ppapi-in-process"; 703 704// Like kPluginLauncher for PPAPI plugins. 705const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher"; 706 707// Argument to the process type that indicates a PPAPI plugin process type. 708const char kPpapiPluginProcess[] = "ppapi"; 709 710// Causes the PPAPI sub process to display a dialog on launch. Be sure to use 711// --no-sandbox as well or the sandbox won't allow the dialog to display. 712const char kPpapiStartupDialog[] = "ppapi-startup-dialog"; 713 714// Runs a single process for each site (i.e., group of pages from the same 715// registered domain) the user visits. We default to using a renderer process 716// for each site instance (i.e., group of pages from the same registered 717// domain with script connections to each other). 718const char kProcessPerSite[] = "process-per-site"; 719 720// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own 721// renderer process. We default to using a renderer process for each 722// site instance (i.e., group of pages from the same registered domain with 723// script connections to each other). 724const char kProcessPerTab[] = "process-per-tab"; 725 726// The value of this switch determines whether the process is started as a 727// renderer or plugin host. If it's empty, it's the browser. 728const char kProcessType[] = "type"; 729 730// Reduces the GPU process sandbox to be less strict. 731const char kReduceGpuSandbox[] = "reduce-gpu-sandbox"; 732 733// Register Pepper plugins (see pepper_plugin_list.cc for its format). 734const char kRegisterPepperPlugins[] = "register-pepper-plugins"; 735 736 737// Enables remote debug over HTTP on the specified port. 738const char kRemoteDebuggingPort[] = "remote-debugging-port"; 739 740// Causes the renderer process to throw an assertion on launch. 741const char kRendererAssertTest[] = "renderer-assert-test"; 742 743// On POSIX only: the contents of this flag are prepended to the renderer 744// command line. Useful values might be "valgrind" or "xterm -e gdb --args". 745const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; 746 747// Causes the process to run as renderer instead of as browser. 748const char kRendererProcess[] = "renderer"; 749 750// Overrides the default/calculated limit to the number of renderer processes. 751// Very high values for this setting can lead to high memory/resource usage 752// or instability. 753const char kRendererProcessLimit[] = "renderer-process-limit"; 754 755// Causes the renderer process to display a dialog on launch. 756const char kRendererStartupDialog[] = "renderer-startup-dialog"; 757 758// Causes the process to run as a sandbox IPC subprocess. 759const char kSandboxIPCProcess[] = "sandbox-ipc"; 760 761// Enables or disables scroll end effect in response to vertical overscroll. 762// Set the value to '1' to enable the feature, and set to '0' to disable. 763// Defaults to disabled. 764const char kScrollEndEffect[] = "scroll-end-effect"; 765 766// Visibly render a border around paint rects in the web page to help debug 767// and study painting behavior. 768const char kShowPaintRects[] = "show-paint-rects"; 769 770// Map mouse input events into touch gesture events. Useful for debugging touch 771// gestures without needing a touchscreen. 772const char kSimulateTouchScreenWithMouse[] = 773 "simulate-touch-screen-with-mouse"; 774 775// Runs the renderer and plugins in the same process as the browser 776const char kSingleProcess[] = "single-process"; 777 778// Experimentally enforces a one-site-per-process security policy. 779// All cross-site navigations force process swaps, and we can restrict a 780// renderer process's access rights based on its site. For details, see: 781// http://www.chromium.org/developers/design-documents/site-isolation 782// 783// Unlike --enable-strict-site-isolation (which allows cross-site iframes), 784// this flag blocks cross-site documents even in iframes, until out-of-process 785// iframe support is available. Cross-site network requests do attach the 786// normal set of cookies, but a renderer process is only allowed to view or 787// modify cookies for its own site (via JavaScript). 788// TODO(irobert): Implement the cross-site document blocking in 789// http://crbug.com/159215. 790const char kSitePerProcess[] = "site-per-process"; 791 792// Skip gpu info collection, blacklist loading, and blacklist auto-update 793// scheduling at browser startup time. 794// Therefore, all GPU features are available, and about:gpu page shows empty 795// content. The switch is intended only for layout tests. 796// TODO(gab): Get rid of this switch entirely. 797const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; 798 799// Specifies the request key for the continuous speech recognition webservice. 800const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; 801 802// Specifies if the |StatsCollectionController| needs to be bound in the 803// renderer. This binding happens on per-frame basis and hence can potentially 804// be a performance bottleneck. One should only enable it when running a test 805// that needs to access the provided statistics. 806const char kStatsCollectionController[] = 807 "enable-stats-collection-bindings"; 808 809// Upscale defaults to "good". 810const char kTabCaptureDownscaleQuality[] = "tab-capture-downscale-quality"; 811 812// Scaling quality for capturing tab. Should be one of "fast", "good" or "best". 813// One flag for upscaling, one for downscaling. 814// Upscale defaults to "best". 815const char kTabCaptureUpscaleQuality[] = "tab-capture-upscale-quality"; 816 817// Allows for forcing socket connections to http/https to use fixed ports. 818const char kTestingFixedHttpPort[] = "testing-fixed-http-port"; 819const char kTestingFixedHttpsPort[] = "testing-fixed-https-port"; 820 821// Runs the security test for the renderer sandbox. 822const char kTestSandbox[] = "test-sandbox"; 823 824// Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally, 825// can specify the specific trace categories to include (e.g. 826// --trace-shutdown=base,net) otherwise, all events are recorded. 827// --trace-shutdown-file can be used to control where the trace log gets stored 828// to since there is otherwise no way to access the result. 829const char kTraceShutdown[] = "trace-shutdown"; 830 831// If supplied, sets the file which shutdown tracing will be stored into, if 832// omitted the default will be used "chrometrace.log" in the current directory. 833// Has no effect unless --trace-shutdown is also supplied. 834// Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log 835const char kTraceShutdownFile[] = "trace-shutdown-file"; 836 837// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can 838// specify the specific trace categories to include (e.g. 839// --trace-startup=base,net) otherwise, all events are recorded. Setting this 840// flag results in the first call to BeginTracing() to receive all trace events 841// since startup. In Chrome, you may find --trace-startup-file and 842// --trace-startup-duration to control the auto-saving of the trace (not 843// supported in the base-only TraceLog component). 844const char kTraceStartup[] = "trace-startup"; 845 846// Sets the time in seconds until startup tracing ends. If omitted a default of 847// 5 seconds is used. Has no effect without --trace-startup, or if 848// --startup-trace-file=none was supplied. 849const char kTraceStartupDuration[] = "trace-startup-duration"; 850 851// If supplied, sets the file which startup tracing will be stored into, if 852// omitted the default will be used "chrometrace.log" in the current directory. 853// Has no effect unless --trace-startup is also supplied. 854// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log 855// As a special case, can be set to 'none' - this disables automatically saving 856// the result to a file and the first manually recorded trace will then receive 857// all events since startup. 858const char kTraceStartupFile[] = "trace-startup-file"; 859 860 861 862// Prioritizes the UI's command stream in the GPU process 863extern const char kUIPrioritizeInGpuProcess[] = 864 "ui-prioritize-in-gpu-process"; 865 866// Use fake device for MediaStream to replace actual camera and microphone. 867const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 868 869// Bypass the media stream infobar by selecting the default device for media 870// streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream. 871const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream"; 872 873// Use hardware gpu, if available, for tests. 874const char kUseGpuInTests[] = "use-gpu-in-tests"; 875 876// Set when Chromium should use a mobile user agent. 877const char kUseMobileUserAgent[] = "use-mobile-user-agent"; 878 879// A string used to override the default user agent with a custom one. 880const char kUserAgent[] = "user-agent"; 881 882// On POSIX only: the contents of this flag are prepended to the utility 883// process command line. Useful values might be "valgrind" or "xterm -e gdb 884// --args". 885const char kUtilityCmdPrefix[] = "utility-cmd-prefix"; 886 887// Causes the process to run as a utility subprocess. 888const char kUtilityProcess[] = "utility"; 889 890// The utility process is sandboxed, with access to one directory. This flag 891// specifies the directory that can be accessed. 892const char kUtilityProcessAllowedDir[] = "utility-allowed-dir"; 893 894// Allows MDns to access network in sandboxed process. 895const char kUtilityProcessEnableMDns[] = "utility-enable-mdns"; 896 897// Will add kWaitForDebugger to every child processes. If a value is passed, it 898// will be used as a filter to determine if the child process should have the 899// kWaitForDebugger flag passed on or not. 900const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; 901 902// Choose which logging channels in WebCore to activate. See 903// Logging.cpp in WebKit's WebCore for a list of available channels. 904const char kWebCoreLogChannels[] = "webcore-log-channels"; 905 906// Causes the process to run as a worker subprocess. 907const char kWorkerProcess[] = "worker"; 908 909// The prefix used when starting the zygote process. (i.e. 'gdb --args') 910const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; 911 912// Causes the process to run as a renderer zygote. 913const char kZygoteProcess[] = "zygote"; 914 915#if defined(ENABLE_WEBRTC) 916// Disable WebRTC device enumeration. 917const char kDisableDeviceEnumeration[] = "disable-device-enumeration"; 918 919// Disable WebRTC DataChannels SCTP wire protocol support. 920const char kDisableSCTPDataChannels[] = "disable-sctp-data-channels"; 921 922// Disables HW decode acceleration for WebRTC. 923const char kDisableWebRtcHWDecoding[] = "disable-webrtc-hw-decoding"; 924 925// Disables HW encode acceleration for WebRTC. 926const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding"; 927 928// Enables WebRTC AEC recordings. 929const char kEnableWebRtcAecRecordings[] = "enable-webrtc-aec-recordings"; 930 931// Enable WebRTC to open TCP server sockets. 932const char kEnableWebRtcTcpServerSocket[] = "enable-webrtc-tcp-server-socket"; 933 934// Enables VP8 HW encode acceleration for WebRTC. 935const char kEnableWebRtcHWVp8Encoding[] = "enable-webrtc-hw-vp8-encoding"; 936#endif 937 938#if defined(OS_ANDROID) 939// Disable user gesture requirement for the media element to enter fullscreen. 940const char kDisableGestureRequirementForMediaFullscreen[] = 941 "disable-gesture-requirement-for-media-fullscreen"; 942 943// Disable user gesture requirement for media playback. 944const char kDisableGestureRequirementForMediaPlayback[] = 945 "disable-gesture-requirement-for-media-playback"; 946 947// Disable history logging for media elements. 948const char kDisableMediaHistoryLogging[] = "disable-media-history"; 949 950// Disable overscroll edge effects like those found in Android views. 951const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect"; 952 953// WebRTC is enabled by default on Android. 954const char kDisableWebRTC[] = "disable-webrtc"; 955 956// Enable the recognition part of the Web Speech API. 957const char kEnableSpeechRecognition[] = "enable-speech-recognition"; 958 959// Don't display any scrollbars. This is useful for Android WebView where 960// the system manages the scrollbars instead. 961const char kHideScrollbars[] = "hide-scrollbars"; 962 963// The telephony region (ISO country code) to use in phone number detection. 964const char kNetworkCountryIso[] = "network-country-iso"; 965 966// Enables remote debug over HTTP on the specified socket name. 967const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name"; 968#endif 969 970#if defined(OS_CHROMEOS) 971// Disables panel fitting (used for mirror mode). 972const char kDisablePanelFitting[] = "disable-panel-fitting"; 973#endif 974 975#if defined(OS_MACOSX) && !defined(OS_IOS) 976const char kDisableCarbonInterposing[] = "disable-carbon-interposing"; 977 978// Disables support for Core Animation plugins. This is triggered when 979// accelerated compositing is disabled. See http://crbug.com/122430 . 980const char kDisableCoreAnimationPlugins[] = 981 "disable-core-animation-plugins"; 982 983// Use core animation to draw the RenderWidgetHostView on Mac. 984const char kUseCoreAnimation[] = "use-core-animation"; 985#endif 986 987#if defined(OS_POSIX) 988// Causes the child processes to cleanly exit via calling exit(). 989const char kChildCleanExit[] = "child-clean-exit"; 990#endif 991 992// Don't dump stuff here, follow the same order as the header. 993 994} // namespace switches 995