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