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)
84f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disables layer squashing.
85f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kDisableLayerSquashing[] =
86f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-layer-squashing";
87f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
88ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables hardware acceleration of video decode, where available.
89ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedVideoDecode[] =
90ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-video-decode";
91ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the ApplicationCache.
935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableApplicationCache[]       = "disable-application-cache";
945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable limits on the number of backing stores. Can prevent blinking for
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users with many windows/tabs and lots of memory.
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBackingStoreLimit[]      = "disable-backing-store-limit";
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9903b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// Disable the creation of compositing layers when it would prevent LCD text.
10003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kDisablePreferCompositingToLCDText[] =
10103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)    "disable-prefer-compositing-to-lcd-text";
102ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
103ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForTransition.
104ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableCompositingForTransition[] =
105ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "disable-transition-compositing";
106ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables HTML5 DB support.
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDatabases[]              = "disable-databases";
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
110ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables delegated renderer.
111ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableDelegatedRenderer[]      = "disable-delegated-renderer";
112ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables desktop notifications (default enabled on windows).
1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDesktopNotifications[]   = "disable-desktop-notifications";
1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1164e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Handles URL requests by NPAPI plugins through the renderer.
1174e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableDirectNPAPIRequests[]    = "disable-direct-npapi-requests";
1184e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
1198bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Disable the per-domain blocking for 3D APIs after GPU reset.
1208bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// This switch is intended only for tests.
1218bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)extern const char kDisableDomainBlockingFor3DAPIs[] =
1228bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "disable-domain-blocking-for-3d-apis";
1238bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable experimental WebGL support.
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExperimentalWebGL[]      = "disable-webgl";
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable FileSystem API.
1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFileSystem[]             = "disable-file-system";
1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable 3D inside of flapper.
1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlash3d[]                = "disable-flash-3d";
1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable Stage3D inside of flapper.
1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlashStage3d[]           = "disable-flash-stage3d";
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
136ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables GPU hardware acceleration.  If software renderer is not in place,
137ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// then the GPU process won't launch.
138ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpu[]                    = "disable-gpu";
139ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
140ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Prevent the compositor from using its GPU implementation.
141ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuCompositing[]         = "disable-gpu-compositing";
142ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
143f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disable the limit on the number of times the GPU process may be restarted
144f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// This switch is intended only for tests.
145f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)extern const char kDisableGpuProcessCrashLimit[] =
146f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-gpu-process-crash-limit";
147f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
148a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable GPU rasterization, i.e. rasterize on the CPU only.
149a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
150a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableGpuRasterization[]       = "disable-gpu-rasterization";
151a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
15223730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing disable low resolution tiling. This uses
15323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// less power, particularly during animations, but more white may be seen
15423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// during fast scrolling especially on slower devices.
15523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kDisableLowResTiling[] = "disable-low-res-tiling";
15623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the GPU process sandbox.
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableGpuSandbox[]             = "disable-gpu-sandbox";
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
160ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable the thread that crashes the GPU process if it stops responding to
161ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// messages.
162ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuWatchdog[]            = "disable-gpu-watchdog";
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Suppresses hang monitor dialogs in renderer processes.  This may allow slow
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// unload handlers on a page to prevent the tab from closing, but the Task
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Manager can be used to terminate the offending process in this case.
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableHangMonitor[]            = "disable-hang-monitor";
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable the RenderThread's HistogramCustomizer.
1702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableHistogramCustomizer[]    = "disable-histogram-customizer";
1712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
172a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the main thread instead of the compositor thread.
173a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableImplSidePainting flag.
174a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableImplSidePainting[]       = "disable-impl-side-painting";
1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent Java from running.
1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJava[]                   = "disable-java";
1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't execute JavaScript (browser JS like the new tab page still runs).
1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJavaScript[]             = "disable-javascript";
1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
182a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Don't kill a child process when it sends a bad IPC message.  Apart
183a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// from testing, it is a bad idea from a security perspective to enable
184a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// this switch.
185a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableKillAfterBadIPC[]        = "disable-kill-after-bad-ipc";
186a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
187ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
1884e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisablePrefixedEncryptedMedia[] =
1894e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "disable-prefixed-encrypted-media";
190ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
191a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables LCD text.
192a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableLCDText[]                = "disable-lcd-text";
193a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
194010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Disables distance field text.
195010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kDisableDistanceFieldText[]      = "disable-distance-field-text";
196010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable LocalStorage.
1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLocalStorage[]           = "disable-local-storage";
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be disabled.  Logging is enabled by default in debug
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLogging[]                = "disable-logging";
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
204a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Disables Media Source API (i.e., the MediaSource object).
205a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kDisableMediaSource[]            = "disable-media-source";
206a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
207ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable Pepper3D.
208ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePepper3d[]               = "disable-pepper-3d";
209ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
210ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables compositor-accelerated touch-screen pinch gestures.
211ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePinch[]                  = "disable-pinch";
212eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent plugins from running.
2145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePlugins[]                = "disable-plugins";
2155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
216ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable discovering third-party plug-ins. Effectively loading only
217ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// ones shipped with the browser plus third-party ones as specified by
218ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --extra-plugin-dir and --load-plugin switches.
219ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePluginsDiscovery[]       = "disable-plugins-discovery";
220ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables remote web font support. SVG font should always work whether this
2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// option is specified or not.
2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRemoteFonts[]            = "disable-remote-fonts";
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Turns off the accessibility in the renderer.
2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRendererAccessibility[]  = "disable-renderer-accessibility";
2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
228c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSeccompFilterSandbox[]   = "disable-seccomp-filter-sandbox";
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable session storage.
2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSessionStorage[]         = "disable-session-storage";
2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2347d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Disable the setuid sandbox (Linux only).
2357d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kDisableSetuidSandbox[]          = "disable-setuid-sandbox";
2367d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
237116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Disable shared workers.
2385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSharedWorkers[]          = "disable-shared-workers";
2395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
24003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// For tests, disable single thread scheduler and only manually composite.
24103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kDisableSingleThreadProxyScheduler[] =
24203b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)    "disable-single-thread-proxy-scheduler";
24303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
244ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable smooth scrolling for testing.
245ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSmoothScrolling[]        = "disable-smooth-scrolling";
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
247ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables the use of a 3D software rasterizer.
248ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSoftwareRasterizer[]     = "disable-software-rasterizer";
2495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
250ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable multithreaded GPU compositing of web content.
251ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableThreadedCompositing[]     = "disable-threaded-compositing";
252868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2531320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Disable multithreaded, compositor scrolling of web content.
2541320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kDisableThreadedScrolling[]      = "disable-threaded-scrolling";
2551320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
2561320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Disable V8 idle notification after commit.
2571320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Overrides kEnableV8IdleNotificationAfterCommit.
2581320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kDisableV8IdleNotificationAfterCommit[] =
2591320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "disable-v8-idle-notification-after-commit";
2601320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't enforce the same-origin policy. (Used by people testing their sites.)
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableWebSecurity[]            = "disable-web-security";
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2644e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables support for XSLT.
2654e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableXSLT[]                   = "disable-xslt";
2664e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
2674e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableXSSAuditor[]             = "disable-xss-auditor";
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2705c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Disable rasterizer that writes directly to GPU memory associated with tiles.
2715c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Overrides the kEnableZeroCopy flag.
2725c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kDisableZeroCopy[]               = "disable-zero-copy";
2735c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
2745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies if the |DOMAutomationController| needs to be bound in the
2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer. This binding happens on per-frame basis and hence can potentially
2765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be a performance bottleneck. One should only enable it when automating dom
27790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// based tests.
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDomAutomationController[]       = "dom-automation";
2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
28034680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)// Enable partially decoding jpeg images using the GPU.
28134680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)// At least YUV decoding will be accelerated when using this flag.
28234680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)// Has no effect unless GPU rasterization is enabled.
28334680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)const char kEnableAcceleratedJpegDecoding[] =
28434680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)    "enable-accelerated-jpeg-decoding";
28534680572440d7894ef8dafce81d8039ed80726a2Torne (Richard Coles)
286a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enable bleeding-edge code to make Chrome draw content faster. The changes
287a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// behind this path are very likely to break lots of content.
288a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// ** DO NOT use this flag unless you know what you are doing. **
289a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableBleedingEdgeRenderingFastPaths[] =
290a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "enable-bleeding-edge-rendering-fast-paths";
291a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
292010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Disable deferred image filters.
293010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kDisableDeferredFilters[]         = "disable-deferred-filters";
2945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
295a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enables LCD text.
296a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableLCDText[]                 = "enable-lcd-text";
297a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
298010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Enables using signed distance fields when rendering text.
299010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Only valid if GPU rasterization is enabled as well.
300010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kEnableDistanceFieldText[]       = "enable-distance-field-text";
301010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
302f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables experimental feature that maps multiple RenderLayers to
303f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// one composited layer to avoid pathological layer counts.
304f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableLayerSquashing[] =
305f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "enable-layer-squashing";
306f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
307a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable experimental container node culling.
308a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableContainerCulling[]        = "enable-container-culling";
309a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
310a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Use a BeginFrame signal from browser to renderer to schedule rendering.
311ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableBeginFrameScheduling[]    = "enable-begin-frame-scheduling";
312ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
31303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// Enable the creation of compositing layers when it would prevent LCD text.
31403b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kEnablePreferCompositingToLCDText[] =
31503b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)    "enable-prefer-compositing-to-lcd-text";
31603b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
31703b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// PlzNavigate: Use the experimental browser-side navigation path.
31803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)const char kEnableBrowserSideNavigation[]   = "enable-browser-side-navigation";
3195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
32090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Enable/Disable the creation of compositing layers for RenderLayers with a
32190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// transition on a property that supports accelerated animation (that is,
32290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// opacity, -webkit-transform, and -webkit-filter), even when no animation is
32390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// running. These options allow for three possible scenarios:
32490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  1. Default (enabled only if we dectect a highDPI display)
32590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  2. Enabled always.
32690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  3. Disabled always.
32790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kEnableCompositingForTransition[] =
32890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)     "enable-transition-compositing";
32990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
330ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defer image decoding in WebKit until painting.
331ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableDeferredImageDecoding[]   = "enable-deferred-image-decoding";
3327dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
3332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables delegated renderer.
3342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDelegatedRenderer[]       = "enable-delegated-renderer";
3352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
3365f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Enables display list based 2d canvas implementation.
3375f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEnableDisplayList2dCanvas[]     = "enable-display-list-2d-canvas";
3381320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kDisableDisplayList2dCanvas[]     = "disable-display-list-2d-canvas";
3395f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
3402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables restarting interrupted downloads.
3412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDownloadResumption[]      = "enable-download-resumption";
3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
343ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for Encrypted Media Extensions (e.g. MediaKeys).
344ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableEncryptedMedia[] = "enable-encrypted-media";
345ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
346ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable experimental canvas features, e.g. canvas 2D context attributes
347ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableExperimentalCanvasFeatures[] =
348ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-experimental-canvas-features";
349ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
3507dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Enables Web Platform features that are in development.
3517dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kEnableExperimentalWebPlatformFeatures[] =
3527dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "enable-experimental-web-platform-features";
3535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// By default, cookies are not allowed on file://. They are needed for testing,
3555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for example page cycler and layout tests. See bug 1157243.
3565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableFileCookies[]             = "enable-file-cookies";
3575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
3582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables TRACE for GL calls in the renderer.
3592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableGpuClientTracing[]        = "enable-gpu-client-tracing";
3602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
361a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Allow heuristics to determine when a layer tile should be drawn with the
362a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Skia GPU backend. Only valid with GPU accelerated compositing +
363a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// impl-side painting.
364a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableGpuRasterization[]        = "enable-gpu-rasterization";
365a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
36623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing generate low resolution tiling. Low res
36723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// tiles may be displayed during fast scrolls especially on slower devices.
36823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kEnableLowResTiling[] = "enable-low-res-tiling";
36923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
370a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the compositor thread instead of the main thread.
371a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableImplSidePainting[]        = "enable-impl-side-painting";
372a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
3735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be enabled.  Logging is disabled by default in release
3745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
3755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableLogging[]                 = "enable-logging";
3765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
377ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the memory benchmarking extension
378ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableMemoryBenchmarking[]      = "enable-memory-benchmarking";
379eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
3805f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Enables the network information API.
3815f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEnableNetworkInformation[]      = "enable-network-information";
3825f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
3835c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory.
3845c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableOneCopy[]                 = "enable-one-copy";
3855c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
3864e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables use of hardware overlay for fullscreen video playback. Android only.
3874e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableOverlayFullscreenVideo[]  = "enable-overlay-fullscreen-video";
3884e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
389ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Forward overscroll event data from the renderer to the browser.
390ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
391ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
392ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables compositor-accelerated touch-screen pinch gestures.
393ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnablePinch[]                   = "enable-pinch";
394ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
395010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Make the values returned to window.performance.memory more granular and more
396010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// up to date in shared worker. Without this flag, the memory information is
397010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// still available, but it is bucketized and updated less frequently. This flag
398010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// also applys to workers.
399010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
400010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
4016e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Set options to cache V8 data. (off, preparse data, or code)
4026e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kV8CacheOptions[] = "v8-cache-options";
4035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
404ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the CSS multicol implementation that uses the regions implementation.
405ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableRegionBasedColumns[] =
406ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-region-based-columns";
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4085f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Replaces renderer-browser IPC channel with ChnanelMojo.
4095f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEnableRendererMojoChannel[] =
4105f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    "enable-renderer-mojo-channel";
4115f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
4125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Cause the OS X sandbox write to syslog every time an access to a resource
4135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is denied by the sandbox.
4145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSandboxLogging[]          = "enable-sandbox-logging";
4155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
416a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enables seccomp-bpf support for Android. Requires experimental kernel
417a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// support. <http://crbug.com/166704>
418a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableSeccompFilterSandbox[] =
419a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch    "enable-seccomp-filter-sandbox";
420a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
421ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the Skia benchmarking extension
422ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSkiaBenchmarking[]        = "enable-skia-benchmarking";
4235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On platforms that support it, enables smooth scroll animation.
4255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSmoothScrolling[]         = "enable-smooth-scrolling";
4265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
427ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable spatial navigation
428ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpatialNavigation[]       = "enable-spatial-navigation";
429ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
4305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables StatsTable, logging statistics to a global named shared memory table.
4315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStatsTable[]              = "enable-stats-table";
4325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Experimentally ensures that each renderer process:
4342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1) Only handles rendering for pages from a single site, apart from iframes.
4355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (Note that a page can reference content from multiple origins due to images,
4362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// JavaScript files, etc.  Cross-site iframes are also loaded in-process.)
4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2) Only has authority to see or use cookies for the page's top-level origin.
4382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (So if a.com iframes b.com, the b.com network request will be sent without
4392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies.)
4402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This is expected to break compatibility with many pages for now.  Unlike the
4412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// --site-per-process flag, this allows cross-site iframes, but it blocks all
4422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies on cross-site requests.
4435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStrictSiteIsolation[]     = "enable-strict-site-isolation";
4445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
445a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable support for sync events in ServiceWorkers.
446a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableServiceWorkerSync[]       = "enable-service-worker-sync";
447a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
448ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable use of experimental TCP sockets API for sending data in the
449ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// SYN packet.
450ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableTcpFastOpen[]             = "enable-tcp-fastopen";
451ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
452116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Enabled threaded compositing for layout tests.
4531320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableThreadedCompositing[]     = "enable-threaded-compositing";
4541320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
4551320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Enable tracing during the execution of browser tests.
4561320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableTracing[]                 = "enable-tracing";
4571320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
4581320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// The filename to write the output of the test tracing to.
4591320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableTracingOutput[]           = "enable-tracing-output";
4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
461ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable screen capturing support for MediaStream API.
462ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableUserMediaScreenCapturing[] =
463ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-usermedia-screen-capturing";
464ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
4651320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Enables streaming scripts to V8 while loading.
4661320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableV8ScriptStreaming[] = "enable-v8-script-streaming";
4671320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
4681320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Send a notification from RenderWidgetCompositor to V8 to do idle work
4691320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// (e.g. garbage collection) after the commit until the beginning of the next
4701320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// frame.  This moves the work off the critical path where compositor is waiting
4711320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// for the main thread. The flag is experimental until the implementation of the
4721320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// V8 idle handler is completed.
4731320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableV8IdleNotificationAfterCommit[] =
4741320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "enable-v8-idle-notification-after-commit";
4751320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
476f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the @viewport CSS rule, which allows
477ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pages to control aspects of their own layout. This also turns on touch-screen
478ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pinch gestures.
479ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableViewport[]                = "enable-viewport";
480ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
481f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the legacy viewport meta tag. Turning this on also
482f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// turns on the @viewport CSS rule
483f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableViewportMeta[]            = "enable-viewport-meta";
484f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
485f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Resizes of the main frame are the caused by changing between landscape
486f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// and portrait mode (i.e. Android) so the page should be rescaled to fit
487f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kMainFrameResizesAreOrientationChanges[] =
488f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "main-frame-resizes-are-orientation-changes";
489f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
490ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the Vtune profiler support.
491ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableVtune[]                   = "enable-vtune-support";
4925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
493ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables WebGL extensions not yet approved by the community.
494ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
495ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
496cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Enables WebGL rendering into a scanout buffer for overlay support.
497cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
498cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
499ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables Web MIDI API.
500ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebMIDI[]                 = "enable-web-midi";
501ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5025c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory associated with tiles.
5035c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableZeroCopy[]                = "enable-zero-copy";
5045c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
505ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Load NPAPI plugins from the specified directory.
506ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kExtraPluginDir[]                = "extra-plugin-dir";
507ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some field trials may be randomized in the browser, and the randomly selected
5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// outcome needs to be propagated to the renderer. For instance, this is used
5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to modify histograms recorded in the renderer, or to get the renderer to
5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// also set of its state (initialize, or not initialize components) to match the
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experiment(s). The option is also useful for forcing field trials when
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// testing changes locally. The argument is a list of name and value pairs,
5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated by slashes. See FieldTrialList::CreateTrialsFromString() in
5155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// field_trial.h for details.
5165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceFieldTrials[]              = "force-fieldtrials";
5175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
518a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
519a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// accelerated compositing + impl-side painting. Overrides the
520a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// kEnableGpuRasterization flag.
521a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kForceGpuRasterization[]        = "force-gpu-rasterization";
522a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
5235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force renderer accessibility to be on instead of enabling it on demand when
5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a screen reader is detected. The disable-renderer-accessibility switch
5255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// overrides this if present.
5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceRendererAccessibility[]    = "force-renderer-accessibility";
5275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu device_id from browser process to GPU process.
5295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDeviceID[]                   = "gpu-device-id";
5305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_vendor from browser process to GPU process.
5325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVendor[]               = "gpu-driver-vendor";
5335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_version from browser process to GPU process.
5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVersion[]              = "gpu-driver-version";
5365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extra command line options for launching the GPU process (normally used
5385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for debugging). Use like renderer-cmd-prefix.
5395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuLauncher[]                   = "gpu-launcher";
5405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Makes this process a GPU sub-process.
5425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuProcess[]                    = "gpu-process";
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
544116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Allows shmat() system call in the GPU sandbox.
545a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kGpuSandboxAllowSysVShm[]        = "gpu-sandbox-allow-sysv-shm";
546a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
547a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Makes GPU sandbox failures fatal.
548a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kGpuSandboxFailuresFatal[]       = "gpu-sandbox-failures-fatal";
549a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
550116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Starts the GPU sandbox before creating a GL context.
551116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kGpuSandboxStartEarly[]          = "gpu-sandbox-start-early";
552effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
5535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the GPU process to display a dialog on launch.
5545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuStartupDialog[]              = "gpu-startup-dialog";
5555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu vendor_id from browser process to GPU process.
5575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuVendorID[]                   = "gpu-vendor-id";
5585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These mappings only apply to the host resolver.
5605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostResolverRules[]             = "host-resolver-rules";
5615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores certificate-related errors.
5635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreCertificateErrors[]       = "ignore-certificate-errors";
5645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores GPU blacklist.
5665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreGpuBlacklist[]            = "ignore-gpu-blacklist";
5675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Run the GPU process as a thread in the browser process.
5695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInProcessGPU[]                  = "in-process-gpu";
5705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5716d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Overrides the timeout, in seconds, that a child process waits for a
5726d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// connection from the browser before killing itself.
5736d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kIPCConnectionTimeout[]          = "ipc-connection-timeout";
5746d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the flags passed to JS engine
5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJavaScriptFlags[]               = "js-flags";
5775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Load an NPAPI plugin from the specified path.
5795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadPlugin[]                    = "load-plugin";
5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5814e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Logs GPU control list decisions when enforcing blacklist rules.
5824e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kLogGpuControlListDecisions[]    = "log-gpu-control-list-decisions";
5834e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets the minimum log level. Valid values are from 0 to 3:
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoggingLevel[]                  = "log-level";
5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables saving net log events to a file and sets the file name to use.
589ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kLogNetLog[]                     = "log-net-log";
590ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Make plugin processes log their sent and received messages to VLOG(1).
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLogPluginMessages[]             = "log-plugin-messages";
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
594ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the width and height above which a composited layer will get tiled.
595ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerHeight[]         = "max-untiled-layer-height";
596ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerWidth[]          = "max-untiled-layer-width";
597ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Sample memory usage with high frequency and store the results to the
5992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Renderer.Memory histogram. Used in memory tests.
6002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMemoryMetrics[]                 = "memory-metrics";
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6023240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// Mutes audio sent to the audio device so it is not audible during
6033240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// automated testing.
6043240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kMuteAudio[]                     = "mute-audio";
6053240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't send HTTP-Referer headers.
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoReferrers[]                   = "no-referrers";
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the sandbox for all process types that are normally sandboxed.
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoSandbox[]                     = "no-sandbox";
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Number of worker threads used to rasterize content.
6135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kNumRasterThreads[]              = "num-raster-threads";
6145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
6151320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Controls the behavior of history navigation in response to horizontal
6161320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// overscroll.
6171320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Set the value to '0' to disable.
6181320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Set the value to '1' to enable the behavior where pages slide in and out in
6191320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// response to the horizontal overscroll gesture and a screenshot of the target
6201320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// page is shown.
6211320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Set the value to '2' to enable the simplified overscroll UI where a
6221320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// navigation arrow slides in from the side of the screen in response to the
6231320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// horizontal overscroll gesture.
6241320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Defaults to '1'.
625ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kOverscrollHistoryNavigation[] =
626ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "overscroll-history-navigation";
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a command that should be used to launch the plugin process.  Useful
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for running the plugin process through purify or quantify.  Ex:
6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   --plugin-launcher="path\to\purify /Run=yes"
6315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginLauncher[]                = "plugin-launcher";
6325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells the plugin process the path of the plugin to load
6345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginPath[]                    = "plugin-path";
6355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a plugin subprocess.
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginProcess[]                 = "plugin";
6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the plugin process to display a dialog on launch.
6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginStartupDialog[]           = "plugin-startup-dialog";
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI broker process type.
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiBrokerProcess[]            = "ppapi-broker";
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
645ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// "Command-line" arguments for the PPAPI Flash; used for debugging options.
646ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kPpapiFlashArgs[]                = "ppapi-flash-args";
647ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Runs PPAPI (Pepper) plugins in-process.
6492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPpapiInProcess[]                = "ppapi-in-process";
6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Like kPluginLauncher for PPAPI plugins.
6525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginLauncher[]           = "ppapi-plugin-launcher";
6535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI plugin process type.
6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginProcess[]            = "ppapi";
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the PPAPI sub process to display a dialog on launch. Be sure to use
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --no-sandbox as well or the sandbox won't allow the dialog to display.
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiStartupDialog[]            = "ppapi-startup-dialog";
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs a single process for each site (i.e., group of pages from the same
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// registered domain) the user visits.  We default to using a renderer process
6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for each site instance (i.e., group of pages from the same registered
6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain with script connections to each other).
6655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerSite[]                = "process-per-site";
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer process.  We default to using a renderer process for each
6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// site instance (i.e., group of pages from the same registered domain with
6705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// script connections to each other).
6715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerTab[]                 = "process-per-tab";
6725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value of this switch determines whether the process is started as a
6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer or plugin host.  If it's empty, it's the browser.
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessType[]                   = "type";
6765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6775d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables more web features over insecure connections. Designed to be used
6785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for testing purposes only.
6795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kReduceSecurityForTesting[]      = "reduce-security-for-testing";
680ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6814e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Register Pepper plugins (see pepper_plugin_list.cc for its format).
6825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisterPepperPlugins[]         = "register-pepper-plugins";
6835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables remote debug over HTTP on the specified port.
6855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteDebuggingPort[]           = "remote-debugging-port";
6865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to throw an assertion on launch.
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererAssertTest[]            = "renderer-assert-test";
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the renderer
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// command line. Useful values might be "valgrind" or "xterm -e gdb --args".
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererCmdPrefix[]             = "renderer-cmd-prefix";
6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as renderer instead of as browser.
6955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcess[]               = "renderer";
6965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the default/calculated limit to the number of renderer processes.
6985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Very high values for this setting can lead to high memory/resource usage
6995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or instability.
7005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcessLimit[]          = "renderer-process-limit";
7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to display a dialog on launch.
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererStartupDialog[]         = "renderer-startup-dialog";
7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
70568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Causes the process to run as a sandbox IPC subprocess.
70668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kSandboxIPCProcess[]             = "sandbox-ipc";
70768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
708ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables scroll end effect in response to vertical overscroll.
709ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
710ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to disabled.
711ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kScrollEndEffect[] = "scroll-end-effect";
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Visibly render a border around paint rects in the web page to help debug
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and study painting behavior.
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPaintRects[]                = "show-paint-rects";
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs the renderer and plugins in the same process as the browser
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSingleProcess[]                 = "single-process";
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Experimentally enforces a one-site-per-process security policy.
7212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// All cross-site navigations force process swaps, and we can restrict a
7222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// renderer process's access rights based on its site.  For details, see:
7232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// http://www.chromium.org/developers/design-documents/site-isolation
7242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
7252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Unlike --enable-strict-site-isolation (which allows cross-site iframes),
726f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// this flag does not affect which cookies are attached to cross-site requests.
727f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Support is being added to render cross-site iframes in a different process
728f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// than their parent pages.
7292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSitePerProcess[]                = "site-per-process";
7302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Skip gpu info collection, blacklist loading, and blacklist auto-update
7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// scheduling at browser startup time.
7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Therefore, all GPU features are available, and about:gpu page shows empty
7344e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// content. The switch is intended only for layout tests.
7354e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// TODO(gab): Get rid of this switch entirely.
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSkipGpuDataLoading[]            = "skip-gpu-data-loading";
7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
738a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Specifies if the browser should start in fullscreen mode, like if the user
739a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// had pressed F11 right after startup.
740a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kStartFullscreen[] = "start-fullscreen";
741ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
742ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Specifies if the |StatsCollectionController| needs to be bound in the
743ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// renderer. This binding happens on per-frame basis and hence can potentially
744ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// be a performance bottleneck. One should only enable it when running a test
745ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// that needs to access the provided statistics.
746ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kStatsCollectionController[] =
747ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-stats-collection-bindings";
748ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
749ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Upscale defaults to "good".
750ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTabCaptureDownscaleQuality[]    = "tab-capture-downscale-quality";
751ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
752868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
753868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// One flag for upscaling, one for downscaling.
754868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Upscale defaults to "best".
755868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kTabCaptureUpscaleQuality[]      = "tab-capture-upscale-quality";
756868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
7575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows for forcing socket connections to http/https to use fixed ports.
7585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpPort[]          = "testing-fixed-http-port";
7595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpsPort[]         = "testing-fixed-https-port";
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
761a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Type of the current test harness ("browser" or "ui").
762a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kTestType[]                      = "test-type";
763a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
7645d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingMode[]            = "touch-scrolling-mode";
7655c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeAsyncTouchmove[] = "async-touchmove";
7665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingModeSyncTouchmove[] = "sync-touchmove";
7675c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeTouchcancel[] = "touchcancel";
7685d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
76958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
77058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// can specify the specific trace categories to include (e.g.
77158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown=base,net) otherwise, all events are recorded.
77258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown-file can be used to control where the trace log gets stored
77358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// to since there is otherwise no way to access the result.
77458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdown[]                 = "trace-shutdown";
77558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
77658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// If supplied, sets the file which shutdown tracing will be stored into, if
77758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
77858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Has no effect unless --trace-shutdown is also supplied.
77958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
78058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdownFile[]             = "trace-shutdown-file";
78158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
7825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
7835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specify the specific trace categories to include (e.g.
7845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup=base,net) otherwise, all events are recorded. Setting this
7855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// flag results in the first call to BeginTracing() to receive all trace events
7865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since startup. In Chrome, you may find --trace-startup-file and
7875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup-duration to control the auto-saving of the trace (not
7885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// supported in the base-only TraceLog component).
7895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartup[]                  = "trace-startup";
7905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
791ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the time in seconds until startup tracing ends. If omitted a default of
792ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// 5 seconds is used. Has no effect without --trace-startup, or if
793ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --startup-trace-file=none was supplied.
794ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTraceStartupDuration[]          = "trace-startup-duration";
795ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
7965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If supplied, sets the file which startup tracing will be stored into, if
7975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
7985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Has no effect unless --trace-startup is also supplied.
7995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
8005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// As a special case, can be set to 'none' - this disables automatically saving
8015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the result to a file and the first manually recorded trace will then receive
8025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all events since startup.
8035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartupFile[]              = "trace-startup-file";
8045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
805116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Sets the target URL for uploading tracing data.
806116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kTraceUploadURL[]                = "trace-upload-url";
807ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prioritizes the UI's command stream in the GPU process
8105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kUIPrioritizeInGpuProcess[] =
8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "ui-prioritize-in-gpu-process";
8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Overrides the preferred discardable memory implementation.
8145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUseDiscardableMemory[] = "use-discardable-memory";
8155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
816ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Bypass the media stream infobar by selecting the default device for media
817ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
818ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseFakeUIForMediaStream[]     = "use-fake-ui-for-media-stream";
819ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
820ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set when Chromium should use a mobile user agent.
821ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseMobileUserAgent[] = "use-mobile-user-agent";
822ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
82346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Use the new surfaces system to handle compositor delegation.
82446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kUseSurfaces[] = "use-surfaces";
82546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
8265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the utility
8275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// process command line. Useful values might be "valgrind" or "xterm -e gdb
8285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --args".
8295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityCmdPrefix[]              = "utility-cmd-prefix";
8305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a utility subprocess.
8325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcess[]                = "utility";
8335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The utility process is sandboxed, with access to one directory. This flag
8355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specifies the directory that can be accessed.
8365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcessAllowedDir[]      = "utility-allowed-dir";
8375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
838ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Allows MDns to access network in sandboxed process.
839ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kUtilityProcessEnableMDns[]      = "utility-enable-mdns";
840ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
8415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
8425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
843a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// In debug builds, asserts that the stream of input events is valid.
844a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kValidateInputEventStream[] = "validate-input-event-stream";
845a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
8465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Will add kWaitForDebugger to every child processes. If a value is passed, it
8475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will be used as a filter to determine if the child process should have the
8485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kWaitForDebugger flag passed on or not.
8495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWaitForDebuggerChildren[]       = "wait-for-debugger-children";
8505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prefix used when starting the zygote process. (i.e. 'gdb --args')
8525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteCmdPrefix[]               = "zygote-cmd-prefix";
8535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a renderer zygote.
8555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteProcess[]                 = "zygote";
8565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
857ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#if defined(ENABLE_WEBRTC)
858cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Disables audio processing in a MediaStreamTrack. When this flag is on, AEC,
859cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// NS and AGC will be done in PeerConnection instead of MediaStreamTrack.
860cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kDisableAudioTrackProcessing[]    = "disable-audio-track-processing";
861f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
862d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Disables HW decode acceleration for WebRTC.
863d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableWebRtcHWDecoding[]       = "disable-webrtc-hw-decoding";
864d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
8650f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
8660f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// ignores this switch on its stable and beta channels.
8670f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDisableWebRtcEncryption[]      = "disable-webrtc-encryption";
8680f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
86958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables HW encode acceleration for WebRTC.
87058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableWebRtcHWEncoding[]       = "disable-webrtc-hw-encoding";
87158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
87268043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enables VP8 HW encode acceleration for WebRTC.
87368043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kEnableWebRtcHWVp8Encoding[]     = "enable-webrtc-hw-vp8-encoding";
8741320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
8751320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Enables H264 HW encode acceleration for WebRTC.
8761320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableWebRtcHWH264Encoding[]    = "enable-webrtc-hw-h264-encoding";
877ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#endif
8785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
8802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable user gesture requirement for media playback.
8812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableGestureRequirementForMediaPlayback[] =
8822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "disable-gesture-requirement-for-media-playback";
8835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
884a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable the click delay by sending click events during double tap.
885a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableClickDelay[]             = "disable-click-delay";
886a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
88790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Disable overscroll edge effects like those found in Android views.
88858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableOverscrollEdgeEffect[]   = "disable-overscroll-edge-effect";
889ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
890ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// WebRTC is enabled by default on Android.
891ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableWebRTC[]                 = "disable-webrtc";
892ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8931320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Enable the PowerSaveBlocker in ContentVideoView. Android only.
8941320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kEnableContentVideoViewPowerSaveBlocker[] =
8951320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    "enable-content-video-view-power-save-blocker";
8961320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
897ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the recognition part of the Web Speech API.
898ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechRecognition[]       = "enable-speech-recognition";
899ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
9000529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Always use the video overlay for the embedded video.
9010529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// This switch is intended only for tests.
9020529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kForceUseOverlayEmbeddedVideo[] = "force-use-overlay-embedded-video";
9030529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
904ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// The telephony region (ISO country code) to use in phone number detection.
905ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kNetworkCountryIso[] = "network-country-iso";
906ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
907ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables remote debug over HTTP on the specified socket name.
908ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kRemoteDebuggingSocketName[]     = "remote-debugging-socket-name";
9091320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
9101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Block ChildProcessMain thread of the renderer's ChildProcessService until a
9111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci// Java debugger is attached.
9121320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciconst char kRendererWaitForJavaDebugger[] = "renderer-wait-for-java-debugger";
9135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
915a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disable web audio API.
916a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableWebAudio[]               = "disable-webaudio";
917a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
9182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
9192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables panel fitting (used for mirror mode).
9202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisablePanelFitting[]           = "disable-panel-fitting";
921116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
922116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Enables VA-API accelerated video encode.
9236e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)const char kDisableVaapiAcceleratedVideoEncode[] =
9246e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)    "disable-vaapi-accelerated-video-encode";
9252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
9262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9275f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
9285f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Allows sending text-to-speech requests to speech-dispatcher, a common
9295f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Linux speech service. Because it's buggy, the user must explicitly
9305f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// enable it so that visiting a random webpage can't cause instability.
9315f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher";
9325f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#endif
9335f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX) && !defined(OS_IOS)
935c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// Disables support for Core Animation plugins. This is triggered when
936c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// accelerated compositing is disabled. See http://crbug.com/122430 .
937c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdochconst char kDisableCoreAnimationPlugins[] =
938c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch    "disable-core-animation-plugins";
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
94146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#if defined(OS_WIN)
94246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Device scale factor passed to certain processes like renderers, etc.
94346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kDeviceScaleFactor[]     = "device-scale-factor";
94446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
945f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Disables the DirectWrite font rendering system on windows.
946f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kDisableDirectWrite[]             = "disable-direct-write";
947f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
94846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Disable the Legacy Window which corresponds to the size of the WebContents.
94946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
95046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
95146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Enable the Win32K process mitigation policy for renderer processes which
95246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// prevents them from invoking user32 and gdi32 system calls which enter
95346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// the kernel. This is only supported on Windows 8 and beyond.
95446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kEnableWin32kRendererLockDown[]
95546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)    = "enable_win32k_renderer_lockdown";
95646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#endif
95746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
958ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Don't dump stuff here, follow the same order as the header.
9597dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
9605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace switches
961