15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "content/public/common/content_switches.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "base/command_line.h"
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace switches {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
121e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// have an effect. 0 disables MSAA.
131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count";
141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, file:// URIs cannot read other file:// URIs. This is an
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// override for developers who need the old behavior for testing.
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileAccessFromFiles[]      = "allow-file-access-from-files";
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
195c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Allows frames with an https origin to use WebSockets with an insecure URL
205c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// (ws://).
215c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kAllowInsecureWebSocketFromHttpsOrigin[] =
225c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu    "allow-insecure-websocket-from-https-origin";
235c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Allows loopback interface to be added in network list for peer connection.
25a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kAllowLoopbackInPeerConnection[] =
26a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "allow-loopback-in-peer-connection";
27a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
28ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the sandboxed processes to run without a job object assigned to them.
29ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// This flag is required to allow Chrome to run in RemoteApps or Citrix. This
30ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// flag can reduce the security of the sandboxed processes and allow them to do
31ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// certain API calls like shut down Windows or access the clipboard. Also we
32ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// lose the chance to kill some processes until the outer job that owns them
33ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// finishes.
34ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kAllowNoSandboxJob[]             = "allow-no-sandbox-job";
35ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows debugging of sandboxed processes (see zygote_main_linux.cc).
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowSandboxDebugging[]         = "allow-sandbox-debugging";
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
39ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// The same as kAuditHandles except all handles are enumerated.
40ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kAuditAllHandles[]               = "enable-handle-auditing-all";
41ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enumerates and prints a child process' most dangerous handles when it
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is terminated.
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuditHandles[]                  = "enable-handle-auditing";
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Choose which logging channels in blink platform to activate.  See
475d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Logging.cpp in blink's Source/platform for a list of available channels.
485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kBlinkPlatformLogChannels[]      = "blink-platform-log-channels";
495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
50424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Block cross-site documents (i.e., HTML/XML/JSON) from being loaded in
51424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// subresources when a document is not supposed to read them.  This will later
52424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// allow us to block them from the entire renderer process when site isolation
53424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// is enabled.
54424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)const char kBlockCrossSiteDocuments[]     = "block-cross-site-documents";
55424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the browser process to throw an assertion on startup.
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserAssertTest[]             = "assert-test";
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the browser process to crash on startup.
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserCrashTest[]              = "crash-test";
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Path to the exe to run for the renderer and plugin subprocesses.
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kBrowserSubprocessPath[]         = "browser-subprocess-path";
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
65ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Dumps extra logging about plugin loading to the log file.
66ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDebugPluginLoading[] = "debug-plugin-loading";
67ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
68ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the tile size used by composited layers.
69ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDefaultTileWidth[]              = "default-tile-width";
70ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDefaultTileHeight[]             = "default-tile-height";
71ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
72ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable antialiasing on 2d canvas.
73ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisable2dCanvasAntialiasing[]   = "disable-canvas-aa";
74ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is controlled by policy and is kept separate from the other
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enable/disable switches to avoid accidentally regressing the policy
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// support for controlling access to these APIs.
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisable3DAPIs[]                 = "disable-3d-apis";
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable gpu-accelerated 2d canvas.
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAccelerated2dCanvas[]    = "disable-accelerated-2d-canvas";
835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
84ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables accelerated compositing for backgrounds of root layers with
85ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// background-attachment: fixed.
86ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedFixedRootBackground[] =
87ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-fixed-root-background";
88ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
89ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables accelerated compositing for overflow scroll.
90ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedOverflowScroll[] =
91ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-overflow-scroll";
92ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
93f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disables layer squashing.
94f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kDisableLayerSquashing[] =
95f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-layer-squashing";
96f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
97ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables hardware acceleration of video decode, where available.
98ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableAcceleratedVideoDecode[] =
99ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "disable-accelerated-video-decode";
100ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the ApplicationCache.
1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableApplicationCache[]       = "disable-application-cache";
1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable limits on the number of backing stores. Can prevent blinking for
1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// users with many windows/tabs and lots of memory.
1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBackingStoreLimit[]      = "disable-backing-store-limit";
1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
108ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForFixedPosition.
109ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableCompositingForFixedPosition[] =
110ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "disable-fixed-position-compositing";
111ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
112ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForTransition.
113ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableCompositingForTransition[] =
114ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "disable-transition-compositing";
115ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables HTML5 DB support.
1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDatabases[]              = "disable-databases";
1185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
119ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables delegated renderer.
120ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableDelegatedRenderer[]      = "disable-delegated-renderer";
121ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables desktop notifications (default enabled on windows).
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDesktopNotifications[]   = "disable-desktop-notifications";
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disables experimental navigator content utils implementation.
126a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableNavigatorContentUtils[]  =
127a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)      "disable-navigator-content-utils";
128a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
1294e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Handles URL requests by NPAPI plugins through the renderer.
1304e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableDirectNPAPIRequests[]    = "disable-direct-npapi-requests";
1314e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
1328bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Disable the per-domain blocking for 3D APIs after GPU reset.
1338bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// This switch is intended only for tests.
1348bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)extern const char kDisableDomainBlockingFor3DAPIs[] =
1358bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)    "disable-domain-blocking-for-3d-apis";
1368bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
1370529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Disable running the SharedWorker inside the renderer process.
1380529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kDisableEmbeddedSharedWorker[]    = "disable-embedded-shared-worker";
1390529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable experimental WebGL support.
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExperimentalWebGL[]      = "disable-webgl";
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
143effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Disable the fast text autosizing implementation.
144effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kDisableFastTextAutosizing[]     = "disable-fast-text-autosizing";
145effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable FileSystem API.
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFileSystem[]             = "disable-file-system";
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable 3D inside of flapper.
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlash3d[]                = "disable-flash-3d";
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable Stage3D inside of flapper.
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableFlashStage3d[]           = "disable-flash-stage3d";
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
155ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGestureTapHighlight[]    = "disable-gesture-tap-highlight";
156ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
157ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables GPU hardware acceleration.  If software renderer is not in place,
158ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// then the GPU process won't launch.
159ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpu[]                    = "disable-gpu";
160ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
161ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Prevent the compositor from using its GPU implementation.
162ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuCompositing[]         = "disable-gpu-compositing";
163ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
164f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disable the limit on the number of times the GPU process may be restarted
165f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// This switch is intended only for tests.
166f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)extern const char kDisableGpuProcessCrashLimit[] =
167f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "disable-gpu-process-crash-limit";
168f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
169a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable GPU rasterization, i.e. rasterize on the CPU only.
170a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableGpuRasterization and kForceGpuRasterization flags.
171a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableGpuRasterization[]       = "disable-gpu-rasterization";
172a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
17323730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing disable low resolution tiling. This uses
17423730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// less power, particularly during animations, but more white may be seen
17523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// during fast scrolling especially on slower devices.
17623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kDisableLowResTiling[] = "disable-low-res-tiling";
17723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the GPU process sandbox.
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableGpuSandbox[]             = "disable-gpu-sandbox";
1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
181ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable the thread that crashes the GPU process if it stops responding to
182ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// messages.
183ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableGpuWatchdog[]            = "disable-gpu-watchdog";
1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Suppresses hang monitor dialogs in renderer processes.  This may allow slow
1865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// unload handlers on a page to prevent the tab from closing, but the Task
1875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Manager can be used to terminate the offending process in this case.
1885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableHangMonitor[]            = "disable-hang-monitor";
1895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable the RenderThread's HistogramCustomizer.
1912a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableHistogramCustomizer[]    = "disable-histogram-customizer";
1922a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
193a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the main thread instead of the compositor thread.
194a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Overrides the kEnableImplSidePainting flag.
195a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableImplSidePainting[]       = "disable-impl-side-painting";
1965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent Java from running.
1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJava[]                   = "disable-java";
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't execute JavaScript (browser JS like the new tab page still runs).
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableJavaScript[]             = "disable-javascript";
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
203a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Don't kill a child process when it sends a bad IPC message.  Apart
204a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// from testing, it is a bad idea from a security perspective to enable
205a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// this switch.
206a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableKillAfterBadIPC[]        = "disable-kill-after-bad-ipc";
207a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
208ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()).
2094e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisablePrefixedEncryptedMedia[] =
2104e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "disable-prefixed-encrypted-media";
211ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
212a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables LCD text.
213a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableLCDText[]                = "disable-lcd-text";
214a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
215010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Disables distance field text.
216010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kDisableDistanceFieldText[]      = "disable-distance-field-text";
217010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
2185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable LocalStorage.
2195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLocalStorage[]           = "disable-local-storage";
2205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be disabled.  Logging is enabled by default in debug
2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableLogging[]                = "disable-logging";
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
225a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Disables Media Source API (i.e., the MediaSource object).
226a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kDisableMediaSource[]            = "disable-media-source";
227a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
228ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable Pepper3D.
229ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePepper3d[]               = "disable-pepper-3d";
230ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
231ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables compositor-accelerated touch-screen pinch gestures.
232ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePinch[]                  = "disable-pinch";
233eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
2345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevent plugins from running.
2355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePlugins[]                = "disable-plugins";
2365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
237ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable discovering third-party plug-ins. Effectively loading only
238ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// ones shipped with the browser plus third-party ones as specified by
239ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --extra-plugin-dir and --load-plugin switches.
240ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisablePluginsDiscovery[]       = "disable-plugins-discovery";
241ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables remote web font support. SVG font should always work whether this
2435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// option is specified or not.
2445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRemoteFonts[]            = "disable-remote-fonts";
2455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Turns off the accessibility in the renderer.
2475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRendererAccessibility[]  = "disable-renderer-accessibility";
2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Disables the new layout/paint system which paints after layout is complete.
2505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kDisableRepaintAfterLayout[]     = "disable-repaint-after-layout";
2515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
252c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable the seccomp filter sandbox (seccomp-bpf) (Linux only).
2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSeccompFilterSandbox[]   = "disable-seccomp-filter-sandbox";
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable session storage.
2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSessionStorage[]         = "disable-session-storage";
2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2587d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Disable the setuid sandbox (Linux only).
2597d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kDisableSetuidSandbox[]          = "disable-setuid-sandbox";
2607d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable shared workers. Functionality not yet complete.
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSharedWorkers[]          = "disable-shared-workers";
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables site-specific tailoring to compatibility issues in WebKit.
2655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSiteSpecificQuirks[]     = "disable-site-specific-quirks";
2665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
267ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable smooth scrolling for testing.
268ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSmoothScrolling[]        = "disable-smooth-scrolling";
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
270ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disables the use of a 3D software rasterizer.
271ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSoftwareRasterizer[]     = "disable-software-rasterizer";
2725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
273ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable False Start in SSL and TLS connections.
274ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableSSLFalseStart[]          = "disable-ssl-false-start";
275868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
276ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Disable multithreaded GPU compositing of web content.
277ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableThreadedCompositing[]     = "disable-threaded-compositing";
278868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't enforce the same-origin policy. (Used by people testing their sites.)
2805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableWebSecurity[]            = "disable-web-security";
2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2824e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables support for XSLT.
2834e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableXSLT[]                   = "disable-xslt";
2844e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
2854e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS.
2865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableXSSAuditor[]             = "disable-xss-auditor";
2875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2885c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Disable rasterizer that writes directly to GPU memory associated with tiles.
2895c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Overrides the kEnableZeroCopy flag.
2905c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kDisableZeroCopy[]               = "disable-zero-copy";
2915c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies if the |DOMAutomationController| needs to be bound in the
2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer. This binding happens on per-frame basis and hence can potentially
2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be a performance bottleneck. One should only enable it when automating dom
29590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// based tests.
2965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDomAutomationController[]       = "dom-automation";
2975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
298a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enable bleeding-edge code to make Chrome draw content faster. The changes
299a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// behind this path are very likely to break lots of content.
300a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// ** DO NOT use this flag unless you know what you are doing. **
301a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableBleedingEdgeRenderingFastPaths[] =
302a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "enable-bleeding-edge-rendering-fast-paths";
303a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
304010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Disable deferred image filters.
305010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kDisableDeferredFilters[]         = "disable-deferred-filters";
3065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
307ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables accelerated compositing for backgrounds of root layers with
3080529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// background-attachment: fixed.
309ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableAcceleratedFixedRootBackground[] =
310ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-accelerated-fixed-root-background";
311ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
312ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables accelerated compositing for overflow scroll. Promotes eligible
313ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// overflow:scroll elements to layers to enable accelerated scrolling for them.
314ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableAcceleratedOverflowScroll[] =
315ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-accelerated-overflow-scroll";
316ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
317a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Enables LCD text.
318a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableLCDText[]                 = "enable-lcd-text";
319a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
320010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Enables using signed distance fields when rendering text.
321010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Only valid if GPU rasterization is enabled as well.
322010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kEnableDistanceFieldText[]       = "enable-distance-field-text";
323010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
324f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables experimental feature that maps multiple RenderLayers to
325f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// one composited layer to avoid pathological layer counts.
326f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableLayerSquashing[] =
327f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "enable-layer-squashing";
328f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
329a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable experimental container node culling.
330a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableContainerCulling[]        = "enable-container-culling";
331a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
332a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Use a BeginFrame signal from browser to renderer to schedule rendering.
333ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableBeginFrameScheduling[]    = "enable-begin-frame-scheduling";
334ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
335ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the creation of compositing layers for fixed position
3362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// elements. Three options are needed to support four possible scenarios:
3372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  1. Default (disabled)
3382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  2. Enabled always (to allow dogfooding)
3392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  3. Disabled always (to give safety fallback for users)
3402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//  4. Enabled only if we detect a highDPI display
3412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
3422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Option #4 may soon be the default, because the feature is needed soon for
3432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
3442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// override Option #4.
3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableCompositingForFixedPosition[] =
3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)     "enable-fixed-position-compositing";
3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
34890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Enable/Disable the creation of compositing layers for RenderLayers with a
34990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// transition on a property that supports accelerated animation (that is,
35090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// opacity, -webkit-transform, and -webkit-filter), even when no animation is
35190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// running. These options allow for three possible scenarios:
35290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  1. Default (enabled only if we dectect a highDPI display)
35390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  2. Enabled always.
35490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)//  3. Disabled always.
35590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kEnableCompositingForTransition[] =
35690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)     "enable-transition-compositing";
35790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
358ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defer image decoding in WebKit until painting.
359ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableDeferredImageDecoding[]   = "enable-deferred-image-decoding";
3607dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
3612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables delegated renderer.
3622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDelegatedRenderer[]       = "enable-delegated-renderer";
3632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
3642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables restarting interrupted downloads.
3652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableDownloadResumption[]      = "enable-download-resumption";
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
367ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for Encrypted Media Extensions (e.g. MediaKeys).
368ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableEncryptedMedia[] = "enable-encrypted-media";
369ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
370ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable experimental canvas features, e.g. canvas 2D context attributes
371ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableExperimentalCanvasFeatures[] =
372ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-experimental-canvas-features";
373ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
3747dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Enables Web Platform features that are in development.
3757dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kEnableExperimentalWebPlatformFeatures[] =
3767dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "enable-experimental-web-platform-features";
3775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// By default, cookies are not allowed on file://. They are needed for testing,
3795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for example page cycler and layout tests. See bug 1157243.
3805d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableFileCookies[]             = "enable-file-cookies";
3815d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
3824e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable the fast text autosizing implementation.
3834e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableFastTextAutosizing[]      = "enable-fast-text-autosizing";
3844e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
3855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable Gesture Tap Highlight
386ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableGestureTapHighlight[]     = "enable-gesture-tap-highlight";
3875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3882a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables TRACE for GL calls in the renderer.
3892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableGpuClientTracing[]        = "enable-gpu-client-tracing";
3902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
391a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Allow heuristics to determine when a layer tile should be drawn with the
392a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Skia GPU backend. Only valid with GPU accelerated compositing +
393a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// impl-side painting.
394a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableGpuRasterization[]        = "enable-gpu-rasterization";
395a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
39623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// When using CPU rasterizing generate low resolution tiling. Low res
39723730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)// tiles may be displayed during fast scrolls especially on slower devices.
39823730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)const char kEnableLowResTiling[] = "enable-low-res-tiling";
39923730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)
400ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// See comment for kEnableCompositingForFixedPosition.
401ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableHighDpiCompositingForFixedPosition[] =
402ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch     "enable-high-dpi-fixed-position-compositing";
4037dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
404a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Paint content on the compositor thread instead of the main thread.
405a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kEnableImplSidePainting[]        = "enable-impl-side-painting";
406a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
407ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables support for inband text tracks in media content.
408ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableInbandTextTracks[]        = "enable-inband-text-tracks";
409a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
4105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force logging to be enabled.  Logging is disabled by default in release
4115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// builds.
4125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableLogging[]                 = "enable-logging";
4135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
414ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the memory benchmarking extension
415ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableMemoryBenchmarking[]      = "enable-memory-benchmarking";
416eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
4175c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory.
4185c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableOneCopy[]                 = "enable-one-copy";
4195c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
4204e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables use of hardware overlay for fullscreen video playback. Android only.
4214e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableOverlayFullscreenVideo[]  = "enable-overlay-fullscreen-video";
4224e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
423a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disables blink subtitle and media control on top of overlay fullscreen video.
424a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableOverlayFullscreenVideoSubtitle[] =
425a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "disable-overlay-fullscreen-video-subtitle";
4265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
427ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Forward overscroll event data from the renderer to the browser.
428ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableOverscrollNotifications[] = "enable-overscroll-notifications";
429ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
430ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables compositor-accelerated touch-screen pinch gestures.
431ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnablePinch[]                   = "enable-pinch";
432ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
433010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Make the values returned to window.performance.memory more granular and more
434010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// up to date in shared worker. Without this flag, the memory information is
435010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// still available, but it is bucketized and updated less frequently. This flag
436010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// also applys to workers.
437010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
438010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable caching of pre-parsed JS script data.  See http://crbug.com/32407.
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnablePreparsedJsCaching[]      = "enable-preparsed-js-caching";
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
442ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the CSS multicol implementation that uses the regions implementation.
443ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableRegionBasedColumns[] =
444ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-region-based-columns";
4455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4460f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Enables the new layout/paint system which paints after layout is complete.
4470f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kEnableRepaintAfterLayout[] =
4480f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)    "enable-repaint-after-layout";
4490f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
4505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables targeted style recalculation optimizations.
4515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableTargetedStyleRecalc[] =
4525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "enable-targeted-style-recalc";
4535d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Cause the OS X sandbox write to syslog every time an access to a resource
4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is denied by the sandbox.
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSandboxLogging[]          = "enable-sandbox-logging";
4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
458a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enables seccomp-bpf support for Android. Requires experimental kernel
459a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// support. <http://crbug.com/166704>
460a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableSeccompFilterSandbox[] =
461a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch    "enable-seccomp-filter-sandbox";
462a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
463ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the Skia benchmarking extension
464ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSkiaBenchmarking[]        = "enable-skia-benchmarking";
4655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On platforms that support it, enables smooth scroll animation.
4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSmoothScrolling[]         = "enable-smooth-scrolling";
4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
469ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable spatial navigation
470ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpatialNavigation[]       = "enable-spatial-navigation";
471ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
472ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables the synthesis part of the Web Speech API.
473ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechSynthesis[]         = "enable-speech-synthesis";
474ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
4755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables StatsTable, logging statistics to a global named shared memory table.
4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStatsTable[]              = "enable-stats-table";
4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Experimentally ensures that each renderer process:
4792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 1) Only handles rendering for pages from a single site, apart from iframes.
4805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (Note that a page can reference content from multiple origins due to images,
4812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// JavaScript files, etc.  Cross-site iframes are also loaded in-process.)
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2) Only has authority to see or use cookies for the page's top-level origin.
4832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (So if a.com iframes b.com, the b.com network request will be sent without
4842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies.)
4852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This is expected to break compatibility with many pages for now.  Unlike the
4862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// --site-per-process flag, this allows cross-site iframes, but it blocks all
4872a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// cookies on cross-site requests.
4885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStrictSiteIsolation[]     = "enable-strict-site-isolation";
4895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4904e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable support for ServiceWorker. See
4914e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// https://github.com/slightlyoff/ServiceWorker for more information.
4924e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableServiceWorker[]           = "enable-service-worker";
4934e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
494a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch// Enable support for sync events in ServiceWorkers.
495a02191e04bc25c4935f804f2c080ae28663d096dBen Murdochconst char kEnableServiceWorkerSync[]       = "enable-service-worker-sync";
496a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch
497ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable use of experimental TCP sockets API for sending data in the
498ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// SYN packet.
499ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableTcpFastOpen[]             = "enable-tcp-fastopen";
500ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable multithreaded GPU compositing of web content.
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableThreadedCompositing[]     = "enable-threaded-compositing";
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
504ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable screen capturing support for MediaStream API.
505ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableUserMediaScreenCapturing[] =
506ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-usermedia-screen-capturing";
507ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
508f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the @viewport CSS rule, which allows
509ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pages to control aspects of their own layout. This also turns on touch-screen
510ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// pinch gestures.
511ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableViewport[]                = "enable-viewport";
512ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
513f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables the use of the legacy viewport meta tag. Turning this on also
514f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// turns on the @viewport CSS rule
515f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableViewportMeta[]            = "enable-viewport-meta";
516f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
517f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Resizes of the main frame are the caused by changing between landscape
518f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// and portrait mode (i.e. Android) so the page should be rescaled to fit
519f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kMainFrameResizesAreOrientationChanges[] =
520f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "main-frame-resizes-are-orientation-changes";
521f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
522ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the Vtune profiler support.
523ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableVtune[]                   = "enable-vtune-support";
5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
525ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable SVG Animations on the Web Animations model.
526ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebAnimationsSVG[]        = "enable-web-animations-svg";
527ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
528ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables WebGL extensions not yet approved by the community.
529ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
530ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
531cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Enables WebGL rendering into a scanout buffer for overlay support.
532cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
533cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
534ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables Web MIDI API.
535ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableWebMIDI[]                 = "enable-web-midi";
536ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5375c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Enable rasterizer that writes directly to GPU memory associated with tiles.
5385c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kEnableZeroCopy[]                = "enable-zero-copy";
5395c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
540ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Load NPAPI plugins from the specified directory.
541ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kExtraPluginDir[]                = "extra-plugin-dir";
542ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some field trials may be randomized in the browser, and the randomly selected
5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// outcome needs to be propagated to the renderer. For instance, this is used
5455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to modify histograms recorded in the renderer, or to get the renderer to
5465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// also set of its state (initialize, or not initialize components) to match the
5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// experiment(s). The option is also useful for forcing field trials when
5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// testing changes locally. The argument is a list of name and value pairs,
5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// separated by slashes. See FieldTrialList::CreateTrialsFromString() in
5505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// field_trial.h for details.
5515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceFieldTrials[]              = "force-fieldtrials";
5525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
553a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
554a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// accelerated compositing + impl-side painting. Overrides the
555a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// kEnableGpuRasterization flag.
556a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kForceGpuRasterization[]        = "force-gpu-rasterization";
557a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
5585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Force renderer accessibility to be on instead of enabling it on demand when
5595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a screen reader is detected. The disable-renderer-accessibility switch
5605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// overrides this if present.
5615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kForceRendererAccessibility[]    = "force-renderer-accessibility";
5625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu device_id from browser process to GPU process.
5645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDeviceID[]                   = "gpu-device-id";
5655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_vendor from browser process to GPU process.
5675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVendor[]               = "gpu-driver-vendor";
5685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu driver_version from browser process to GPU process.
5705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuDriverVersion[]              = "gpu-driver-version";
5715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Extra command line options for launching the GPU process (normally used
5735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for debugging). Use like renderer-cmd-prefix.
5745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuLauncher[]                   = "gpu-launcher";
5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Makes this process a GPU sub-process.
5775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuProcess[]                    = "gpu-process";
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
579a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Allow shmat system call in GPU sandbox.
580a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kGpuSandboxAllowSysVShm[]        = "gpu-sandbox-allow-sysv-shm";
581a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
582a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Makes GPU sandbox failures fatal.
583a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kGpuSandboxFailuresFatal[]       = "gpu-sandbox-failures-fatal";
584a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
585effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch// Allow GPU sandbox to start later
586effb81e5f8246d0db0270817048dc992db66e9fbBen Murdochconst char kGpuSandboxStartAfterInitialization[] =
587effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch    "gpu-sandbox-start-after-initialization";
588effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch
5895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the GPU process to display a dialog on launch.
5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuStartupDialog[]              = "gpu-startup-dialog";
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes gpu vendor_id from browser process to GPU process.
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGpuVendorID[]                   = "gpu-vendor-id";
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These mappings only apply to the host resolver.
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostResolverRules[]             = "host-resolver-rules";
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores certificate-related errors.
5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreCertificateErrors[]       = "ignore-certificate-errors";
6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Ignores GPU blacklist.
6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIgnoreGpuBlacklist[]            = "ignore-gpu-blacklist";
6035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Run the GPU process as a thread in the browser process.
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kInProcessGPU[]                  = "in-process-gpu";
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6076d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Overrides the timeout, in seconds, that a child process waits for a
6086d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// connection from the browser before killing itself.
6096d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)const char kIPCConnectionTimeout[]          = "ipc-connection-timeout";
6106d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the flags passed to JS engine
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kJavaScriptFlags[]               = "js-flags";
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Load an NPAPI plugin from the specified path.
6155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadPlugin[]                    = "load-plugin";
6165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6174e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Logs GPU control list decisions when enforcing blacklist rules.
6184e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kLogGpuControlListDecisions[]    = "log-gpu-control-list-decisions";
6194e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
6205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets the minimum log level. Valid values are from 0 to 3:
6215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
6225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoggingLevel[]                  = "log-level";
6235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables saving net log events to a file and sets the file name to use.
625ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kLogNetLog[]                     = "log-net-log";
626ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Make plugin processes log their sent and received messages to VLOG(1).
6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLogPluginMessages[]             = "log-plugin-messages";
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
630ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the width and height above which a composited layer will get tiled.
631ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerHeight[]         = "max-untiled-layer-height";
632ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kMaxUntiledLayerWidth[]          = "max-untiled-layer-width";
633ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Sample memory usage with high frequency and store the results to the
6352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Renderer.Memory histogram. Used in memory tests.
6362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kMemoryMetrics[]                 = "memory-metrics";
6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6383240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// Mutes audio sent to the audio device so it is not audible during
6393240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// automated testing.
6403240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kMuteAudio[]                     = "mute-audio";
6413240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't send HTTP-Referer headers.
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoReferrers[]                   = "no-referrers";
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the sandbox for all process types that are normally sandboxed.
6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoSandbox[]                     = "no-sandbox";
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Number of worker threads used to rasterize content.
6495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kNumRasterThreads[]              = "num-raster-threads";
6505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
651ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables history navigation in response to horizontal overscroll.
652ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
653ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to enabled.
654ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kOverscrollHistoryNavigation[] =
655ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "overscroll-history-navigation";
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a command that should be used to launch the plugin process.  Useful
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for running the plugin process through purify or quantify.  Ex:
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   --plugin-launcher="path\to\purify /Run=yes"
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginLauncher[]                = "plugin-launcher";
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells the plugin process the path of the plugin to load
6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginPath[]                    = "plugin-path";
6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a plugin subprocess.
6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginProcess[]                 = "plugin";
6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the plugin process to display a dialog on launch.
6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginStartupDialog[]           = "plugin-startup-dialog";
6705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI broker process type.
6725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiBrokerProcess[]            = "ppapi-broker";
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
674ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// "Command-line" arguments for the PPAPI Flash; used for debugging options.
675ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kPpapiFlashArgs[]                = "ppapi-flash-args";
676ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
6772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Runs PPAPI (Pepper) plugins in-process.
6782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kPpapiInProcess[]                = "ppapi-in-process";
6795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Like kPluginLauncher for PPAPI plugins.
6815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginLauncher[]           = "ppapi-plugin-launcher";
6825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Argument to the process type that indicates a PPAPI plugin process type.
6845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiPluginProcess[]            = "ppapi";
6855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the PPAPI sub process to display a dialog on launch. Be sure to use
6875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --no-sandbox as well or the sandbox won't allow the dialog to display.
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiStartupDialog[]            = "ppapi-startup-dialog";
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs a single process for each site (i.e., group of pages from the same
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// registered domain) the user visits.  We default to using a renderer process
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for each site instance (i.e., group of pages from the same registered
6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// domain with script connections to each other).
6945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerSite[]                = "process-per-site";
6955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own
6975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer process.  We default to using a renderer process for each
6985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// site instance (i.e., group of pages from the same registered domain with
6995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// script connections to each other).
7005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessPerTab[]                 = "process-per-tab";
7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value of this switch determines whether the process is started as a
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer or plugin host.  If it's empty, it's the browser.
7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProcessType[]                   = "type";
7055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Enables more web features over insecure connections. Designed to be used
7075d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for testing purposes only.
7085d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kReduceSecurityForTesting[]      = "reduce-security-for-testing";
709ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
7104e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Register Pepper plugins (see pepper_plugin_list.cc for its format).
7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRegisterPepperPlugins[]         = "register-pepper-plugins";
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables remote debug over HTTP on the specified port.
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteDebuggingPort[]           = "remote-debugging-port";
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to throw an assertion on launch.
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererAssertTest[]            = "renderer-assert-test";
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the renderer
7205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// command line. Useful values might be "valgrind" or "xterm -e gdb --args".
7215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererCmdPrefix[]             = "renderer-cmd-prefix";
7225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as renderer instead of as browser.
7245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcess[]               = "renderer";
7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the default/calculated limit to the number of renderer processes.
7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Very high values for this setting can lead to high memory/resource usage
7285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// or instability.
7295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererProcessLimit[]          = "renderer-process-limit";
7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the renderer process to display a dialog on launch.
7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererStartupDialog[]         = "renderer-startup-dialog";
7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
73468043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Causes the process to run as a sandbox IPC subprocess.
73568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kSandboxIPCProcess[]             = "sandbox-ipc";
73668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
737ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables or disables scroll end effect in response to vertical overscroll.
738ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set the value to '1' to enable the feature, and set to '0' to disable.
739ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Defaults to disabled.
740ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kScrollEndEffect[] = "scroll-end-effect";
7415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Visibly render a border around paint rects in the web page to help debug
7435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and study painting behavior.
7445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowPaintRects[]                = "show-paint-rects";
7455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs the renderer and plugins in the same process as the browser
7475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSingleProcess[]                 = "single-process";
7485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Experimentally enforces a one-site-per-process security policy.
7502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// All cross-site navigations force process swaps, and we can restrict a
7512a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// renderer process's access rights based on its site.  For details, see:
7522a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// http://www.chromium.org/developers/design-documents/site-isolation
7532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
7542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Unlike --enable-strict-site-isolation (which allows cross-site iframes),
755f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// this flag does not affect which cookies are attached to cross-site requests.
756f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Support is being added to render cross-site iframes in a different process
757f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// than their parent pages.
7582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSitePerProcess[]                = "site-per-process";
7592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Skip gpu info collection, blacklist loading, and blacklist auto-update
7615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// scheduling at browser startup time.
7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Therefore, all GPU features are available, and about:gpu page shows empty
7634e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// content. The switch is intended only for layout tests.
7644e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// TODO(gab): Get rid of this switch entirely.
7655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSkipGpuDataLoading[]            = "skip-gpu-data-loading";
7665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
767a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Specifies if the browser should start in fullscreen mode, like if the user
768a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// had pressed F11 right after startup.
769a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kStartFullscreen[] = "start-fullscreen";
770ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
771ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Specifies if the |StatsCollectionController| needs to be bound in the
772ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// renderer. This binding happens on per-frame basis and hence can potentially
773ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// be a performance bottleneck. One should only enable it when running a test
774ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// that needs to access the provided statistics.
775ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kStatsCollectionController[] =
776ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch    "enable-stats-collection-bindings";
777ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
778ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Upscale defaults to "good".
779ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTabCaptureDownscaleQuality[]    = "tab-capture-downscale-quality";
780ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
781868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Scaling quality for capturing tab. Should be one of "fast", "good" or "best".
782868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// One flag for upscaling, one for downscaling.
783868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Upscale defaults to "best".
784868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kTabCaptureUpscaleQuality[]      = "tab-capture-upscale-quality";
785868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
7865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows for forcing socket connections to http/https to use fixed ports.
7875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpPort[]          = "testing-fixed-http-port";
7885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingFixedHttpsPort[]         = "testing-fixed-https-port";
7895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
790a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Type of the current test harness ("browser" or "ui").
791a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kTestType[]                      = "test-type";
792a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
7935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingMode[]            = "touch-scrolling-mode";
7945c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeAsyncTouchmove[] = "async-touchmove";
7955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kTouchScrollingModeSyncTouchmove[] = "sync-touchmove";
7965c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuconst char kTouchScrollingModeTouchcancel[] = "touchcancel";
7975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
79858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
79958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// can specify the specific trace categories to include (e.g.
80058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown=base,net) otherwise, all events are recorded.
80158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// --trace-shutdown-file can be used to control where the trace log gets stored
80258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// to since there is otherwise no way to access the result.
80358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdown[]                 = "trace-shutdown";
80458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
80558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// If supplied, sets the file which shutdown tracing will be stored into, if
80658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
80758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Has no effect unless --trace-shutdown is also supplied.
80858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
80958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kTraceShutdownFile[]             = "trace-shutdown-file";
81058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specify the specific trace categories to include (e.g.
8135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup=base,net) otherwise, all events are recorded. Setting this
8145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// flag results in the first call to BeginTracing() to receive all trace events
8155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// since startup. In Chrome, you may find --trace-startup-file and
8165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --trace-startup-duration to control the auto-saving of the trace (not
8175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// supported in the base-only TraceLog component).
8185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartup[]                  = "trace-startup";
8195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
820ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Sets the time in seconds until startup tracing ends. If omitted a default of
821ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// 5 seconds is used. Has no effect without --trace-startup, or if
822ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// --startup-trace-file=none was supplied.
823ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kTraceStartupDuration[]          = "trace-startup-duration";
824ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If supplied, sets the file which startup tracing will be stored into, if
8265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// omitted the default will be used "chrometrace.log" in the current directory.
8275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Has no effect unless --trace-startup is also supplied.
8285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Example: --trace-startup --trace-startup-file=/tmp/trace_event.log
8295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// As a special case, can be set to 'none' - this disables automatically saving
8305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the result to a file and the first manually recorded trace will then receive
8315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all events since startup.
8325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTraceStartupFile[]              = "trace-startup-file";
8335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
834ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
8355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prioritizes the UI's command stream in the GPU process
8375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const char kUIPrioritizeInGpuProcess[] =
8385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "ui-prioritize-in-gpu-process";
8395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8405d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Overrides the preferred discardable memory implementation.
8415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUseDiscardableMemory[] = "use-discardable-memory";
8425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
843ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Bypass the media stream infobar by selecting the default device for media
844ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream.
845ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseFakeUIForMediaStream[]     = "use-fake-ui-for-media-stream";
846ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
847ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Set when Chromium should use a mobile user agent.
848ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kUseMobileUserAgent[] = "use-mobile-user-agent";
849ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
85046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Use the new surfaces system to handle compositor delegation.
85146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kUseSurfaces[] = "use-surfaces";
85246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
8535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On POSIX only: the contents of this flag are prepended to the utility
8545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// process command line. Useful values might be "valgrind" or "xterm -e gdb
8555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --args".
8565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityCmdPrefix[]              = "utility-cmd-prefix";
8575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a utility subprocess.
8595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcess[]                = "utility";
8605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The utility process is sandboxed, with access to one directory. This flag
8625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specifies the directory that can be accessed.
8635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUtilityProcessAllowedDir[]      = "utility-allowed-dir";
8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
865ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Allows MDns to access network in sandboxed process.
866ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kUtilityProcessEnableMDns[]      = "utility-enable-mdns";
867ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
8685d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kUtilityProcessRunningElevated[] = "utility-run-elevated";
8695d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
870a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// In debug builds, asserts that the stream of input events is valid.
871a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kValidateInputEventStream[] = "validate-input-event-stream";
872a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
8735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Will add kWaitForDebugger to every child processes. If a value is passed, it
8745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will be used as a filter to determine if the child process should have the
8755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// kWaitForDebugger flag passed on or not.
8765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWaitForDebuggerChildren[]       = "wait-for-debugger-children";
8775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a worker subprocess.
8795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWorkerProcess[]                 = "worker";
8805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The prefix used when starting the zygote process. (i.e. 'gdb --args')
8825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteCmdPrefix[]               = "zygote-cmd-prefix";
8835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the process to run as a renderer zygote.
8855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kZygoteProcess[]                 = "zygote";
8865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
887ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#if defined(ENABLE_WEBRTC)
888cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// Disables audio processing in a MediaStreamTrack. When this flag is on, AEC,
889cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// NS and AGC will be done in PeerConnection instead of MediaStreamTrack.
890cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)const char kDisableAudioTrackProcessing[]    = "disable-audio-track-processing";
891f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
892f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Disables WebRTC device enumeration.
89358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableDeviceEnumeration[]      = "disable-device-enumeration";
8945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
895d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Disables HW decode acceleration for WebRTC.
896d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableWebRtcHWDecoding[]       = "disable-webrtc-hw-decoding";
897d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
8980f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it
8990f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// ignores this switch on its stable and beta channels.
9000f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDisableWebRtcEncryption[]      = "disable-webrtc-encryption";
9010f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
90258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables HW encode acceleration for WebRTC.
90358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableWebRtcHWEncoding[]       = "disable-webrtc-hw-encoding";
90458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
90568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enables VP8 HW encode acceleration for WebRTC.
90668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kEnableWebRtcHWVp8Encoding[]     = "enable-webrtc-hw-vp8-encoding";
907ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch#endif
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
9102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disable user gesture requirement for media playback.
9112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableGestureRequirementForMediaPlayback[] =
9122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "disable-gesture-requirement-for-media-playback";
9135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
914a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Disable the click delay by sending click events during double tap.
915a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kDisableClickDelay[]             = "disable-click-delay";
916a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
91790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Disable overscroll edge effects like those found in Android views.
91858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableOverscrollEdgeEffect[]   = "disable-overscroll-edge-effect";
919ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
920ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// WebRTC is enabled by default on Android.
921ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kDisableWebRTC[]                 = "disable-webrtc";
922ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
923f8689dee9ab0461385ed4922229c99c1e3bab70eIgnacio Solla// Enable the PowerSaveBlocker in ContentVideoView. Android only.
924f8689dee9ab0461385ed4922229c99c1e3bab70eIgnacio Sollaconst char kEnableContentVideoViewPowerSaveBlocker[] =
925f8689dee9ab0461385ed4922229c99c1e3bab70eIgnacio Solla    "enable-content-video-view-power-save-blocker";
926f8689dee9ab0461385ed4922229c99c1e3bab70eIgnacio Solla
927ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enable the recognition part of the Web Speech API.
928ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kEnableSpeechRecognition[]       = "enable-speech-recognition";
929ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
9300529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// Always use the video overlay for the embedded video.
9310529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch// This switch is intended only for tests.
9320529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochconst char kForceUseOverlayEmbeddedVideo[] = "force-use-overlay-embedded-video";
9330529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
934ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// The telephony region (ISO country code) to use in phone number detection.
935ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kNetworkCountryIso[] = "network-country-iso";
936ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
937ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Enables remote debug over HTTP on the specified socket name.
938ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kRemoteDebuggingSocketName[]     = "remote-debugging-socket-name";
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
941a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disable web audio API.
942a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableWebAudio[]               = "disable-webaudio";
943a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
9442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_CHROMEOS)
9452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables panel fitting (used for mirror mode).
9462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisablePanelFitting[]           = "disable-panel-fitting";
9472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
9482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX) && !defined(OS_IOS)
9505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kEnableCarbonInterposing[]       = "enable-carbon-interposing";
951868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
952c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// Disables support for Core Animation plugins. This is triggered when
953c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch// accelerated compositing is disabled. See http://crbug.com/122430 .
954c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdochconst char kDisableCoreAnimationPlugins[] =
955c2db58bd994c04d98e4ee2cd7565b71548655fe3Ben Murdoch    "disable-core-animation-plugins";
9565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
9575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
95846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#if defined(OS_WIN)
95946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Device scale factor passed to certain processes like renderers, etc.
96046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kDeviceScaleFactor[]     = "device-scale-factor";
96146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
962f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// Disables the DirectWrite font rendering system on windows.
963f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)const char kDisableDirectWrite[]             = "disable-direct-write";
964f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)
96546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Disable the Legacy Window which corresponds to the size of the WebContents.
96646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
96746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
96846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Use high resolution timers for TimeTicks.
96946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kEnableHighResolutionTime[]      = "enable-high-resolution-time";
97046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
97146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// Enable the Win32K process mitigation policy for renderer processes which
97246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// prevents them from invoking user32 and gdi32 system calls which enter
97346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)// the kernel. This is only supported on Windows 8 and beyond.
97446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)const char kEnableWin32kRendererLockDown[]
97546d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)    = "enable_win32k_renderer_lockdown";
97646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#endif
97746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)
978ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Don't dump stuff here, follow the same order as the header.
9797dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
9805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace switches
981