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