Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: content/common/content_switches.cc

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/content_switches.h" 5 #include "content/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // By default, file:// URIs cannot read other file:// URIs. This is an 9 // By default, file:// URIs cannot read other file:// URIs. This is an
10 // override for developers who need the old behavior for testing. 10 // override for developers who need the old behavior for testing.
11 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; 11 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files";
12 12
13 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). 13 // Allows debugging of sandboxed processes (see zygote_main_linux.cc).
14 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; 14 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging";
15 15
16 // Path to the exe to run for the renderer and plugin subprocesses. 16 // Path to the exe to run for the renderer and plugin subprocesses.
17 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 17 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
18 18
19 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. 19 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
20 // This is controlled by policy and is kept separate from the other 20 // This is controlled by policy and is kept separate from the other
21 // enable/disable switches to avoid accidentally regressing the policy 21 // enable/disable switches to avoid accidentally regressing the policy
22 // support for controlling access to these APIs. 22 // support for controlling access to these APIs.
23 const char kDisable3DAPIs[] = "disable-3d-apis"; 23 const char kDisable3DAPIs[] = "disable-3d-apis";
24 24
25 // Disables accelerated compositing. 25 // Disables accelerated compositing.
26 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; 26 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing";
27 27
28 // Disable the ApplicationCache. 28 // Disable the ApplicationCache.
29 const char kDisableApplicationCache[] = "disable-application-cache"; 29 const char kDisableApplicationCache[] = "disable-application-cache";
30 //
31 // TODO(scherkus): remove --disable-audio when we have a proper fallback
32 // mechanism.
33 const char kDisableAudio[] = "disable-audio";
30 34
31 // Disable limits on the number of backing stores. Can prevent blinking for 35 // Disable limits on the number of backing stores. Can prevent blinking for
32 // users with many windows/tabs and lots of memory. 36 // users with many windows/tabs and lots of memory.
33 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; 37 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
34 38
35 // Disables HTML5 DB support. 39 // Disables HTML5 DB support.
36 const char kDisableDatabases[] = "disable-databases"; 40 const char kDisableDatabases[] = "disable-databases";
37 41
38 // Disables data transfer items. 42 // Disables data transfer items.
39 const char kDisableDataTransferItems[] = "disable-data-transfer-items"; 43 const char kDisableDataTransferItems[] = "disable-data-transfer-items";
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 114
111 // Disable Web Sockets support. 115 // Disable Web Sockets support.
112 const char kDisableWebSockets[] = "disable-web-sockets"; 116 const char kDisableWebSockets[] = "disable-web-sockets";
113 117
114 // Enable hardware accelerated page drawing. 118 // Enable hardware accelerated page drawing.
115 // Please note that this flag is honored only if chromium is compiled with 119 // Please note that this flag is honored only if chromium is compiled with
116 // SKIA_GPU flag, which can be enabled by setting use_skia_gpu variable to 1 120 // SKIA_GPU flag, which can be enabled by setting use_skia_gpu variable to 1
117 // in build/features_override.gypi. 121 // in build/features_override.gypi.
118 const char kEnableAcceleratedDrawing[] = "enable-accelerated-drawing"; 122 const char kEnableAcceleratedDrawing[] = "enable-accelerated-drawing";
119 123
124 // Enables WebKit accessibility within the renderer process.
125 const char kEnableAccessibility[] = "enable-accessibility";
126
120 // Enables the benchmarking extensions. 127 // Enables the benchmarking extensions.
121 const char kEnableBenchmarking[] = "enable-benchmarking"; 128 const char kEnableBenchmarking[] = "enable-benchmarking";
122 129
123 // Enables device motion events. 130 // Enables device motion events.
124 const char kEnableDeviceMotion[] = "enable-device-motion"; 131 const char kEnableDeviceMotion[] = "enable-device-motion";
125 132
126 // Enable the GPU plugin and Pepper 3D rendering. 133 // Enable the GPU plugin and Pepper 3D rendering.
127 const char kEnableGPUPlugin[] = "enable-gpu-plugin"; 134 const char kEnableGPUPlugin[] = "enable-gpu-plugin";
128 135
129 // Force logging to be enabled. Logging is disabled by default in release 136 // Force logging to be enabled. Logging is disabled by default in release
130 // builds. 137 // builds.
131 const char kEnableLogging[] = "enable-logging"; 138 const char kEnableLogging[] = "enable-logging";
132 139
133 // On Windows, converts the page to the currently-installed monitor profile. 140 // On Windows, converts the page to the currently-installed monitor profile.
134 // This does NOT enable color management for images. The source is still 141 // This does NOT enable color management for images. The source is still
135 // assumed to be sRGB. 142 // assumed to be sRGB.
136 const char kEnableMonitorProfile[] = "enable-monitor-profile"; 143 const char kEnableMonitorProfile[] = "enable-monitor-profile";
137 144
145 // Enable Pepper and JavaScript P2P API.
146 const char kEnableP2PApi[] = "enable-p2papi";
147
138 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407. 148 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407.
139 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; 149 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching";
140 150
141 // Cause the OS X sandbox write to syslog every time an access to a resource 151 // Cause the OS X sandbox write to syslog every time an access to a resource
142 // is denied by the sandbox. 152 // is denied by the sandbox.
143 const char kEnableSandboxLogging[] = "enable-sandbox-logging"; 153 const char kEnableSandboxLogging[] = "enable-sandbox-logging";
144 154
145 // Enable the seccomp sandbox (Linux only) 155 // Enable the seccomp sandbox (Linux only)
146 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox"; 156 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox";
147 157
148 // Enables StatsTable, logging statistics to a global named shared memory table. 158 // Enables StatsTable, logging statistics to a global named shared memory table.
149 const char kEnableStatsTable[] = "enable-stats-table"; 159 const char kEnableStatsTable[] = "enable-stats-table";
150 160
161 // Enables support for fullscreen video. Current implementation is
162 // incomplete and this flag is used for development and testing.
163 const char kEnableVideoFullscreen[] = "enable-video-fullscreen";
164
165 // Enables video logging where video elements log playback performance data to
166 // the debug log.
167 const char kEnableVideoLogging[] = "enable-video-logging";
168
151 // Enable web audio API. 169 // Enable web audio API.
152 const char kEnableWebAudio[] = "enable-webaudio"; 170 const char kEnableWebAudio[] = "enable-webaudio";
153 171
154 // Enables experimental features for the geolocation API. 172 // Enables experimental features for the geolocation API.
155 // Current features: 173 // Current features:
156 // - CoreLocation support for Mac OS X 10.6 174 // - CoreLocation support for Mac OS X 10.6
157 // - Gateway location for Linux and Windows 175 // - Gateway location for Linux and Windows
158 // - Location platform support for Windows 7 176 // - Location platform support for Windows 7
159 const char kExperimentalLocationFeatures[] = "experimental-location-features"; 177 const char kExperimentalLocationFeatures[] = "experimental-location-features";
160 178
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 317
300 // Runs the plugin processes inside the sandbox. 318 // Runs the plugin processes inside the sandbox.
301 const char kSafePlugins[] = "safe-plugins"; 319 const char kSafePlugins[] = "safe-plugins";
302 320
303 // Causes the process to run as a service process. 321 // Causes the process to run as a service process.
304 const char kServiceProcess[] = "service"; 322 const char kServiceProcess[] = "service";
305 323
306 // Visibly render a border around paint rects in the web page to help debug 324 // Visibly render a border around paint rects in the web page to help debug
307 // and study painting behavior. 325 // and study painting behavior.
308 const char kShowPaintRects[] = "show-paint-rects"; 326 const char kShowPaintRects[] = "show-paint-rects";
327 //
328 // TODO(scherkus): remove --simple-data-source when our media resource loading
329 // is cleaned up and playback testing completed.
330 const char kSimpleDataSource[] = "simple-data-source";
309 331
310 // Runs the renderer and plugins in the same process as the browser 332 // Runs the renderer and plugins in the same process as the browser
311 const char kSingleProcess[] = "single-process"; 333 const char kSingleProcess[] = "single-process";
312 334
313 // Runs the security test for the renderer sandbox. 335 // Runs the security test for the renderer sandbox.
314 const char kTestSandbox[] = "test-sandbox"; 336 const char kTestSandbox[] = "test-sandbox";
315 337
316 // Grant unlimited quota to store files to this process. 338 // Grant unlimited quota to store files to this process.
317 // Used for testing Pepper's FileRef/FileIO/FileSystem implementations. 339 // Used for testing Pepper's FileRef/FileIO/FileSystem implementations.
318 // DO NOT USE FOR OTHER PURPOSES. 340 // DO NOT USE FOR OTHER PURPOSES.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 374
353 // Causes the process to run as a worker subprocess. 375 // Causes the process to run as a worker subprocess.
354 const char kWorkerProcess[] = "worker"; 376 const char kWorkerProcess[] = "worker";
355 377
356 // The prefix used when starting the zygote process. (i.e. 'gdb --args') 378 // The prefix used when starting the zygote process. (i.e. 'gdb --args')
357 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; 379 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix";
358 380
359 // Causes the process to run as a renderer zygote. 381 // Causes the process to run as a renderer zygote.
360 const char kZygoteProcess[] = "zygote"; 382 const char kZygoteProcess[] = "zygote";
361 } // namespace switches 383 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698