content_switches.cc revision b2df76ea8fec9e32f6f3718986dba0d95315b29c
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 using 3D to present fullscreen flash 108const char kDisableFlashFullscreen3d[] = "disable-flash-fullscreen-3d"; 109 110// Disable Stage3D inside of flapper. 111const char kDisableFlashStage3d[] = "disable-flash-stage3d"; 112 113// Suppresses support for the Geolocation javascript API. 114const char kDisableGeolocation[] = "disable-geolocation"; 115 116// Disable GL multisampling. 117const char kDisableGLMultisampling[] = "disable-gl-multisampling"; 118 119// Do not launch the GPU process shortly after browser process launch. Instead 120// launch it when it is first needed. 121const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch"; 122 123// Disable the GPU process sandbox. 124const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; 125 126// Reduces the GPU process sandbox to be less strict. 127const char kReduceGpuSandbox[] = "reduce-gpu-sandbox"; 128 129// Enable the GPU process sandbox (Linux/Chrome OS only for now). 130const char kEnableGpuSandbox[] = "enable-gpu-sandbox"; 131 132// Suppresses hang monitor dialogs in renderer processes. This may allow slow 133// unload handlers on a page to prevent the tab from closing, but the Task 134// Manager can be used to terminate the offending process in this case. 135const char kDisableHangMonitor[] = "disable-hang-monitor"; 136 137// Disables HTML-based desktop notifications. 138const char kDisableHTMLNotifications[] = "disable-html-notifications"; 139 140// Disable the RenderThread's HistogramCustomizer. 141const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; 142 143// Disable the use of an ImageTransportSurface. This means the GPU process 144// will present the rendered page rather than the browser process. 145const char kDisableImageTransportSurface[] = "disable-image-transport-surface"; 146 147// Use hardware gpu, if available, for tests. 148const char kUseGpuInTests[] = "use-gpu-in-tests"; 149 150// Disables GPU hardware acceleration. If software renderer is not in place, 151// then the GPU process won't launch. 152const char kDisableGpu[] = "disable-gpu"; 153 154// Disable the thread that crashes the GPU process if it stops responding to 155// messages. 156const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; 157 158// Prevent Java from running. 159const char kDisableJava[] = "disable-java"; 160 161// Don't execute JavaScript (browser JS like the new tab page still runs). 162const char kDisableJavaScript[] = "disable-javascript"; 163 164// Disable JavaScript I18N API. 165const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; 166 167// Disable LocalStorage. 168const char kDisableLocalStorage[] = "disable-local-storage"; 169 170// Force logging to be disabled. Logging is enabled by default in debug 171// builds. 172const char kDisableLogging[] = "disable-logging"; 173 174// Prevent plugins from running. 175const char kDisablePlugins[] = "disable-plugins"; 176 177// Disables remote web font support. SVG font should always work whether this 178// option is specified or not. 179const char kDisableRemoteFonts[] = "disable-remote-fonts"; 180 181// Turns off the accessibility in the renderer. 182const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; 183 184// Disable False Start in SSL and TLS connections. 185const char kDisableSSLFalseStart[] = "disable-ssl-false-start"; 186 187// Disable smooth scrolling for testing. 188const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; 189 190// Disable the seccomp filter sandbox (seccomp-bpf) (Linux only). 191const char kDisableSeccompFilterSandbox[] = "disable-seccomp-filter-sandbox"; 192 193// Disable session storage. 194const char kDisableSessionStorage[] = "disable-session-storage"; 195 196// Enable shared workers. Functionality not yet complete. 197const char kDisableSharedWorkers[] = "disable-shared-workers"; 198 199// Disables site-specific tailoring to compatibility issues in WebKit. 200const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks"; 201 202// Disables speech input. 203const char kDisableSpeechInput[] = "disable-speech-input"; 204 205// Specifies the request key for the continuous speech recognition webservice. 206const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; 207 208// Enables web speech synthesis api. 209const char kEnableSpeechSynthesis[] = "enable-speech-synthesis"; 210 211#if defined(OS_ANDROID) 212// Enable web audio API. 213const char kEnableWebAudio[] = "enable-webaudio"; 214 215// WebRTC is enabled by default on Android. 216const char kDisableWebRTC[] = "disable-webrtc"; 217#else 218// Disable web audio API. 219const char kDisableWebAudio[] = "disable-webaudio"; 220#endif 221 222// Enables Web MIDI API. 223const char kEnableWebMIDI[] = "enable-web-midi"; 224 225// Don't enforce the same-origin policy. (Used by people testing their sites.) 226const char kDisableWebSecurity[] = "disable-web-security"; 227 228// Enable an experimental WebSocket implementation. 229const char kEnableExperimentalWebSocket[] = "enable-experimental-websocket"; 230 231// Disables WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. 232const char kDisableXSSAuditor[] = "disable-xss-auditor"; 233 234// Specifies if the |DOMAutomationController| needs to be bound in the 235// renderer. This binding happens on per-frame basis and hence can potentially 236// be a performance bottleneck. One should only enable it when automating dom 237// based tests. Also enables sending/receiving renderer automation messages 238// through the |AutomationRenderViewHelper|. 239// 240// TODO(kkania): Rename this to enable-renderer-automation after moving the 241// |DOMAutomationController| to the |AutomationRenderViewHelper|. 242const char kDomAutomationController[] = "dom-automation"; 243 244// Loosen security. Needed for tests using some of the functionality of 245// |DOMAutomationController|. 246const char kReduceSecurityForDomAutomationTests[] = 247 "reduce-security-for-dom-automation-tests"; 248 249// Enable hardware accelerated page painting. 250const char kEnableAcceleratedPainting[] = "enable-accelerated-painting"; 251 252// Enable gpu-accelerated SVG/W3C filters. 253const char kEnableAcceleratedFilters[] = "enable-accelerated-filters"; 254 255// Turns on extremely verbose logging of accessibility events. 256const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; 257 258// Enable notifications of audible/silent audio output from a render view. 259// 260// TODO(miu): Remove --enable-audible-notifications once the feature goes 261// live. http://crbug.com/178934 262const char kEnableAudibleNotifications[] = "enable-audible-notifications"; 263 264// Enables browser plugin compositing experiment. 265const char kDisableBrowserPluginCompositing[] = 266 "disable-browser-plugin-compositing"; 267 268// Enables browser plugin for all types of pages. 269const char kEnableBrowserPluginForAllViewTypes[] = 270 "enable-browser-plugin-for-all-view-types"; 271 272// Enables Drag and Drop into and out of Browser Plugin. 273// kEnableBrowserPluginGuestViews must also be set at this time. 274const char kEnableBrowserPluginDragDrop[] = "enable-browser-plugin-drag-drop"; 275 276// Enable/Disable the creation of compositing layers for fixed position 277// elements. Three options are needed to support four possible scenarios: 278// 1. Default (disabled) 279// 2. Enabled always (to allow dogfooding) 280// 3. Disabled always (to give safety fallback for users) 281// 4. Enabled only if we detect a highDPI display 282// 283// Option #4 may soon be the default, because the feature is needed soon for 284// high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will 285// override Option #4. 286const char kEnableCompositingForFixedPosition[] = 287 "enable-fixed-position-compositing"; 288const char kDisableCompositingForFixedPosition[] = 289 "disable-fixed-position-compositing"; 290const char kEnableHighDpiCompositingForFixedPosition[] = 291 "enable-high-dpi-fixed-position-compositing"; 292 293// Enables CSS3 custom filters 294const char kEnableCssShaders[] = "enable-css-shaders"; 295 296// Enables delegated renderer. 297const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; 298 299// Enables device motion events. 300const char kEnableDeviceMotion[] = "enable-device-motion"; 301 302// Enables restarting interrupted downloads. 303const char kEnableDownloadResumption[] = "enable-download-resumption"; 304 305// Enables WebKit features that are in development. 306const char kEnableExperimentalWebKitFeatures[] = 307 "enable-experimental-webkit-features"; 308 309// Disables the threaded HTML parser in WebKit 310const char kDisableThreadedHTMLParser[] = "disable-threaded-html-parser"; 311 312// By default, a page is laid out to fill the entire width of the window. 313// This flag fixes the layout of the page to a default of 980 CSS pixels, 314// or to a specified width and height using --enable-fixed-layout=w,h 315const char kEnableFixedLayout[] = "enable-fixed-layout"; 316 317// Disable the JavaScript Full Screen API. 318const char kDisableFullScreen[] = "disable-fullscreen"; 319 320// Enable Text Service Framework(TSF) for text inputting instead of IMM32. This 321// flag is ignored on Metro environment. 322const char kEnableTextServicesFramework[] = "enable-text-services-framework"; 323 324// Enable Gesture Tap Highlight 325const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight"; 326const char kDisableGestureTapHighlight[] = "disable-gesture-tap-highlight"; 327 328// Enables the GPU benchmarking extension 329const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; 330 331// Enables TRACE for GL calls in the renderer. 332const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing"; 333 334// Enables the memory benchmarking extension 335const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; 336 337// Force logging to be enabled. Logging is disabled by default in release 338// builds. 339const char kEnableLogging[] = "enable-logging"; 340 341// Disable Media Source API on <audio>/<video> elements. 342const char kDisableMediaSource[] = "disable-media-source"; 343 344// Use fake device for MediaStream to replace actual camera and microphone. 345const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 346 347// On Windows, converts the page to the currently-installed monitor profile. 348// This does NOT enable color management for images. The source is still 349// assumed to be sRGB. 350const char kEnableMonitorProfile[] = "enable-monitor-profile"; 351 352// Enables compositor-accelerated touch-screen pinch gestures. 353const char kEnablePinch[] = "enable-pinch"; 354const char kDisablePinch[] = "disable-pinch"; 355 356// Enables use of cache if offline, even if it's stale 357const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; 358 359// Enable caching of pre-parsed JS script data. See http://crbug.com/32407. 360const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; 361 362// Enable privileged WebGL extensions; without this switch such extensions are 363// available only to Chrome extensions. 364const char kEnablePrivilegedWebGLExtensions[] = 365 "enable-privileged-webgl-extensions"; 366 367// Aggressively free GPU command buffers belonging to hidden tabs. 368const char kEnablePruneGpuCommandBuffers[] = 369 "enable-prune-gpu-command-buffers"; 370 371// Enable screen capturing support for MediaStream API. 372const char kEnableUserMediaScreenCapturing[] = 373 "enable-usermedia-screen-capturing"; 374 375// Enables TLS cached info extension. 376const char kEnableSSLCachedInfo[] = "enable-ssl-cached-info"; 377 378// Cause the OS X sandbox write to syslog every time an access to a resource 379// is denied by the sandbox. 380const char kEnableSandboxLogging[] = "enable-sandbox-logging"; 381 382// Enable spatial navigation 383const char kEnableSpatialNavigation[] = "enable-spatial-navigation"; 384 385// On platforms that support it, enables smooth scroll animation. 386const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; 387 388// Enables StatsTable, logging statistics to a global named shared memory table. 389const char kEnableStatsTable[] = "enable-stats-table"; 390 391// Experimentally ensures that each renderer process: 392// 1) Only handles rendering for pages from a single site, apart from iframes. 393// (Note that a page can reference content from multiple origins due to images, 394// JavaScript files, etc. Cross-site iframes are also loaded in-process.) 395// 2) Only has authority to see or use cookies for the page's top-level origin. 396// (So if a.com iframes b.com, the b.com network request will be sent without 397// cookies.) 398// This is expected to break compatibility with many pages for now. Unlike the 399// --site-per-process flag, this allows cross-site iframes, but it blocks all 400// cookies on cross-site requests. 401const char kEnableStrictSiteIsolation[] = "enable-strict-site-isolation"; 402 403// Enable multithreaded GPU compositing of web content. 404const char kEnableThreadedCompositing[] = "enable-threaded-compositing"; 405 406// Allow GL contexts to be automatically virtualized (shared between command 407// buffer clients) if they are compatible. 408const char kEnableVirtualGLContexts[] = "enable-virtual-gl-contexts"; 409 410// Disable multithreaded GPU compositing of web content. 411const char kDisableThreadedCompositing[] = "disable-threaded-compositing"; 412 413// Enable use of experimental TCP sockets API for sending data in the 414// SYN packet. 415const char kEnableTcpFastOpen[] = "enable-tcp-fastopen"; 416 417// Disables hardware acceleration of video decode, where available. 418const char kDisableAcceleratedVideoDecode[] = 419 "disable-accelerated-video-decode"; 420 421// Enables the use of the viewport meta tag, which allows 422// pages to control aspects of their own layout. This also turns on touch-screen 423// pinch gestures. 424const char kEnableViewport[] = "enable-viewport"; 425 426// Enables experimental features for the geolocation API. 427// Current features: 428// - CoreLocation support for Mac OS X 10.6 429// - Gateway location for Linux and Windows 430// - Location platform support for Windows 7 431const char kExperimentalLocationFeatures[] = "experimental-location-features"; 432 433// Load NPAPI plugins from the specified directory. 434const char kExtraPluginDir[] = "extra-plugin-dir"; 435 436// If accelerated compositing is supported, always enter compositing mode for 437// the base layer even when compositing is not strictly required. 438const char kForceCompositingMode[] = "force-compositing-mode"; 439 440// This flag disables force compositing mode and prevents it from being enabled 441// via field trials. 442const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; 443 444// Enable the synchronous renderer compositor API. See 445// ContentRendererClient::DidCreateSynchronousCompositor() 446const char kEnableSynchronousRendererCompositor[] = 447 "enable-synchronous-renderer-compositor"; 448 449// Some field trials may be randomized in the browser, and the randomly selected 450// outcome needs to be propagated to the renderer. For instance, this is used 451// to modify histograms recorded in the renderer, or to get the renderer to 452// also set of its state (initialize, or not initialize components) to match the 453// experiment(s). The option is also useful for forcing field trials when 454// testing changes locally. The argument is a list of name and value pairs, 455// separated by slashes. See FieldTrialList::CreateTrialsFromString() in 456// field_trial.h for details. 457const char kForceFieldTrials[] = "force-fieldtrials"; 458 459// Force renderer accessibility to be on instead of enabling it on demand when 460// a screen reader is detected. The disable-renderer-accessibility switch 461// overrides this if present. 462const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 463 464// Force the compositor to use its software implementation instead of GL. 465const char kEnableSoftwareCompositingGLAdapter[] = 466 "enable-software-compositing-gl-adapter"; 467 468// Passes gpu device_id from browser process to GPU process. 469const char kGpuDeviceID[] = "gpu-device-id"; 470 471// Passes gpu driver_vendor from browser process to GPU process. 472const char kGpuDriverVendor[] = "gpu-driver-vendor"; 473 474// Passes gpu driver_version from browser process to GPU process. 475const char kGpuDriverVersion[] = "gpu-driver-version"; 476 477// Extra command line options for launching the GPU process (normally used 478// for debugging). Use like renderer-cmd-prefix. 479const char kGpuLauncher[] = "gpu-launcher"; 480 481// Makes this process a GPU sub-process. 482const char kGpuProcess[] = "gpu-process"; 483 484// Causes the GPU process to display a dialog on launch. 485const char kGpuStartupDialog[] = "gpu-startup-dialog"; 486 487// Passes gpu vendor_id from browser process to GPU process. 488const char kGpuVendorID[] = "gpu-vendor-id"; 489 490// These mappings only apply to the host resolver. 491const char kHostResolverRules[] = "host-resolver-rules"; 492 493// Ignores certificate-related errors. 494const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; 495 496// Ignores GPU blacklist. 497const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist"; 498 499// Run the GPU process as a thread in the browser process. 500const char kInProcessGPU[] = "in-process-gpu"; 501 502// Runs plugins inside the renderer process 503const char kInProcessPlugins[] = "in-process-plugins"; 504 505// Specifies the flags passed to JS engine 506const char kJavaScriptFlags[] = "js-flags"; 507 508// Load an NPAPI plugin from the specified path. 509const char kLoadPlugin[] = "load-plugin"; 510 511// Sets the minimum log level. Valid values are from 0 to 3: 512// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. 513const char kLoggingLevel[] = "log-level"; 514 515// Make plugin processes log their sent and received messages to VLOG(1). 516const char kLogPluginMessages[] = "log-plugin-messages"; 517 518// Sample memory usage with high frequency and store the results to the 519// Renderer.Memory histogram. Used in memory tests. 520const char kMemoryMetrics[] = "memory-metrics"; 521 522// Don't send HTTP-Referer headers. 523const char kNoReferrers[] = "no-referrers"; 524 525// Disables the sandbox for all process types that are normally sandboxed. 526const char kNoSandbox[] = "no-sandbox"; 527 528// Enables the sandboxed processes to run without a job object assigned to them. 529// This flag is required to allow Chrome to run in RemoteApps or Citrix. This 530// flag can reduce the security of the sandboxed processes and allow them to do 531// certain API calls like shut down Windows or access the clipboard. Also we 532// lose the chance to kill some processes until the outer job that owns them 533// finishes. 534const char kAllowNoSandboxJob[] = "allow-no-sandbox-job"; 535 536// Specifies a command that should be used to launch the plugin process. Useful 537// for running the plugin process through purify or quantify. Ex: 538// --plugin-launcher="path\to\purify /Run=yes" 539const char kPluginLauncher[] = "plugin-launcher"; 540 541// Tells the plugin process the path of the plugin to load 542const char kPluginPath[] = "plugin-path"; 543 544// Causes the process to run as a plugin subprocess. 545const char kPluginProcess[] = "plugin"; 546 547// Causes the plugin process to display a dialog on launch. 548const char kPluginStartupDialog[] = "plugin-startup-dialog"; 549 550// Argument to the process type that indicates a PPAPI broker process type. 551const char kPpapiBrokerProcess[] = "ppapi-broker"; 552 553// Runs PPAPI (Pepper) plugins in-process. 554const char kPpapiInProcess[] = "ppapi-in-process"; 555 556// Like kPluginLauncher for PPAPI plugins. 557const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher"; 558 559// Argument to the process type that indicates a PPAPI plugin process type. 560const char kPpapiPluginProcess[] = "ppapi"; 561 562// Causes the PPAPI sub process to display a dialog on launch. Be sure to use 563// --no-sandbox as well or the sandbox won't allow the dialog to display. 564const char kPpapiStartupDialog[] = "ppapi-startup-dialog"; 565 566// Runs a single process for each site (i.e., group of pages from the same 567// registered domain) the user visits. We default to using a renderer process 568// for each site instance (i.e., group of pages from the same registered 569// domain with script connections to each other). 570const char kProcessPerSite[] = "process-per-site"; 571 572// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own 573// renderer process. We default to using a renderer process for each 574// site instance (i.e., group of pages from the same registered domain with 575// script connections to each other). 576const char kProcessPerTab[] = "process-per-tab"; 577 578// The value of this switch determines whether the process is started as a 579// renderer or plugin host. If it's empty, it's the browser. 580const char kProcessType[] = "type"; 581 582// Register Pepper plugins (see pepper_plugin_registry.cc for its format). 583const char kRegisterPepperPlugins[] = "register-pepper-plugins"; 584 585// Enables remote debug over HTTP on the specified port. 586const char kRemoteDebuggingPort[] = "remote-debugging-port"; 587 588#if defined(OS_ANDROID) 589// Enables remote debug over HTTP on the specified socket name. 590const char kRemoteDebuggingSocketName[] = "remote-debugging-socket-name"; 591#endif 592 593// Causes the renderer process to throw an assertion on launch. 594const char kRendererAssertTest[] = "renderer-assert-test"; 595 596// On POSIX only: the contents of this flag are prepended to the renderer 597// command line. Useful values might be "valgrind" or "xterm -e gdb --args". 598const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; 599 600// Causes the process to run as renderer instead of as browser. 601const char kRendererProcess[] = "renderer"; 602 603// Overrides the default/calculated limit to the number of renderer processes. 604// Very high values for this setting can lead to high memory/resource usage 605// or instability. 606const char kRendererProcessLimit[] = "renderer-process-limit"; 607 608// Causes the renderer process to display a dialog on launch. 609const char kRendererStartupDialog[] = "renderer-startup-dialog"; 610 611// Enables accelerated compositing for overflow scroll. Promotes eligible 612// overflow:scroll elements to layers to enable accelerated scrolling for them. 613const char kEnableAcceleratedOverflowScroll[] = 614 "enable-accelerated-overflow-scroll"; 615 616// Disables accelerated compositing for overflow scroll. 617extern const char kDisableAcceleratedOverflowScroll[] = 618 "disable-accelerated-overflow-scroll"; 619 620// Enables accelerated compositing for scrollable frames for accelerated 621// scrolling for them. Requires kForceCompositingMode. 622const char kEnableAcceleratedScrollableFrames[] = 623 "enable-accelerated-scrollable-frames"; 624 625// Enables accelerated scrolling by the compositor for frames. Requires 626// kForceCompositingMode and kEnableAcceleratedScrollableFrames. 627const char kEnableCompositedScrollingForFrames[] = 628 "enable-composited-scrolling-for-frames"; 629 630// Visibly render a border around paint rects in the web page to help debug 631// and study painting behavior. 632const char kShowPaintRects[] = "show-paint-rects"; 633 634// Map mouse input events into touch gesture events. Useful for debugging touch 635// gestures without needing a touchscreen. 636const char kSimulateTouchScreenWithMouse[] = 637 "simulate-touch-screen-with-mouse"; 638 639// Runs the renderer and plugins in the same process as the browser 640const char kSingleProcess[] = "single-process"; 641 642// Experimentally enforces a one-site-per-process security policy. 643// All cross-site navigations force process swaps, and we can restrict a 644// renderer process's access rights based on its site. For details, see: 645// http://www.chromium.org/developers/design-documents/site-isolation 646// 647// Unlike --enable-strict-site-isolation (which allows cross-site iframes), 648// this flag blocks cross-site documents even in iframes, until out-of-process 649// iframe support is available. Cross-site network requests do attach the 650// normal set of cookies, but a renderer process is only allowed to view or 651// modify cookies for its own site (via JavaScript). 652// TODO(irobert): Implement the cross-site document blocking in 653// http://crbug.com/159215. 654const char kSitePerProcess[] = "site-per-process"; 655 656// Skip gpu info collection, blacklist loading, and blacklist auto-update 657// scheduling at browser startup time. 658// Therefore, all GPU features are available, and about:gpu page shows empty 659// content. The switch is intended only for tests. 660const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; 661 662// GestureTapDown events are deferred by this many miillseconds before 663// sending them to the renderer. 664const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time"; 665 666// Runs the security test for the renderer sandbox. 667const char kTestSandbox[] = "test-sandbox"; 668 669// Allows for forcing socket connections to http/https to use fixed ports. 670const char kTestingFixedHttpPort[] = "testing-fixed-http-port"; 671const char kTestingFixedHttpsPort[] = "testing-fixed-https-port"; 672 673// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can 674// specify the specific trace categories to include (e.g. 675// --trace-startup=base,net) otherwise, all events are recorded. Setting this 676// flag results in the first call to BeginTracing() to receive all trace events 677// since startup. In Chrome, you may find --trace-startup-file and 678// --trace-startup-duration to control the auto-saving of the trace (not 679// supported in the base-only TraceLog component). 680const char kTraceStartup[] = "trace-startup"; 681 682// If supplied, sets the file which startup tracing will be stored into, if 683// omitted the default will be used "chrometrace.log" in the current directory. 684// Has no effect unless --trace-startup is also supplied. 685// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log 686// As a special case, can be set to 'none' - this disables automatically saving 687// the result to a file and the first manually recorded trace will then receive 688// all events since startup. 689const char kTraceStartupFile[] = "trace-startup-file"; 690 691// Sets the time in seconds until startup tracing ends. If omitted a default of 692// 5 seconds is used. Has no effect without --trace-startup, or if 693// --startup-trace-file=none was supplied. 694const char kTraceStartupDuration[] = "trace-startup-duration"; 695 696// Prioritizes the UI's command stream in the GPU process 697extern const char kUIPrioritizeInGpuProcess[] = 698 "ui-prioritize-in-gpu-process"; 699 700// A string used to override the default user agent with a custom one. 701const char kUserAgent[] = "user-agent"; 702 703// On POSIX only: the contents of this flag are prepended to the utility 704// process command line. Useful values might be "valgrind" or "xterm -e gdb 705// --args". 706const char kUtilityCmdPrefix[] = "utility-cmd-prefix"; 707 708// Causes the process to run as a utility subprocess. 709const char kUtilityProcess[] = "utility"; 710 711// The utility process is sandboxed, with access to one directory. This flag 712// specifies the directory that can be accessed. 713const char kUtilityProcessAllowedDir[] = "utility-allowed-dir"; 714 715// Will add kWaitForDebugger to every child processes. If a value is passed, it 716// will be used as a filter to determine if the child process should have the 717// kWaitForDebugger flag passed on or not. 718const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; 719 720// Choose which logging channels in WebCore to activate. See 721// Logging.cpp in WebKit's WebCore for a list of available channels. 722const char kWebCoreLogChannels[] = "webcore-log-channels"; 723 724// Causes the process to run as a worker subprocess. 725const char kWorkerProcess[] = "worker"; 726 727// The prefix used when starting the zygote process. (i.e. 'gdb --args') 728const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; 729 730// Causes the process to run as a renderer zygote. 731const char kZygoteProcess[] = "zygote"; 732 733// Enables moving cursor by word in visual order. 734const char kEnableVisualWordMovement[] = "enable-visual-word-movement"; 735 736// Set when Chromium should use a mobile user agent. 737const char kUseMobileUserAgent[] = "use-mobile-user-agent"; 738 739#if defined(OS_ANDROID) 740// Disable history logging for media elements. 741const char kDisableMediaHistoryLogging[] = "disable-media-history"; 742 743// Disable user gesture requirement for media playback. 744const char kDisableGestureRequirementForMediaPlayback[] = 745 "disable-gesture-requirement-for-media-playback"; 746 747// The telephony region (ISO country code) to use in phone number detection. 748const char kNetworkCountryIso[] = "network-country-iso"; 749 750// Set to enable compatibility with legacy WebView synchronous APIs. 751const char kEnableWebViewSynchronousAPIs[] = "enable-webview-synchronous-apis"; 752#endif 753 754#if defined(OS_CHROMEOS) 755// Disables panel fitting (used for mirror mode). 756const char kDisablePanelFitting[] = "disable-panel-fitting"; 757#endif 758 759#if defined(OS_POSIX) 760// Causes the child processes to cleanly exit via calling exit(). 761const char kChildCleanExit[] = "child-clean-exit"; 762#endif 763 764#if defined(OS_MACOSX) && !defined(OS_IOS) 765const char kDisableCarbonInterposing[] = "disable-carbon-interposing"; 766#endif 767 768// Disables the use of a 3D software rasterizer. 769const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; 770 771#if defined(USE_AURA) 772// Forces usage of the test compositor. Needed to run ui tests on bots. 773extern const char kTestCompositor[] = "test-compositor"; 774#endif 775 776// Sets the tile size used by composited layers. 777const char kDefaultTileWidth[] = "default-tile-width"; 778const char kDefaultTileHeight[] = "default-tile-height"; 779 780// Sets the width and height above which a composited layer will get tiled. 781const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 782const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 783 784// Use ExynosVideoDecodeAccelerator for video decode (instead of SECOMX) 785const char kUseExynosVda[] = "use-exynos-vda"; 786 787const char kEnableFixedPositionCreatesStackingContext[] 788 = "enable-fixed-position-creates-stacking-context"; 789const char kDisableFixedPositionCreatesStackingContext[] 790 = "disable-fixed-position-creates-stacking-context"; 791 792// Defer image decoding in WebKit until painting. 793const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; 794 795// Use a vsync signal from the browser to the renderer to schedule rendering. 796const char kEnableVsyncNotification[] = "enable-vsync-notification"; 797 798// Enables or disables history navigation in response to horizontal overscroll. 799// Set the value to '1' to enable the feature, and set to '0' to disable. 800// Defaults to enabled. 801const char kOverscrollHistoryNavigation[] = 802 "overscroll-history-navigation"; 803 804// Forward overscroll event data from the renderer to the browser. 805const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications"; 806 807// Enables 'image/webp' accept header for image requests. 808const char kEnableWebPInAcceptHeader[] = "enable-webp-in-accept-header"; 809 810} // namespace switches 811