content_switches.cc revision cedac228d2dd51db4b79ea1e72c7f249408ee061
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "content/public/common/content_switches.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "base/command_line.h"
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace switches {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
121e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// have an effect. 0 disables MSAA.
131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count";
141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, file:// URIs cannot read other file:// URIs. This is an
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// override for developers who need the old behavior for testing.
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileAccessFromFiles[]      = "allow-file-access-from-files";
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
195c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Allows frames with an https origin to use WebSockets with an insecure URL
205c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// (ws://).
215c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kAllowInsecureWebSocketFromHttpsOrigin[] =
225c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "allow-insecure-websocket-from-https-origin";
235c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Allows loopback interface to be added in network list for peer connection.
25a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kAllowLoopbackInPeerConnection[] =
26a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "allow-loopback-in-peer-connection";
27a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
28ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the sandboxed processes to run without a job object assigned to them.
29ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// This flag is required to allow Chrome to run in RemoteApps or Citrix. This
30ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// flag can reduce the security of the sandboxed processes and allow them to do
31ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// certain API calls like shut down Windows or access the clipboard. Also we
32ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// lose the chance to kill some processes until the outer job that owns them
33ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// finishes.
34ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kAllowNoSandboxJob[]             = "allow-no-sandbox-job";
35ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows debugging of sandboxed processes (see zygote_main_linux.cc).
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowSandboxDebugging[]         = "allow-sandbox-debugging";
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
39ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// The same as kAuditHandles except all handles are enumerated.
40ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kAuditAllHandles[]               = "enable-handle-auditing-all";
41ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enumerates and prints a child process' most dangerous handles when it
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is terminated.
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuditHandles[]                  = "enable-handle-auditing";
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Choose which logging channels in blink platform to activate.  See
475d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Logging.cpp in blink's Source/platform for a list of available channels.
485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kBlinkPlatformLogChannels[]      = "blink-platform-log-channels";
495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
50424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Block cross-site documents (i.e., HTML/XML/JSON) from being loaded in
51424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// subresources when a document is not supposed to read them.  This will later
52424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// allow us to block them from the entire renderer process when site isolation
53424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// is enabled.
54424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)const char kBlockCrossSiteDocuments[]     = "block-cross-site-documents";
55424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the browser process to throw an assertion on startup.
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserAssertTest[]             = "assert-test";
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the browser process to crash on startup.
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserCrashTest[]              = "crash-test";
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Path to the exe to run for the renderer and plugin subprocesses.
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserSubprocessPath[]         = "browser-subprocess-path";
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
65ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Dumps extra logging about plugin loading to the log file.
66ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDebugPluginLoading[] = "debug-plugin-loading";
67ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
68ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the tile size used by composited layers.
69ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDefaultTileWidth[]              = "default-tile-width";
70ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDefaultTileHeight[]             = "default-tile-height";
71ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
72ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable antialiasing on 2d canvas.
73ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisable2dCanvasAntialiasing[]   = "disable-canvas-aa";
74ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is controlled by policy and is kept separate from the other
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable/disable switches to avoid accidentally regressing the policy
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// support for controlling access to these APIs.
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisable3DAPIs[]                 = "disable-3d-apis";
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable gpu-accelerated 2d canvas.
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAccelerated2dCanvas[]    = "disable-accelerated-2d-canvas";
835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
84ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables accelerated compositing for backgrounds of root layers with
85ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// background-attachment: fixed.
86ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedFixedRootBackground[] =
87ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-fixed-root-background";
88ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
89ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables accelerated compositing for overflow scroll.
90ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedOverflowScroll[] =
91ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-overflow-scroll";
92ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
93f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disables layer squashing.
94f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kDisableLayerSquashing[] =
95f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-layer-squashing";
96f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
97ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables hardware acceleration of video decode, where available.
98ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedVideoDecode[] =
99ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-video-decode";
100ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the alternate window station for the renderer.
1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAltWinstation[]          = "disable-winsta";
1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the ApplicationCache.
1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableApplicationCache[]       = "disable-application-cache";
1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable limits on the number of backing stores. Can prevent blinking for
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users with many windows/tabs and lots of memory.
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBackingStoreLimit[]      = "disable-backing-store-limit";
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
111ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForFixedPosition.
112ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableCompositingForFixedPosition[] =
113ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "disable-fixed-position-compositing";
114ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
115ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForTransition.
116ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableCompositingForTransition[] =
117ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "disable-transition-compositing";
118ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables HTML5 DB support.
1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDatabases[]              = "disable-databases";
1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
122ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables delegated renderer.
123ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableDelegatedRenderer[]      = "disable-delegated-renderer";
124ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables desktop notifications (default enabled on windows).
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDesktopNotifications[]   = "disable-desktop-notifications";
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
128a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disables experimental navigator content utils implementation.
129a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableNavigatorContentUtils[]  =
130a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)      "disable-navigator-content-utils";
131a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
1324e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Handles URL requests by NPAPI plugins through the renderer.
1334e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableDirectNPAPIRequests[]    = "disable-direct-npapi-requests";
1344e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
1358bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Disable the per-domain blocking for 3D APIs after GPU reset.
1368bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// This switch is intended only for tests.
1378bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)extern const char kDisableDomainBlockingFor3DAPIs[] =
1388bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "disable-domain-blocking-for-3d-apis";
1398bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
1400529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Disable running the SharedWorker inside the renderer process.
1410529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kDisableEmbeddedSharedWorker[]    = "disable-embedded-shared-worker";
1420529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable experimental WebGL support.
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExperimentalWebGL[]      = "disable-webgl";
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
146effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Disable the fast text autosizing implementation.
147effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kDisableFastTextAutosizing[]     = "disable-fast-text-autosizing";
148effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable FileSystem API.
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFileSystem[]             = "disable-file-system";
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable 3D inside of flapper.
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlash3d[]                = "disable-flash-3d";
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable Stage3D inside of flapper.
1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlashStage3d[]           = "disable-flash-stage3d";
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
158ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGestureTapHighlight[]    = "disable-gesture-tap-highlight";
159ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable GL multisampling.
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableGLMultisampling[]        = "disable-gl-multisampling";
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
163ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables GPU hardware acceleration.  If software renderer is not in place,
164ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// then the GPU process won't launch.
165ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpu[]                    = "disable-gpu";
166ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
167ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Prevent the compositor from using its GPU implementation.
168ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuCompositing[]         = "disable-gpu-compositing";
169ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
170f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disable the limit on the number of times the GPU process may be restarted
171f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// This switch is intended only for tests.
172f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)extern const char kDisableGpuProcessCrashLimit[] =
173f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-gpu-process-crash-limit";
174f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
175a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable GPU rasterization, i.e. rasterize on the CPU only.
176a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
177a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableGpuRasterization[]       = "disable-gpu-rasterization";
178a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
17923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing disable low resolution tiling. This uses
18023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// less power, particularly during animations, but more white may be seen
18123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// during fast scrolling especially on slower devices.
18223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kDisableLowResTiling[] = "disable-low-res-tiling";
18323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the GPU process sandbox.
1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableGpuSandbox[]             = "disable-gpu-sandbox";
1865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
187ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable the thread that crashes the GPU process if it stops responding to
188ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// messages.
189ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuWatchdog[]            = "disable-gpu-watchdog";
1905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Suppresses hang monitor dialogs in renderer processes.  This may allow slow
1925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// unload handlers on a page to prevent the tab from closing, but the Task
1935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Manager can be used to terminate the offending process in this case.
1945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableHangMonitor[]            = "disable-hang-monitor";
1955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable the RenderThread's HistogramCustomizer.
1972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableHistogramCustomizer[]    = "disable-histogram-customizer";
1982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
199a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the main thread instead of the compositor thread.
200a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableImplSidePainting flag.
201a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableImplSidePainting[]       = "disable-impl-side-painting";
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent Java from running.
2045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJava[]                   = "disable-java";
2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't execute JavaScript (browser JS like the new tab page still runs).
2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJavaScript[]             = "disable-javascript";
2085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
209a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Don't kill a child process when it sends a bad IPC message.  Apart
210a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// from testing, it is a bad idea from a security perspective to enable
211a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// this switch.
212a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableKillAfterBadIPC[]        = "disable-kill-after-bad-ipc";
213a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
214ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
2154e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisablePrefixedEncryptedMedia[] =
2164e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "disable-prefixed-encrypted-media";
217ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
218a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables LCD text.
219a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableLCDText[]                = "disable-lcd-text";
220a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
221010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Disables distance field text.
222010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kDisableDistanceFieldText[]      = "disable-distance-field-text";
223010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable LocalStorage.
2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLocalStorage[]           = "disable-local-storage";
2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be disabled.  Logging is enabled by default in debug
2285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLogging[]                = "disable-logging";
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
231a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Disables Media Source API (i.e., the MediaSource object).
232a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kDisableMediaSource[]            = "disable-media-source";
233a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
234ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable Pepper3D.
235ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePepper3d[]               = "disable-pepper-3d";
236ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
237ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables compositor-accelerated touch-screen pinch gestures.
238ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePinch[]                  = "disable-pinch";
239eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
2405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent plugins from running.
2415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePlugins[]                = "disable-plugins";
2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
243ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable discovering third-party plug-ins. Effectively loading only
244ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// ones shipped with the browser plus third-party ones as specified by
245ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --extra-plugin-dir and --load-plugin switches.
246ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePluginsDiscovery[]       = "disable-plugins-discovery";
247ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables remote web font support. SVG font should always work whether this
2495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// option is specified or not.
2505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRemoteFonts[]            = "disable-remote-fonts";
2515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Turns off the accessibility in the renderer.
2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRendererAccessibility[]  = "disable-renderer-accessibility";
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Disables the new layout/paint system which paints after layout is complete.
2565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kDisableRepaintAfterLayout[]     = "disable-repaint-after-layout";
2575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
258c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
2595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSeccompFilterSandbox[]   = "disable-seccomp-filter-sandbox";
2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable session storage.
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSessionStorage[]         = "disable-session-storage";
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2647d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Disable the setuid sandbox (Linux only).
2657d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kDisableSetuidSandbox[]          = "disable-setuid-sandbox";
2667d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable shared workers. Functionality not yet complete.
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSharedWorkers[]          = "disable-shared-workers";
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables site-specific tailoring to compatibility issues in WebKit.
2715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSiteSpecificQuirks[]     = "disable-site-specific-quirks";
2725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
273ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable smooth scrolling for testing.
274ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSmoothScrolling[]        = "disable-smooth-scrolling";
2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
276ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables the use of a 3D software rasterizer.
277ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSoftwareRasterizer[]     = "disable-software-rasterizer";
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
279ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable False Start in SSL and TLS connections.
280ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSSLFalseStart[]          = "disable-ssl-false-start";
281868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
282ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable multithreaded GPU compositing of web content.
283ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableThreadedCompositing[]     = "disable-threaded-compositing";
284868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2858bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Disable accelerated overflow scrolling in corner cases (that would not be
2868bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// handled by enable-accelerated-overflow-scroll).
2878bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kDisableUniversalAcceleratedOverflowScroll[] =
2888bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "disable-universal-accelerated-overflow-scroll";
2898bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
2905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't enforce the same-origin policy. (Used by people testing their sites.)
2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableWebSecurity[]            = "disable-web-security";
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2934e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables support for XSLT.
2944e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableXSLT[]                   = "disable-xslt";
2954e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
2964e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
2975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableXSSAuditor[]             = "disable-xss-auditor";
2985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2995c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Disable rasterizer that writes directly to GPU memory associated with tiles.
3005c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Overrides the kEnableZeroCopy flag.
3015c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kDisableZeroCopy[]               = "disable-zero-copy";
3025c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
3035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies if the |DOMAutomationController| needs to be bound in the
3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer. This binding happens on per-frame basis and hence can potentially
3055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be a performance bottleneck. One should only enable it when automating dom
30690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// based tests.
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDomAutomationController[]       = "dom-automation";
3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
309a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enable bleeding-edge code to make Chrome draw content faster. The changes
310a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// behind this path are very likely to break lots of content.
311a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// ** DO NOT use this flag unless you know what you are doing. **
312a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableBleedingEdgeRenderingFastPaths[] =
313a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "enable-bleeding-edge-rendering-fast-paths";
314a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
315010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Disable deferred image filters.
316010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kDisableDeferredFilters[]         = "disable-deferred-filters";
3175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
318ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables accelerated compositing for backgrounds of root layers with
3190529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// background-attachment: fixed.
320ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableAcceleratedFixedRootBackground[] =
321ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-accelerated-fixed-root-background";
322ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
323ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables accelerated compositing for overflow scroll. Promotes eligible
324ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// overflow:scroll elements to layers to enable accelerated scrolling for them.
325ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableAcceleratedOverflowScroll[] =
326ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-accelerated-overflow-scroll";
327ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
328a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enables LCD text.
329a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableLCDText[]                 = "enable-lcd-text";
330a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
331010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Enables using signed distance fields when rendering text.
332010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Only valid if GPU rasterization is enabled as well.
333010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kEnableDistanceFieldText[]       = "enable-distance-field-text";
334010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
335f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables experimental feature that maps multiple RenderLayers to
336f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// one composited layer to avoid pathological layer counts.
337f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableLayerSquashing[] =
338f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "enable-layer-squashing";
339f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
340a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable experimental container node culling.
341a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableContainerCulling[]        = "enable-container-culling";
342a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
343a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Use a BeginFrame signal from browser to renderer to schedule rendering.
344ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableBeginFrameScheduling[]    = "enable-begin-frame-scheduling";
345ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
346ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the creation of compositing layers for fixed position
3472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// elements. Three options are needed to support four possible scenarios:
3482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  1. Default (disabled)
3492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  2. Enabled always (to allow dogfooding)
3502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  3. Disabled always (to give safety fallback for users)
3512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  4. Enabled only if we detect a highDPI display
3522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
3532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Option #4 may soon be the default, because the feature is needed soon for
3542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
3552a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// override Option #4.
3565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableCompositingForFixedPosition[] =
3575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)     "enable-fixed-position-compositing";
3585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
35990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Enable/Disable the creation of compositing layers for RenderLayers with a
36090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// transition on a property that supports accelerated animation (that is,
36190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// opacity, -webkit-transform, and -webkit-filter), even when no animation is
36290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// running. These options allow for three possible scenarios:
36390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  1. Default (enabled only if we dectect a highDPI display)
36490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  2. Enabled always.
36590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  3. Disabled always.
36690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kEnableCompositingForTransition[] =
36790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)     "enable-transition-compositing";
36890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
369ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defer image decoding in WebKit until painting.
370ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableDeferredImageDecoding[]   = "enable-deferred-image-decoding";
3717dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
3722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables delegated renderer.
3732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDelegatedRenderer[]       = "enable-delegated-renderer";
3742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
3752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables restarting interrupted downloads.
3762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDownloadResumption[]      = "enable-download-resumption";
3775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
378ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for Encrypted Media Extensions (e.g. MediaKeys).
379ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableEncryptedMedia[] = "enable-encrypted-media";
380ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
381ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable experimental canvas features, e.g. canvas 2D context attributes
382ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableExperimentalCanvasFeatures[] =
383ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-experimental-canvas-features";
384ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
3857dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Enables Web Platform features that are in development.
3867dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kEnableExperimentalWebPlatformFeatures[] =
3877dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "enable-experimental-web-platform-features";
3885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// By default, cookies are not allowed on file://. They are needed for testing,
3905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for example page cycler and layout tests. See bug 1157243.
3915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableFileCookies[]             = "enable-file-cookies";
3925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
3934e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable the fast text autosizing implementation.
3944e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableFastTextAutosizing[]      = "enable-fast-text-autosizing";
3954e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
3965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable Gesture Tap Highlight
397ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableGestureTapHighlight[]     = "enable-gesture-tap-highlight";
3985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables TRACE for GL calls in the renderer.
4002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableGpuClientTracing[]        = "enable-gpu-client-tracing";
4012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
402a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Allow heuristics to determine when a layer tile should be drawn with the
403a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Skia GPU backend. Only valid with GPU accelerated compositing +
404a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// impl-side painting.
405a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableGpuRasterization[]        = "enable-gpu-rasterization";
406a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
40723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing generate low resolution tiling. Low res
40823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// tiles may be displayed during fast scrolls especially on slower devices.
40923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kEnableLowResTiling[] = "enable-low-res-tiling";
41023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
411ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForFixedPosition.
412ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableHighDpiCompositingForFixedPosition[] =
413ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "enable-high-dpi-fixed-position-compositing";
4147dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
41558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#if defined(OS_WIN)
4165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Disable the Legacy Window which corresponds to the size of the WebContents.
4175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
4185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
419a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables the DirectWrite font rendering system on windows.
420a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnableDirectWrite[]             = "enable-direct-write";
421a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
42258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Use high resolution timers for TimeTicks.
42358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kEnableHighResolutionTime[]      = "enable-high-resolution-time";
424cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
425cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Enable the Win32K process mitigation policy for renderer processes which
426cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// prevents them from invoking user32 and gdi32 system calls which enter
427cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// the kernel. This is only supported on Windows 8 and beyond.
428cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kEnableWin32kRendererLockDown[]
429cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)    = "enable_win32k_renderer_lockdown";
43058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#endif
43158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
432a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the compositor thread instead of the main thread.
433a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableImplSidePainting[]        = "enable-impl-side-painting";
434a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
435ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for inband text tracks in media content.
436ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableInbandTextTracks[]        = "enable-inband-text-tracks";
437a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
4385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be enabled.  Logging is disabled by default in release
4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableLogging[]                 = "enable-logging";
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
442ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the memory benchmarking extension
443ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableMemoryBenchmarking[]      = "enable-memory-benchmarking";
444eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
4455c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory.
4465c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableOneCopy[]                 = "enable-one-copy";
4475c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
4484e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables use of hardware overlay for fullscreen video playback. Android only.
4494e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableOverlayFullscreenVideo[]  = "enable-overlay-fullscreen-video";
4504e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
451a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables blink subtitle and media control on top of overlay fullscreen video.
452a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableOverlayFullscreenVideoSubtitle[] =
453a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "disable-overlay-fullscreen-video-subtitle";
4545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
455ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Forward overscroll event data from the renderer to the browser.
456ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
457ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
458ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables compositor-accelerated touch-screen pinch gestures.
459ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnablePinch[]                   = "enable-pinch";
460ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
461010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Make the values returned to window.performance.memory more granular and more
462010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// up to date in shared worker. Without this flag, the memory information is
463010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// still available, but it is bucketized and updated less frequently. This flag
464010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// also applys to workers.
465010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
466010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable caching of pre-parsed JS script data.  See http://crbug.com/32407.
4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnablePreparsedJsCaching[]      = "enable-preparsed-js-caching";
4695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
470ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the CSS multicol implementation that uses the regions implementation.
471ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableRegionBasedColumns[] =
472ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-region-based-columns";
4735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4740f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Enables the new layout/paint system which paints after layout is complete.
4750f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kEnableRepaintAfterLayout[] =
4760f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)    "enable-repaint-after-layout";
4770f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
4785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables targeted style recalculation optimizations.
4795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableTargetedStyleRecalc[] =
4805d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "enable-targeted-style-recalc";
4815d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Cause the OS X sandbox write to syslog every time an access to a resource
4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is denied by the sandbox.
4845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSandboxLogging[]          = "enable-sandbox-logging";
4855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
486a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enables seccomp-bpf support for Android. Requires experimental kernel
487a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// support. <http://crbug.com/166704>
488a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableSeccompFilterSandbox[] =
489a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch    "enable-seccomp-filter-sandbox";
490a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
491ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the Skia benchmarking extension
492ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSkiaBenchmarking[]        = "enable-skia-benchmarking";
4935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On platforms that support it, enables smooth scroll animation.
4955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSmoothScrolling[]         = "enable-smooth-scrolling";
4965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
497ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable spatial navigation
498ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpatialNavigation[]       = "enable-spatial-navigation";
499ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
500ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the synthesis part of the Web Speech API.
501ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechSynthesis[]         = "enable-speech-synthesis";
502ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables StatsTable, logging statistics to a global named shared memory table.
5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStatsTable[]              = "enable-stats-table";
5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Experimentally ensures that each renderer process:
5072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1) Only handles rendering for pages from a single site, apart from iframes.
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (Note that a page can reference content from multiple origins due to images,
5092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// JavaScript files, etc.  Cross-site iframes are also loaded in-process.)
5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2) Only has authority to see or use cookies for the page's top-level origin.
5112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (So if a.com iframes b.com, the b.com network request will be sent without
5122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies.)
5132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This is expected to break compatibility with many pages for now.  Unlike the
5142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// --site-per-process flag, this allows cross-site iframes, but it blocks all
5152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies on cross-site requests.
5165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStrictSiteIsolation[]     = "enable-strict-site-isolation";
5175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5184e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable support for ServiceWorker. See
5194e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// https://github.com/slightlyoff/ServiceWorker for more information.
5204e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableServiceWorker[]           = "enable-service-worker";
5214e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
522a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable support for sync events in ServiceWorkers.
523a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableServiceWorkerSync[]       = "enable-service-worker-sync";
524a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
525ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable use of experimental TCP sockets API for sending data in the
526ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// SYN packet.
527ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableTcpFastOpen[]             = "enable-tcp-fastopen";
528ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable multithreaded GPU compositing of web content.
5305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableThreadedCompositing[]     = "enable-threaded-compositing";
5315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5328bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Enable accelerated overflow scrolling in all cases.
5338bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kEnableUniversalAcceleratedOverflowScroll[] =
5348bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "enable-universal-accelerated-overflow-scroll";
5358bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
536ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable screen capturing support for MediaStream API.
537ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableUserMediaScreenCapturing[] =
538ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-usermedia-screen-capturing";
539ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
540f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the @viewport CSS rule, which allows
541ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pages to control aspects of their own layout. This also turns on touch-screen
542ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pinch gestures.
543ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableViewport[]                = "enable-viewport";
544ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
545f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the legacy viewport meta tag. Turning this on also
546f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// turns on the @viewport CSS rule
547f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableViewportMeta[]            = "enable-viewport-meta";
548f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
549f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Resizes of the main frame are the caused by changing between landscape
550f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// and portrait mode (i.e. Android) so the page should be rescaled to fit
551f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kMainFrameResizesAreOrientationChanges[] =
552f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "main-frame-resizes-are-orientation-changes";
553f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
554ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the Vtune profiler support.
555ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableVtune[]                   = "enable-vtune-support";
5565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
557ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable SVG Animations on the Web Animations model.
558ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebAnimationsSVG[]        = "enable-web-animations-svg";
559ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
560ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables WebGL extensions not yet approved by the community.
561ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
562ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
563cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Enables WebGL rendering into a scanout buffer for overlay support.
564cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
565cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
566ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables Web MIDI API.
567ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebMIDI[]                 = "enable-web-midi";
568ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5695c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory associated with tiles.
5705c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableZeroCopy[]                = "enable-zero-copy";
5715c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
572ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Load NPAPI plugins from the specified directory.
573ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kExtraPluginDir[]                = "extra-plugin-dir";
574ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5750529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Enable force_compositing_mode in layout tests.
5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceCompositingMode[]          = "force-compositing-mode";
5775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some field trials may be randomized in the browser, and the randomly selected
5795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// outcome needs to be propagated to the renderer. For instance, this is used
5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to modify histograms recorded in the renderer, or to get the renderer to
5815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// also set of its state (initialize, or not initialize components) to match the
5825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experiment(s). The option is also useful for forcing field trials when
5835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// testing changes locally. The argument is a list of name and value pairs,
5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated by slashes. See FieldTrialList::CreateTrialsFromString() in
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// field_trial.h for details.
5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceFieldTrials[]              = "force-fieldtrials";
5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
588a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
589a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// accelerated compositing + impl-side painting. Overrides the
590a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// kEnableGpuRasterization flag.
591a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kForceGpuRasterization[]        = "force-gpu-rasterization";
592a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force renderer accessibility to be on instead of enabling it on demand when
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a screen reader is detected. The disable-renderer-accessibility switch
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// overrides this if present.
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceRendererAccessibility[]    = "force-renderer-accessibility";
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu device_id from browser process to GPU process.
5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDeviceID[]                   = "gpu-device-id";
6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_vendor from browser process to GPU process.
6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVendor[]               = "gpu-driver-vendor";
6035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_version from browser process to GPU process.
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVersion[]              = "gpu-driver-version";
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extra command line options for launching the GPU process (normally used
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for debugging). Use like renderer-cmd-prefix.
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuLauncher[]                   = "gpu-launcher";
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Makes this process a GPU sub-process.
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuProcess[]                    = "gpu-process";
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
614a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Allow shmat system call in GPU sandbox.
615a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kGpuSandboxAllowSysVShm[]        = "gpu-sandbox-allow-sysv-shm";
616a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
617a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Makes GPU sandbox failures fatal.
618a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kGpuSandboxFailuresFatal[]       = "gpu-sandbox-failures-fatal";
619a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
620effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Allow GPU sandbox to start later
621effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kGpuSandboxStartAfterInitialization[] =
622effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "gpu-sandbox-start-after-initialization";
623effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the GPU process to display a dialog on launch.
6255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuStartupDialog[]              = "gpu-startup-dialog";
6265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu vendor_id from browser process to GPU process.
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuVendorID[]                   = "gpu-vendor-id";
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These mappings only apply to the host resolver.
6315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostResolverRules[]             = "host-resolver-rules";
6325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores certificate-related errors.
6345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreCertificateErrors[]       = "ignore-certificate-errors";
6355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores GPU blacklist.
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreGpuBlacklist[]            = "ignore-gpu-blacklist";
6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Run the GPU process as a thread in the browser process.
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInProcessGPU[]                  = "in-process-gpu";
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the flags passed to JS engine
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJavaScriptFlags[]               = "js-flags";
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Load an NPAPI plugin from the specified path.
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadPlugin[]                    = "load-plugin";
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6484e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Logs GPU control list decisions when enforcing blacklist rules.
6494e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kLogGpuControlListDecisions[]    = "log-gpu-control-list-decisions";
6504e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
6515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets the minimum log level. Valid values are from 0 to 3:
6525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
6535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoggingLevel[]                  = "log-level";
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables saving net log events to a file and sets the file name to use.
656ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kLogNetLog[]                     = "log-net-log";
657ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Make plugin processes log their sent and received messages to VLOG(1).
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLogPluginMessages[]             = "log-plugin-messages";
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
661ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the width and height above which a composited layer will get tiled.
662ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerHeight[]         = "max-untiled-layer-height";
663ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerWidth[]          = "max-untiled-layer-width";
664ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Sample memory usage with high frequency and store the results to the
6662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Renderer.Memory histogram. Used in memory tests.
6672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMemoryMetrics[]                 = "memory-metrics";
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6693240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// Mutes audio sent to the audio device so it is not audible during
6703240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// automated testing.
6713240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kMuteAudio[]                     = "mute-audio";
6723240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't send HTTP-Referer headers.
6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoReferrers[]                   = "no-referrers";
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the sandbox for all process types that are normally sandboxed.
6775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoSandbox[]                     = "no-sandbox";
6785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Number of worker threads used to rasterize content.
6805d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kNumRasterThreads[]              = "num-raster-threads";
6815d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
682ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables history navigation in response to horizontal overscroll.
683ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
684ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to enabled.
685ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kOverscrollHistoryNavigation[] =
686ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "overscroll-history-navigation";
6875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a command that should be used to launch the plugin process.  Useful
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for running the plugin process through purify or quantify.  Ex:
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   --plugin-launcher="path\to\purify /Run=yes"
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginLauncher[]                = "plugin-launcher";
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells the plugin process the path of the plugin to load
6945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginPath[]                    = "plugin-path";
6955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a plugin subprocess.
6975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginProcess[]                 = "plugin";
6985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the plugin process to display a dialog on launch.
7005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginStartupDialog[]           = "plugin-startup-dialog";
7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI broker process type.
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiBrokerProcess[]            = "ppapi-broker";
7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
705ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// "Command-line" arguments for the PPAPI Flash; used for debugging options.
706ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kPpapiFlashArgs[]                = "ppapi-flash-args";
707ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
7082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Runs PPAPI (Pepper) plugins in-process.
7092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPpapiInProcess[]                = "ppapi-in-process";
7105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Like kPluginLauncher for PPAPI plugins.
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginLauncher[]           = "ppapi-plugin-launcher";
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI plugin process type.
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginProcess[]            = "ppapi";
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the PPAPI sub process to display a dialog on launch. Be sure to use
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --no-sandbox as well or the sandbox won't allow the dialog to display.
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiStartupDialog[]            = "ppapi-startup-dialog";
7205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs a single process for each site (i.e., group of pages from the same
7225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// registered domain) the user visits.  We default to using a renderer process
7235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for each site instance (i.e., group of pages from the same registered
7245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain with script connections to each other).
7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerSite[]                = "process-per-site";
7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
7285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer process.  We default to using a renderer process for each
7295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// site instance (i.e., group of pages from the same registered domain with
7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// script connections to each other).
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerTab[]                 = "process-per-tab";
7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value of this switch determines whether the process is started as a
7345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer or plugin host.  If it's empty, it's the browser.
7355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessType[]                   = "type";
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables more web features over insecure connections. Designed to be used
7385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for testing purposes only.
7395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kReduceSecurityForTesting[]      = "reduce-security-for-testing";
740ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
7414e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Register Pepper plugins (see pepper_plugin_list.cc for its format).
7425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisterPepperPlugins[]         = "register-pepper-plugins";
7435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables remote debug over HTTP on the specified port.
7455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteDebuggingPort[]           = "remote-debugging-port";
7465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to throw an assertion on launch.
7485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererAssertTest[]            = "renderer-assert-test";
7495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the renderer
7515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// command line. Useful values might be "valgrind" or "xterm -e gdb --args".
7525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererCmdPrefix[]             = "renderer-cmd-prefix";
7535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as renderer instead of as browser.
7555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcess[]               = "renderer";
7565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the default/calculated limit to the number of renderer processes.
7585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Very high values for this setting can lead to high memory/resource usage
7595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or instability.
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcessLimit[]          = "renderer-process-limit";
7615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to display a dialog on launch.
7635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererStartupDialog[]         = "renderer-startup-dialog";
7645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
76568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Causes the process to run as a sandbox IPC subprocess.
76668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kSandboxIPCProcess[]             = "sandbox-ipc";
76768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
768ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables scroll end effect in response to vertical overscroll.
769ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
770ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to disabled.
771ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kScrollEndEffect[] = "scroll-end-effect";
7725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Visibly render a border around paint rects in the web page to help debug
7745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and study painting behavior.
7755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPaintRects[]                = "show-paint-rects";
7765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs the renderer and plugins in the same process as the browser
7785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSingleProcess[]                 = "single-process";
7795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Experimentally enforces a one-site-per-process security policy.
7812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// All cross-site navigations force process swaps, and we can restrict a
7822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// renderer process's access rights based on its site.  For details, see:
7832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// http://www.chromium.org/developers/design-documents/site-isolation
7842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
7852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Unlike --enable-strict-site-isolation (which allows cross-site iframes),
786f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// this flag does not affect which cookies are attached to cross-site requests.
787f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Support is being added to render cross-site iframes in a different process
788f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// than their parent pages.
7892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSitePerProcess[]                = "site-per-process";
7902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Skip gpu info collection, blacklist loading, and blacklist auto-update
7925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// scheduling at browser startup time.
7935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Therefore, all GPU features are available, and about:gpu page shows empty
7944e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// content. The switch is intended only for layout tests.
7954e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// TODO(gab): Get rid of this switch entirely.
7965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSkipGpuDataLoading[]            = "skip-gpu-data-loading";
7975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
798a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Specifies if the browser should start in fullscreen mode, like if the user
799a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// had pressed F11 right after startup.
800a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kStartFullscreen[] = "start-fullscreen";
801ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
802ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Specifies if the |StatsCollectionController| needs to be bound in the
803ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// renderer. This binding happens on per-frame basis and hence can potentially
804ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// be a performance bottleneck. One should only enable it when running a test
805ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// that needs to access the provided statistics.
806ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kStatsCollectionController[] =
807ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-stats-collection-bindings";
808ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
809ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Upscale defaults to "good".
810ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTabCaptureDownscaleQuality[]    = "tab-capture-downscale-quality";
811ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
812868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
813868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// One flag for upscaling, one for downscaling.
814868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Upscale defaults to "best".
815868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kTabCaptureUpscaleQuality[]      = "tab-capture-upscale-quality";
816868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
8175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows for forcing socket connections to http/https to use fixed ports.
8185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpPort[]          = "testing-fixed-http-port";
8195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpsPort[]         = "testing-fixed-https-port";
8205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
821ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Runs the security test for the renderer sandbox.
822ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTestSandbox[]                   = "test-sandbox";
823ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
824a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Type of the current test harness ("browser" or "ui").
825a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kTestType[]                      = "test-type";
826a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
8275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingMode[]            = "touch-scrolling-mode";
8285c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeAsyncTouchmove[] = "async-touchmove";
8295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingModeSyncTouchmove[] = "sync-touchmove";
8305c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeTouchcancel[] = "touchcancel";
8315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
83258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
83358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// can specify the specific trace categories to include (e.g.
83458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown=base,net) otherwise, all events are recorded.
83558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown-file can be used to control where the trace log gets stored
83658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// to since there is otherwise no way to access the result.
83758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdown[]                 = "trace-shutdown";
83858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
83958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// If supplied, sets the file which shutdown tracing will be stored into, if
84058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
84158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Has no effect unless --trace-shutdown is also supplied.
84258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
84358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdownFile[]             = "trace-shutdown-file";
84458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
8455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
8465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specify the specific trace categories to include (e.g.
8475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup=base,net) otherwise, all events are recorded. Setting this
8485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// flag results in the first call to BeginTracing() to receive all trace events
8495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since startup. In Chrome, you may find --trace-startup-file and
8505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup-duration to control the auto-saving of the trace (not
8515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// supported in the base-only TraceLog component).
8525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartup[]                  = "trace-startup";
8535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
854ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the time in seconds until startup tracing ends. If omitted a default of
855ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// 5 seconds is used. Has no effect without --trace-startup, or if
856ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --startup-trace-file=none was supplied.
857ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTraceStartupDuration[]          = "trace-startup-duration";
858ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If supplied, sets the file which startup tracing will be stored into, if
8605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
8615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Has no effect unless --trace-startup is also supplied.
8625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
8635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// As a special case, can be set to 'none' - this disables automatically saving
8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the result to a file and the first manually recorded trace will then receive
8655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all events since startup.
8665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartupFile[]              = "trace-startup-file";
8675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
868ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prioritizes the UI's command stream in the GPU process
8715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kUIPrioritizeInGpuProcess[] =
8725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "ui-prioritize-in-gpu-process";
8735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Overrides the preferred discardable memory implementation.
8755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUseDiscardableMemory[] = "use-discardable-memory";
8765d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
877ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Bypass the media stream infobar by selecting the default device for media
878ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
879ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseFakeUIForMediaStream[]     = "use-fake-ui-for-media-stream";
880ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
881ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set when Chromium should use a mobile user agent.
882ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseMobileUserAgent[] = "use-mobile-user-agent";
883ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the utility
8855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// process command line. Useful values might be "valgrind" or "xterm -e gdb
8865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --args".
8875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityCmdPrefix[]              = "utility-cmd-prefix";
8885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a utility subprocess.
8905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcess[]                = "utility";
8915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The utility process is sandboxed, with access to one directory. This flag
8935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specifies the directory that can be accessed.
8945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcessAllowedDir[]      = "utility-allowed-dir";
8955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
896ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Allows MDns to access network in sandboxed process.
897ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kUtilityProcessEnableMDns[]      = "utility-enable-mdns";
898ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
8995d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
9005d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
901a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// In debug builds, asserts that the stream of input events is valid.
902a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kValidateInputEventStream[] = "validate-input-event-stream";
903a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
9045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Will add kWaitForDebugger to every child processes. If a value is passed, it
9055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will be used as a filter to determine if the child process should have the
9065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kWaitForDebugger flag passed on or not.
9075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWaitForDebuggerChildren[]       = "wait-for-debugger-children";
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a worker subprocess.
9105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWorkerProcess[]                 = "worker";
9115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prefix used when starting the zygote process. (i.e. 'gdb --args')
9135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteCmdPrefix[]               = "zygote-cmd-prefix";
9145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a renderer zygote.
9165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteProcess[]                 = "zygote";
9175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
918ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#if defined(ENABLE_WEBRTC)
919cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Disables audio processing in a MediaStreamTrack. When this flag is on, AEC,
920cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// NS and AGC will be done in PeerConnection instead of MediaStreamTrack.
921cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kDisableAudioTrackProcessing[]    = "disable-audio-track-processing";
922f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
923f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disables WebRTC device enumeration.
92458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableDeviceEnumeration[]      = "disable-device-enumeration";
9255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
926d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Disables HW decode acceleration for WebRTC.
927d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableWebRtcHWDecoding[]       = "disable-webrtc-hw-decoding";
928d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
9290f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
9300f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// ignores this switch on its stable and beta channels.
9310f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDisableWebRtcEncryption[]      = "disable-webrtc-encryption";
9320f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
93358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables HW encode acceleration for WebRTC.
93458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableWebRtcHWEncoding[]       = "disable-webrtc-hw-encoding";
93558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
93668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enables VP8 HW encode acceleration for WebRTC.
93768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kEnableWebRtcHWVp8Encoding[]     = "enable-webrtc-hw-vp8-encoding";
938ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#endif
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
9412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable user gesture requirement for media playback.
9422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableGestureRequirementForMediaPlayback[] =
9432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "disable-gesture-requirement-for-media-playback";
9445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
945a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable the click delay by sending click events during double tap.
946a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableClickDelay[]             = "disable-click-delay";
947a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
94890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Disable overscroll edge effects like those found in Android views.
94958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableOverscrollEdgeEffect[]   = "disable-overscroll-edge-effect";
950ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
951ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// WebRTC is enabled by default on Android.
952ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableWebRTC[]                 = "disable-webrtc";
953ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
954ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the recognition part of the Web Speech API.
955ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechRecognition[]       = "enable-speech-recognition";
956ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
9570529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Always use the video overlay for the embedded video.
9580529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// This switch is intended only for tests.
9590529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kForceUseOverlayEmbeddedVideo[] = "force-use-overlay-embedded-video";
9600529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
961ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// The telephony region (ISO country code) to use in phone number detection.
962ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kNetworkCountryIso[] = "network-country-iso";
963ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
964ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables remote debug over HTTP on the specified socket name.
965ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kRemoteDebuggingSocketName[]     = "remote-debugging-socket-name";
9665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
968a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disable web audio API.
969a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableWebAudio[]               = "disable-webaudio";
970a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
9712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
9722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables panel fitting (used for mirror mode).
9732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisablePanelFitting[]           = "disable-panel-fitting";
9742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
9752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX) && !defined(OS_IOS)
9775d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableCarbonInterposing[]       = "enable-carbon-interposing";
978868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
979c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// Disables support for Core Animation plugins. This is triggered when
980c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// accelerated compositing is disabled. See http://crbug.com/122430 .
981c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdochconst char kDisableCoreAnimationPlugins[] =
982c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch    "disable-core-animation-plugins";
9835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
985ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Don't dump stuff here, follow the same order as the header.
9867dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
9875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace switches
988