content_switches.cc revision 5c02ac1a9c1b504631c0a3d2b6e737b5d738bae1
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)
1520f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Disables sending filters (SkImageFilter objects) between processes over IPC
1530f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDisableFiltersOverIPC[]         = "disable-filters-over-ipc";
1540f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
155ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableFixedPositionCreatesStackingContext[]
156ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    = "disable-fixed-position-creates-stacking-context";
157ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable 3D inside of flapper.
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlash3d[]                = "disable-flash-3d";
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable Stage3D inside of flapper.
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlashStage3d[]           = "disable-flash-stage3d";
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
164f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disable deferral of scroll-ending gesture events when a scroll is active.
165f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kDisableGestureDebounce[]        = "disable-gesture-debounce";
166f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
167ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGestureTapHighlight[]    = "disable-gesture-tap-highlight";
168ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable GL multisampling.
1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableGLMultisampling[]        = "disable-gl-multisampling";
1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
172ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables GPU hardware acceleration.  If software renderer is not in place,
173ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// then the GPU process won't launch.
174ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpu[]                    = "disable-gpu";
175ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
176ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Prevent the compositor from using its GPU implementation.
177ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuCompositing[]         = "disable-gpu-compositing";
178ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
179f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disable the limit on the number of times the GPU process may be restarted
180f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// This switch is intended only for tests.
181f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)extern const char kDisableGpuProcessCrashLimit[] =
182f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-gpu-process-crash-limit";
183f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
184a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable GPU rasterization, i.e. rasterize on the CPU only.
185a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
186a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableGpuRasterization[]       = "disable-gpu-rasterization";
187a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
18823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing disable low resolution tiling. This uses
18923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// less power, particularly during animations, but more white may be seen
19023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// during fast scrolling especially on slower devices.
19123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kDisableLowResTiling[] = "disable-low-res-tiling";
19223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the GPU process sandbox.
1945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableGpuSandbox[]             = "disable-gpu-sandbox";
1955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
196ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable the thread that crashes the GPU process if it stops responding to
197ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// messages.
198ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuWatchdog[]            = "disable-gpu-watchdog";
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Suppresses hang monitor dialogs in renderer processes.  This may allow slow
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// unload handlers on a page to prevent the tab from closing, but the Task
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Manager can be used to terminate the offending process in this case.
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableHangMonitor[]            = "disable-hang-monitor";
2045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable the RenderThread's HistogramCustomizer.
2062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableHistogramCustomizer[]    = "disable-histogram-customizer";
2072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
208a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the main thread instead of the compositor thread.
209a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableImplSidePainting flag.
210a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableImplSidePainting[]       = "disable-impl-side-painting";
2115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent Java from running.
2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJava[]                   = "disable-java";
2145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't execute JavaScript (browser JS like the new tab page still runs).
2165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJavaScript[]             = "disable-javascript";
2175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
218a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Don't kill a child process when it sends a bad IPC message.  Apart
219a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// from testing, it is a bad idea from a security perspective to enable
220a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// this switch.
221a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableKillAfterBadIPC[]        = "disable-kill-after-bad-ipc";
222a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
223ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
2244e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisablePrefixedEncryptedMedia[] =
2254e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "disable-prefixed-encrypted-media";
226ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
227a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables LCD text.
228a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableLCDText[]                = "disable-lcd-text";
229a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable LocalStorage.
2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLocalStorage[]           = "disable-local-storage";
2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be disabled.  Logging is enabled by default in debug
2345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
2355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLogging[]                = "disable-logging";
2365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
237a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Disables Media Source API (i.e., the MediaSource object).
238a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kDisableMediaSource[]            = "disable-media-source";
239a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
240ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable Pepper3D.
241ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePepper3d[]               = "disable-pepper-3d";
242ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
243ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables compositor-accelerated touch-screen pinch gestures.
244ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePinch[]                  = "disable-pinch";
245eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent plugins from running.
2475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePlugins[]                = "disable-plugins";
2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
249ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable discovering third-party plug-ins. Effectively loading only
250ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// ones shipped with the browser plus third-party ones as specified by
251ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --extra-plugin-dir and --load-plugin switches.
252ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePluginsDiscovery[]       = "disable-plugins-discovery";
253ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables remote web font support. SVG font should always work whether this
2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// option is specified or not.
2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRemoteFonts[]            = "disable-remote-fonts";
2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Turns off the accessibility in the renderer.
2595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRendererAccessibility[]  = "disable-renderer-accessibility";
2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Disables the new layout/paint system which paints after layout is complete.
2625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kDisableRepaintAfterLayout[]     = "disable-repaint-after-layout";
2635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
264c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
2655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSeccompFilterSandbox[]   = "disable-seccomp-filter-sandbox";
2665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable session storage.
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSessionStorage[]         = "disable-session-storage";
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2707d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Disable the setuid sandbox (Linux only).
2717d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kDisableSetuidSandbox[]          = "disable-setuid-sandbox";
2727d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
2735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable shared workers. Functionality not yet complete.
2745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSharedWorkers[]          = "disable-shared-workers";
2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables site-specific tailoring to compatibility issues in WebKit.
2775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSiteSpecificQuirks[]     = "disable-site-specific-quirks";
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
279ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable smooth scrolling for testing.
280ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSmoothScrolling[]        = "disable-smooth-scrolling";
2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
282ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables the use of a 3D software rasterizer.
283ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSoftwareRasterizer[]     = "disable-software-rasterizer";
2845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
285ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables speech input.
286ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSpeechInput[]            = "disable-speech-input";
287c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
288ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable False Start in SSL and TLS connections.
289ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSSLFalseStart[]          = "disable-ssl-false-start";
290868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
291ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable multithreaded GPU compositing of web content.
292ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableThreadedCompositing[]     = "disable-threaded-compositing";
293868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2948bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Disable accelerated overflow scrolling in corner cases (that would not be
2958bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// handled by enable-accelerated-overflow-scroll).
2968bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kDisableUniversalAcceleratedOverflowScroll[] =
2978bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "disable-universal-accelerated-overflow-scroll";
2988bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
2995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't enforce the same-origin policy. (Used by people testing their sites.)
3005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableWebSecurity[]            = "disable-web-security";
3015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3024e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables support for XSLT.
3034e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableXSLT[]                   = "disable-xslt";
3044e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
3054e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableXSSAuditor[]             = "disable-xss-auditor";
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3085c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Disable rasterizer that writes directly to GPU memory associated with tiles.
3095c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Overrides the kEnableZeroCopy flag.
3105c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kDisableZeroCopy[]               = "disable-zero-copy";
3115c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
3125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies if the |DOMAutomationController| needs to be bound in the
3135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer. This binding happens on per-frame basis and hence can potentially
3145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be a performance bottleneck. One should only enable it when automating dom
31590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// based tests.
3165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDomAutomationController[]       = "dom-automation";
3175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
318a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enable bleeding-edge code to make Chrome draw content faster. The changes
319a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// behind this path are very likely to break lots of content.
320a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// ** DO NOT use this flag unless you know what you are doing. **
321a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableBleedingEdgeRenderingFastPaths[] =
322a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "enable-bleeding-edge-rendering-fast-paths";
323a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
3245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Disable gpu-accelerated 2d canvas.
3255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableDeferredFilters[]         = "enable-deferred-filters";
3265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
327ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables accelerated compositing for backgrounds of root layers with
3280529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// background-attachment: fixed.
329ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableAcceleratedFixedRootBackground[] =
330ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-accelerated-fixed-root-background";
331ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
332ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables accelerated compositing for overflow scroll. Promotes eligible
333ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// overflow:scroll elements to layers to enable accelerated scrolling for them.
334ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableAcceleratedOverflowScroll[] =
335ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-accelerated-overflow-scroll";
336ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
337a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enables LCD text.
338a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableLCDText[]                 = "enable-lcd-text";
339a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
340f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables experimental feature that maps multiple RenderLayers to
341f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// one composited layer to avoid pathological layer counts.
342f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableLayerSquashing[] =
343f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "enable-layer-squashing";
344f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
345a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable experimental container node culling.
346a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableContainerCulling[]        = "enable-container-culling";
347a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Turns on extremely verbose logging of accessibility events.
3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAccessibilityLogging[]    = "enable-accessibility-logging";
3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
351a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Use a BeginFrame signal from browser to renderer to schedule rendering.
352ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableBeginFrameScheduling[]    = "enable-begin-frame-scheduling";
353ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
354ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the creation of compositing layers for fixed position
3552a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// elements. Three options are needed to support four possible scenarios:
3562a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  1. Default (disabled)
3572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  2. Enabled always (to allow dogfooding)
3582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  3. Disabled always (to give safety fallback for users)
3592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  4. Enabled only if we detect a highDPI display
3602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
3612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Option #4 may soon be the default, because the feature is needed soon for
3622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
3632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// override Option #4.
3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableCompositingForFixedPosition[] =
3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)     "enable-fixed-position-compositing";
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
36790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Enable/Disable the creation of compositing layers for RenderLayers with a
36890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// transition on a property that supports accelerated animation (that is,
36990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// opacity, -webkit-transform, and -webkit-filter), even when no animation is
37090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// running. These options allow for three possible scenarios:
37190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  1. Default (enabled only if we dectect a highDPI display)
37290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  2. Enabled always.
37390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  3. Disabled always.
37490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kEnableCompositingForTransition[] =
37590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)     "enable-transition-compositing";
37690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
377ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defer image decoding in WebKit until painting.
378ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableDeferredImageDecoding[]   = "enable-deferred-image-decoding";
3797dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
3802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables delegated renderer.
3812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDelegatedRenderer[]       = "enable-delegated-renderer";
3822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
3832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables restarting interrupted downloads.
3842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDownloadResumption[]      = "enable-download-resumption";
3855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
386ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for Encrypted Media Extensions (e.g. MediaKeys).
387ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableEncryptedMedia[] = "enable-encrypted-media";
388ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
389ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable experimental canvas features, e.g. canvas 2D context attributes
390ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableExperimentalCanvasFeatures[] =
391ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-experimental-canvas-features";
392ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
3937dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Enables Web Platform features that are in development.
3947dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kEnableExperimentalWebPlatformFeatures[] =
3957dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "enable-experimental-web-platform-features";
3965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// By default, cookies are not allowed on file://. They are needed for testing,
3985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for example page cycler and layout tests. See bug 1157243.
3995d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableFileCookies[]             = "enable-file-cookies";
4005d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
4014e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable the fast text autosizing implementation.
4024e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableFastTextAutosizing[]      = "enable-fast-text-autosizing";
4034e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
404ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableFixedPositionCreatesStackingContext[]
405ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    = "enable-fixed-position-creates-stacking-context";
4065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable Gesture Tap Highlight
408ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableGestureTapHighlight[]     = "enable-gesture-tap-highlight";
4095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables TRACE for GL calls in the renderer.
4112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableGpuClientTracing[]        = "enable-gpu-client-tracing";
4122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
413a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Allow heuristics to determine when a layer tile should be drawn with the
414a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Skia GPU backend. Only valid with GPU accelerated compositing +
415a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// impl-side painting.
416a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableGpuRasterization[]        = "enable-gpu-rasterization";
417a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
41823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing generate low resolution tiling. Low res
41923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// tiles may be displayed during fast scrolls especially on slower devices.
42023730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kEnableLowResTiling[] = "enable-low-res-tiling";
42123730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
422ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForFixedPosition.
423ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableHighDpiCompositingForFixedPosition[] =
424ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "enable-high-dpi-fixed-position-compositing";
4257dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
42658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#if defined(OS_WIN)
4275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Disable the Legacy Window which corresponds to the size of the WebContents.
4285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
4295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
430a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables the DirectWrite font rendering system on windows.
431a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnableDirectWrite[]             = "enable-direct-write";
432a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
43358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Use high resolution timers for TimeTicks.
43458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kEnableHighResolutionTime[]      = "enable-high-resolution-time";
43558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#endif
43658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
437a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the compositor thread instead of the main thread.
438a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableImplSidePainting[]        = "enable-impl-side-painting";
439a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
440ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for inband text tracks in media content.
441ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableInbandTextTracks[]        = "enable-inband-text-tracks";
442a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
4435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be enabled.  Logging is disabled by default in release
4445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
4455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableLogging[]                 = "enable-logging";
4465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
447ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the memory benchmarking extension
448ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableMemoryBenchmarking[]      = "enable-memory-benchmarking";
449eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
450a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Make the values returned to window.performance.memory more granular and more
451a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// up to date in shared worker. Without this flag, the memory information is
452a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// still available, but it is bucketized and updated less frequently.
453a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableSharedWorkerMemoryInfo[] =
454a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch    "enable-shared-worker-memory-info";
455a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On Windows, converts the page to the currently-installed monitor profile.
4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This does NOT enable color management for images. The source is still
4585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// assumed to be sRGB.
4595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableMonitorProfile[]          = "enable-monitor-profile";
4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
461c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Enables use of cache if offline, even if it's stale
462c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableOfflineCacheAccess[]      = "enable-offline-cache-access";
4635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4645c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory.
4655c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableOneCopy[]                 = "enable-one-copy";
4665c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
4674e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables use of hardware overlay for fullscreen video playback. Android only.
4684e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableOverlayFullscreenVideo[]  = "enable-overlay-fullscreen-video";
4694e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
470a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables blink subtitle and media control on top of overlay fullscreen video.
471a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableOverlayFullscreenVideoSubtitle[] =
472a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "disable-overlay-fullscreen-video-subtitle";
4735d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
474ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Forward overscroll event data from the renderer to the browser.
475ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
476ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
477ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables compositor-accelerated touch-screen pinch gestures.
478ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnablePinch[]                   = "enable-pinch";
479ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
4805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable caching of pre-parsed JS script data.  See http://crbug.com/32407.
4815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnablePreparsedJsCaching[]      = "enable-preparsed-js-caching";
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable privileged WebGL extensions; without this switch such extensions are
4845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// available only to Chrome extensions.
4855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnablePrivilegedWebGLExtensions[] =
4865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "enable-privileged-webgl-extensions";
4875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
488ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the CSS multicol implementation that uses the regions implementation.
489ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableRegionBasedColumns[] =
490ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-region-based-columns";
4915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4920f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Enables the new layout/paint system which paints after layout is complete.
4930f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kEnableRepaintAfterLayout[] =
4940f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)    "enable-repaint-after-layout";
4950f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
4965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables targeted style recalculation optimizations.
4975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableTargetedStyleRecalc[] =
4985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "enable-targeted-style-recalc";
4995d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
5005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Cause the OS X sandbox write to syslog every time an access to a resource
5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is denied by the sandbox.
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSandboxLogging[]          = "enable-sandbox-logging";
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
504a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enables seccomp-bpf support for Android. Requires experimental kernel
505a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// support. <http://crbug.com/166704>
506a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableSeccompFilterSandbox[] =
507a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch    "enable-seccomp-filter-sandbox";
508a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
509ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the Skia benchmarking extension
510ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSkiaBenchmarking[]        = "enable-skia-benchmarking";
5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On platforms that support it, enables smooth scroll animation.
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSmoothScrolling[]         = "enable-smooth-scrolling";
5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
515ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable spatial navigation
516ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpatialNavigation[]       = "enable-spatial-navigation";
517ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
518ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the synthesis part of the Web Speech API.
519ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechSynthesis[]         = "enable-speech-synthesis";
520ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables StatsTable, logging statistics to a global named shared memory table.
5225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStatsTable[]              = "enable-stats-table";
5235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Experimentally ensures that each renderer process:
5252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1) Only handles rendering for pages from a single site, apart from iframes.
5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (Note that a page can reference content from multiple origins due to images,
5272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// JavaScript files, etc.  Cross-site iframes are also loaded in-process.)
5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2) Only has authority to see or use cookies for the page's top-level origin.
5292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (So if a.com iframes b.com, the b.com network request will be sent without
5302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies.)
5312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This is expected to break compatibility with many pages for now.  Unlike the
5322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// --site-per-process flag, this allows cross-site iframes, but it blocks all
5332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies on cross-site requests.
5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStrictSiteIsolation[]     = "enable-strict-site-isolation";
5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5364e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable support for ServiceWorker. See
5374e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// https://github.com/slightlyoff/ServiceWorker for more information.
5384e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableServiceWorker[]           = "enable-service-worker";
5394e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
540a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable support for sync events in ServiceWorkers.
541a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableServiceWorkerSync[]       = "enable-service-worker-sync";
542a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
543ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable use of experimental TCP sockets API for sending data in the
544ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// SYN packet.
545ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableTcpFastOpen[]             = "enable-tcp-fastopen";
546ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable multithreaded GPU compositing of web content.
5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableThreadedCompositing[]     = "enable-threaded-compositing";
5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5508bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Enable accelerated overflow scrolling in all cases.
5518bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kEnableUniversalAcceleratedOverflowScroll[] =
5528bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "enable-universal-accelerated-overflow-scroll";
5538bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
554ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable screen capturing support for MediaStream API.
555ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableUserMediaScreenCapturing[] =
556ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-usermedia-screen-capturing";
557ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
558f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the @viewport CSS rule, which allows
559ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pages to control aspects of their own layout. This also turns on touch-screen
560ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pinch gestures.
561ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableViewport[]                = "enable-viewport";
562ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
563f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the legacy viewport meta tag. Turning this on also
564f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// turns on the @viewport CSS rule
565f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableViewportMeta[]            = "enable-viewport-meta";
566f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
567f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Resizes of the main frame are the caused by changing between landscape
568f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// and portrait mode (i.e. Android) so the page should be rescaled to fit
569f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kMainFrameResizesAreOrientationChanges[] =
570f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "main-frame-resizes-are-orientation-changes";
571f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
572ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the Vtune profiler support.
573ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableVtune[]                   = "enable-vtune-support";
5745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
575ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable SVG Animations on the Web Animations model.
576ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebAnimationsSVG[]        = "enable-web-animations-svg";
577ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
578ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables WebGL extensions not yet approved by the community.
579ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
580ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
581ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables Web MIDI API.
582ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebMIDI[]                 = "enable-web-midi";
583ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5845c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory associated with tiles.
5855c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableZeroCopy[]                = "enable-zero-copy";
5865c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
587ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Load NPAPI plugins from the specified directory.
588ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kExtraPluginDir[]                = "extra-plugin-dir";
589ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5900529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Enable force_compositing_mode in layout tests.
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceCompositingMode[]          = "force-compositing-mode";
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some field trials may be randomized in the browser, and the randomly selected
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// outcome needs to be propagated to the renderer. For instance, this is used
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to modify histograms recorded in the renderer, or to get the renderer to
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// also set of its state (initialize, or not initialize components) to match the
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experiment(s). The option is also useful for forcing field trials when
5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// testing changes locally. The argument is a list of name and value pairs,
5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated by slashes. See FieldTrialList::CreateTrialsFromString() in
6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// field_trial.h for details.
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceFieldTrials[]              = "force-fieldtrials";
6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
603a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
604a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// accelerated compositing + impl-side painting. Overrides the
605a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// kEnableGpuRasterization flag.
606a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kForceGpuRasterization[]        = "force-gpu-rasterization";
607a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force renderer accessibility to be on instead of enabling it on demand when
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a screen reader is detected. The disable-renderer-accessibility switch
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// overrides this if present.
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceRendererAccessibility[]    = "force-renderer-accessibility";
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu device_id from browser process to GPU process.
6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDeviceID[]                   = "gpu-device-id";
6155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_vendor from browser process to GPU process.
6175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVendor[]               = "gpu-driver-vendor";
6185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_version from browser process to GPU process.
6205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVersion[]              = "gpu-driver-version";
6215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extra command line options for launching the GPU process (normally used
6235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for debugging). Use like renderer-cmd-prefix.
6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuLauncher[]                   = "gpu-launcher";
6255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Makes this process a GPU sub-process.
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuProcess[]                    = "gpu-process";
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
629a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Allow shmat system call in GPU sandbox.
630a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kGpuSandboxAllowSysVShm[]        = "gpu-sandbox-allow-sysv-shm";
631a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
632a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Makes GPU sandbox failures fatal.
633a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kGpuSandboxFailuresFatal[]       = "gpu-sandbox-failures-fatal";
634a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
635effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Allow GPU sandbox to start later
636effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kGpuSandboxStartAfterInitialization[] =
637effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "gpu-sandbox-start-after-initialization";
638effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the GPU process to display a dialog on launch.
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuStartupDialog[]              = "gpu-startup-dialog";
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu vendor_id from browser process to GPU process.
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuVendorID[]                   = "gpu-vendor-id";
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These mappings only apply to the host resolver.
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostResolverRules[]             = "host-resolver-rules";
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores certificate-related errors.
6495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreCertificateErrors[]       = "ignore-certificate-errors";
6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores GPU blacklist.
6525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreGpuBlacklist[]            = "ignore-gpu-blacklist";
6535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Run the GPU process as a thread in the browser process.
6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInProcessGPU[]                  = "in-process-gpu";
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the flags passed to JS engine
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJavaScriptFlags[]               = "js-flags";
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Load an NPAPI plugin from the specified path.
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadPlugin[]                    = "load-plugin";
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6634e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Logs GPU control list decisions when enforcing blacklist rules.
6644e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kLogGpuControlListDecisions[]    = "log-gpu-control-list-decisions";
6654e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets the minimum log level. Valid values are from 0 to 3:
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoggingLevel[]                  = "log-level";
6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6705d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables saving net log events to a file and sets the file name to use.
671ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kLogNetLog[]                     = "log-net-log";
672ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Make plugin processes log their sent and received messages to VLOG(1).
6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLogPluginMessages[]             = "log-plugin-messages";
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
676ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the width and height above which a composited layer will get tiled.
677ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerHeight[]         = "max-untiled-layer-height";
678ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerWidth[]          = "max-untiled-layer-width";
679ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Sample memory usage with high frequency and store the results to the
6812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Renderer.Memory histogram. Used in memory tests.
6822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMemoryMetrics[]                 = "memory-metrics";
6835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6843240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// Mutes audio sent to the audio device so it is not audible during
6853240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// automated testing.
6863240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kMuteAudio[]                     = "mute-audio";
6873240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't send HTTP-Referer headers.
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoReferrers[]                   = "no-referrers";
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the sandbox for all process types that are normally sandboxed.
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoSandbox[]                     = "no-sandbox";
6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Number of worker threads used to rasterize content.
6955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kNumRasterThreads[]              = "num-raster-threads";
6965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
697ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables history navigation in response to horizontal overscroll.
698ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
699ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to enabled.
700ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kOverscrollHistoryNavigation[] =
701ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "overscroll-history-navigation";
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a command that should be used to launch the plugin process.  Useful
7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for running the plugin process through purify or quantify.  Ex:
7055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   --plugin-launcher="path\to\purify /Run=yes"
7065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginLauncher[]                = "plugin-launcher";
7075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells the plugin process the path of the plugin to load
7095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginPath[]                    = "plugin-path";
7105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a plugin subprocess.
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginProcess[]                 = "plugin";
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the plugin process to display a dialog on launch.
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginStartupDialog[]           = "plugin-startup-dialog";
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI broker process type.
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiBrokerProcess[]            = "ppapi-broker";
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
720ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// "Command-line" arguments for the PPAPI Flash; used for debugging options.
721ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kPpapiFlashArgs[]                = "ppapi-flash-args";
722ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
7232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Runs PPAPI (Pepper) plugins in-process.
7242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPpapiInProcess[]                = "ppapi-in-process";
7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Like kPluginLauncher for PPAPI plugins.
7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginLauncher[]           = "ppapi-plugin-launcher";
7285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI plugin process type.
7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginProcess[]            = "ppapi";
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the PPAPI sub process to display a dialog on launch. Be sure to use
7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --no-sandbox as well or the sandbox won't allow the dialog to display.
7345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiStartupDialog[]            = "ppapi-startup-dialog";
7355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs a single process for each site (i.e., group of pages from the same
7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// registered domain) the user visits.  We default to using a renderer process
7385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for each site instance (i.e., group of pages from the same registered
7395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain with script connections to each other).
7405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerSite[]                = "process-per-site";
7415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
7435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer process.  We default to using a renderer process for each
7445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// site instance (i.e., group of pages from the same registered domain with
7455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// script connections to each other).
7465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerTab[]                 = "process-per-tab";
7475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value of this switch determines whether the process is started as a
7495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer or plugin host.  If it's empty, it's the browser.
7505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessType[]                   = "type";
7515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables more web features over insecure connections. Designed to be used
7535d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for testing purposes only.
7545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kReduceSecurityForTesting[]      = "reduce-security-for-testing";
755ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
7564e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Register Pepper plugins (see pepper_plugin_list.cc for its format).
7575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisterPepperPlugins[]         = "register-pepper-plugins";
7585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables remote debug over HTTP on the specified port.
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteDebuggingPort[]           = "remote-debugging-port";
7615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to throw an assertion on launch.
7635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererAssertTest[]            = "renderer-assert-test";
7645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the renderer
7665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// command line. Useful values might be "valgrind" or "xterm -e gdb --args".
7675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererCmdPrefix[]             = "renderer-cmd-prefix";
7685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as renderer instead of as browser.
7705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcess[]               = "renderer";
7715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the default/calculated limit to the number of renderer processes.
7735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Very high values for this setting can lead to high memory/resource usage
7745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or instability.
7755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcessLimit[]          = "renderer-process-limit";
7765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to display a dialog on launch.
7785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererStartupDialog[]         = "renderer-startup-dialog";
7795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
78068043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Causes the process to run as a sandbox IPC subprocess.
78168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kSandboxIPCProcess[]             = "sandbox-ipc";
78268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
783ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables scroll end effect in response to vertical overscroll.
784ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
785ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to disabled.
786ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kScrollEndEffect[] = "scroll-end-effect";
7875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Visibly render a border around paint rects in the web page to help debug
7895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and study painting behavior.
7905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPaintRects[]                = "show-paint-rects";
7915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs the renderer and plugins in the same process as the browser
7935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSingleProcess[]                 = "single-process";
7945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7952a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Experimentally enforces a one-site-per-process security policy.
7962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// All cross-site navigations force process swaps, and we can restrict a
7972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// renderer process's access rights based on its site.  For details, see:
7982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// http://www.chromium.org/developers/design-documents/site-isolation
7992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
8002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Unlike --enable-strict-site-isolation (which allows cross-site iframes),
801f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// this flag does not affect which cookies are attached to cross-site requests.
802f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Support is being added to render cross-site iframes in a different process
803f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// than their parent pages.
8042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSitePerProcess[]                = "site-per-process";
8052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Skip gpu info collection, blacklist loading, and blacklist auto-update
8075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// scheduling at browser startup time.
8085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Therefore, all GPU features are available, and about:gpu page shows empty
8094e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// content. The switch is intended only for layout tests.
8104e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// TODO(gab): Get rid of this switch entirely.
8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSkipGpuDataLoading[]            = "skip-gpu-data-loading";
8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
813a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Specifies if the browser should start in fullscreen mode, like if the user
814a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// had pressed F11 right after startup.
815a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kStartFullscreen[] = "start-fullscreen";
816ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
817ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Specifies if the |StatsCollectionController| needs to be bound in the
818ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// renderer. This binding happens on per-frame basis and hence can potentially
819ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// be a performance bottleneck. One should only enable it when running a test
820ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// that needs to access the provided statistics.
821ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kStatsCollectionController[] =
822ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-stats-collection-bindings";
823ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
824ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Upscale defaults to "good".
825ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTabCaptureDownscaleQuality[]    = "tab-capture-downscale-quality";
826ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
827868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
828868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// One flag for upscaling, one for downscaling.
829868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Upscale defaults to "best".
830868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kTabCaptureUpscaleQuality[]      = "tab-capture-upscale-quality";
831868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
8325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows for forcing socket connections to http/https to use fixed ports.
8335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpPort[]          = "testing-fixed-http-port";
8345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpsPort[]         = "testing-fixed-https-port";
8355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
836ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Runs the security test for the renderer sandbox.
837ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTestSandbox[]                   = "test-sandbox";
838ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
839a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Type of the current test harness ("browser" or "ui").
840a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kTestType[]                      = "test-type";
841a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
842a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enable timeout-based touch event cancellation if a touch ack is delayed.
843a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// If unspecified, touch timeout behavior will be disabled.
844a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kTouchAckTimeoutDelayMs[]        = "touch-ack-timeout-delay-ms";
845a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
8465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingMode[]            = "touch-scrolling-mode";
8475c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeAsyncTouchmove[] = "async-touchmove";
8485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingModeSyncTouchmove[] = "sync-touchmove";
8495c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeTouchcancel[] = "touchcancel";
8505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
85158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
85258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// can specify the specific trace categories to include (e.g.
85358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown=base,net) otherwise, all events are recorded.
85458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown-file can be used to control where the trace log gets stored
85558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// to since there is otherwise no way to access the result.
85658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdown[]                 = "trace-shutdown";
85758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
85858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// If supplied, sets the file which shutdown tracing will be stored into, if
85958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
86058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Has no effect unless --trace-shutdown is also supplied.
86158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
86258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdownFile[]             = "trace-shutdown-file";
86358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
8655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specify the specific trace categories to include (e.g.
8665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup=base,net) otherwise, all events are recorded. Setting this
8675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// flag results in the first call to BeginTracing() to receive all trace events
8685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since startup. In Chrome, you may find --trace-startup-file and
8695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup-duration to control the auto-saving of the trace (not
8705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// supported in the base-only TraceLog component).
8715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartup[]                  = "trace-startup";
8725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
873ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the time in seconds until startup tracing ends. If omitted a default of
874ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// 5 seconds is used. Has no effect without --trace-startup, or if
875ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --startup-trace-file=none was supplied.
876ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTraceStartupDuration[]          = "trace-startup-duration";
877ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If supplied, sets the file which startup tracing will be stored into, if
8795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
8805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Has no effect unless --trace-startup is also supplied.
8815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
8825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// As a special case, can be set to 'none' - this disables automatically saving
8835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the result to a file and the first manually recorded trace will then receive
8845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all events since startup.
8855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartupFile[]              = "trace-startup-file";
8865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
887ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prioritizes the UI's command stream in the GPU process
8905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kUIPrioritizeInGpuProcess[] =
8915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "ui-prioritize-in-gpu-process";
8925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Overrides the preferred discardable memory implementation.
8945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUseDiscardableMemory[] = "use-discardable-memory";
8955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
896ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Use fake device for MediaStream to replace actual camera and microphone.
897ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
898ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
899ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Bypass the media stream infobar by selecting the default device for media
900ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
901ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseFakeUIForMediaStream[]     = "use-fake-ui-for-media-stream";
902ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
903ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set when Chromium should use a mobile user agent.
904ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseMobileUserAgent[] = "use-mobile-user-agent";
905ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
9065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the utility
9075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// process command line. Useful values might be "valgrind" or "xterm -e gdb
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --args".
9095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityCmdPrefix[]              = "utility-cmd-prefix";
9105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a utility subprocess.
9125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcess[]                = "utility";
9135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The utility process is sandboxed, with access to one directory. This flag
9155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specifies the directory that can be accessed.
9165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcessAllowedDir[]      = "utility-allowed-dir";
9175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
918ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Allows MDns to access network in sandboxed process.
919ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kUtilityProcessEnableMDns[]      = "utility-enable-mdns";
920ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
9215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
9225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
923a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// In debug builds, asserts that the stream of input events is valid.
924a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kValidateInputEventStream[] = "validate-input-event-stream";
925a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
9265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Will add kWaitForDebugger to every child processes. If a value is passed, it
9275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will be used as a filter to determine if the child process should have the
9285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kWaitForDebugger flag passed on or not.
9295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWaitForDebuggerChildren[]       = "wait-for-debugger-children";
9305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
931f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Overrides the amount of shared memory the webgl command buffer allocates
932f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kWebGLCommandBufferSizeKb[]      = "webgl-command-buffer-size-kb";
933f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a worker subprocess.
9355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWorkerProcess[]                 = "worker";
9365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prefix used when starting the zygote process. (i.e. 'gdb --args')
9385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteCmdPrefix[]               = "zygote-cmd-prefix";
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a renderer zygote.
9415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteProcess[]                 = "zygote";
9425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
943ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#if defined(ENABLE_WEBRTC)
944f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables audio processing in a MediaStreamTrack. When this flag is on, AEC,
945f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// NS and AGC will be done per MediaStreamTrack instead of in PeerConnection.
946f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableAudioTrackProcessing[]    = "enable-audio-track-processing";
947f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
948f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disables WebRTC device enumeration.
94958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableDeviceEnumeration[]      = "disable-device-enumeration";
9505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
951d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Disables HW decode acceleration for WebRTC.
952d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableWebRtcHWDecoding[]       = "disable-webrtc-hw-decoding";
953d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
9540f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
9550f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// ignores this switch on its stable and beta channels.
9560f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDisableWebRtcEncryption[]      = "disable-webrtc-encryption";
9570f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
95858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables HW encode acceleration for WebRTC.
95958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableWebRtcHWEncoding[]       = "disable-webrtc-hw-encoding";
96058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
961f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables WebRTC to open TCP server sockets.
962d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kEnableWebRtcTcpServerSocket[]   = "enable-webrtc-tcp-server-socket";
96368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
96468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enables VP8 HW encode acceleration for WebRTC.
96568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kEnableWebRtcHWVp8Encoding[]     = "enable-webrtc-hw-vp8-encoding";
966ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#endif
9675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
969d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Disable user gesture requirement for the media element to enter fullscreen.
970d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableGestureRequirementForMediaFullscreen[] =
971d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)    "disable-gesture-requirement-for-media-fullscreen";
9725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9732a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable user gesture requirement for media playback.
9742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableGestureRequirementForMediaPlayback[] =
9752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "disable-gesture-requirement-for-media-playback";
9765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
977ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable history logging for media elements.
978ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableMediaHistoryLogging[]    = "disable-media-history";
9795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
980a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable the click delay by sending click events during double tap.
981a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableClickDelay[]             = "disable-click-delay";
982a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
98390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Disable overscroll edge effects like those found in Android views.
98458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableOverscrollEdgeEffect[]   = "disable-overscroll-edge-effect";
985ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
986ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// WebRTC is enabled by default on Android.
987ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableWebRTC[]                 = "disable-webrtc";
988ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
989ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the recognition part of the Web Speech API.
990ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechRecognition[]       = "enable-speech-recognition";
991ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
9920529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Always use the video overlay for the embedded video.
9930529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// This switch is intended only for tests.
9940529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kForceUseOverlayEmbeddedVideo[] = "force-use-overlay-embedded-video";
9950529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
996ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// The telephony region (ISO country code) to use in phone number detection.
997ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kNetworkCountryIso[] = "network-country-iso";
998ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
999ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables remote debug over HTTP on the specified socket name.
1000ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kRemoteDebuggingSocketName[]     = "remote-debugging-socket-name";
10015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1003a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disable web audio API.
1004a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableWebAudio[]               = "disable-webaudio";
1005a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
10062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
10072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables panel fitting (used for mirror mode).
10082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisablePanelFitting[]           = "disable-panel-fitting";
10092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
10102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
10115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX) && !defined(OS_IOS)
10125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableCarbonInterposing[]       = "enable-carbon-interposing";
1013868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1014c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// Disables support for Core Animation plugins. This is triggered when
1015c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// accelerated compositing is disabled. See http://crbug.com/122430 .
1016c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdochconst char kDisableCoreAnimationPlugins[] =
1017c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch    "disable-core-animation-plugins";
10185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
10195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1020ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Don't dump stuff here, follow the same order as the header.
10217dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
10225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace switches
1023