| OLD | NEW |
| 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 // By default, an https page cannot run JavaScript, CSS or plug-ins from http | 13 // By default, an https page cannot run JavaScript, CSS or plug-ins from http |
| 14 // URLs. This provides an override to get the old insecure behavior. | 14 // URLs. This provides an override to get the old insecure behavior. |
| 15 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; | 15 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; |
| 16 | 16 |
| 17 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). | 17 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). |
| 18 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; | 18 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; |
| 19 | 19 |
| 20 // Causes the browser process to throw an assertion on startup. |
| 21 const char kBrowserAssertTest[] = "assert-test"; |
| 22 |
| 23 // Causes the browser process to crash on startup. |
| 24 const char kBrowserCrashTest[] = "crash-test"; |
| 25 |
| 20 // Path to the exe to run for the renderer and plugin subprocesses. | 26 // Path to the exe to run for the renderer and plugin subprocesses. |
| 21 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; | 27 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
| 22 | 28 |
| 23 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run | 29 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run |
| 24 // as a dependent process of the Chrome Frame plugin. | 30 // as a dependent process of the Chrome Frame plugin. |
| 25 const char kChromeFrame[] = "chrome-frame"; | 31 const char kChromeFrame[] = "chrome-frame"; |
| 26 | 32 |
| 27 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 33 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
| 28 // This is controlled by policy and is kept separate from the other | 34 // This is controlled by policy and is kept separate from the other |
| 29 // enable/disable switches to avoid accidentally regressing the policy | 35 // enable/disable switches to avoid accidentally regressing the policy |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Disable JavaScript I18N API. | 116 // Disable JavaScript I18N API. |
| 111 const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; | 117 const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; |
| 112 | 118 |
| 113 // Disable LocalStorage. | 119 // Disable LocalStorage. |
| 114 const char kDisableLocalStorage[] = "disable-local-storage"; | 120 const char kDisableLocalStorage[] = "disable-local-storage"; |
| 115 | 121 |
| 116 // Force logging to be disabled. Logging is enabled by default in debug | 122 // Force logging to be disabled. Logging is enabled by default in debug |
| 117 // builds. | 123 // builds. |
| 118 const char kDisableLogging[] = "disable-logging"; | 124 const char kDisableLogging[] = "disable-logging"; |
| 119 | 125 |
| 120 // Disable smooth scrolling for testing. | |
| 121 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; | |
| 122 | |
| 123 // Prevent plugins from running. | 126 // Prevent plugins from running. |
| 124 const char kDisablePlugins[] = "disable-plugins"; | 127 const char kDisablePlugins[] = "disable-plugins"; |
| 125 | 128 |
| 126 // Disable pop-up blocking. | 129 // Disable pop-up blocking. |
| 127 const char kDisablePopupBlocking[] = "disable-popup-blocking"; | 130 const char kDisablePopupBlocking[] = "disable-popup-blocking"; |
| 128 | 131 |
| 129 // Turns off the accessibility in the renderer. | 132 // Turns off the accessibility in the renderer. |
| 130 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; | 133 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; |
| 131 | 134 |
| 135 // Disable False Start in SSL and TLS connections. |
| 136 const char kDisableSSLFalseStart[] = "disable-ssl-false-start"; |
| 137 |
| 138 // Disable smooth scrolling for testing. |
| 139 const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; |
| 140 |
| 132 // Disable the seccomp sandbox (Linux only) | 141 // Disable the seccomp sandbox (Linux only) |
| 133 const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; | 142 const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; |
| 134 | 143 |
| 135 // Disable session storage. | 144 // Disable session storage. |
| 136 const char kDisableSessionStorage[] = "disable-session-storage"; | 145 const char kDisableSessionStorage[] = "disable-session-storage"; |
| 137 | 146 |
| 138 // Enable shared workers. Functionality not yet complete. | 147 // Enable shared workers. Functionality not yet complete. |
| 139 const char kDisableSharedWorkers[] = "disable-shared-workers"; | 148 const char kDisableSharedWorkers[] = "disable-shared-workers"; |
| 140 | 149 |
| 141 // Disables speech input. | 150 // Disables speech input. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 161 | 170 |
| 162 // Enables WebKit accessibility within the renderer process. | 171 // Enables WebKit accessibility within the renderer process. |
| 163 const char kEnableAccessibility[] = "enable-accessibility"; | 172 const char kEnableAccessibility[] = "enable-accessibility"; |
| 164 | 173 |
| 165 // Turns on extremely verbose logging of accessibility events. | 174 // Turns on extremely verbose logging of accessibility events. |
| 166 const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; | 175 const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; |
| 167 | 176 |
| 168 // Enables the benchmarking extensions. | 177 // Enables the benchmarking extensions. |
| 169 const char kEnableBenchmarking[] = "enable-benchmarking"; | 178 const char kEnableBenchmarking[] = "enable-benchmarking"; |
| 170 | 179 |
| 180 // Enable DNS side checking of certificates. Still experimental, should only |
| 181 // be used by developers at the current time. |
| 182 const char kEnableDNSCertProvenanceChecking[] = |
| 183 "enable-dns-cert-provenance-checking"; |
| 184 |
| 171 // Enables device motion events. | 185 // Enables device motion events. |
| 172 const char kEnableDeviceMotion[] = "enable-device-motion"; | 186 const char kEnableDeviceMotion[] = "enable-device-motion"; |
| 173 | 187 |
| 174 // Enable the JavaScript Full Screen API. | 188 // Enable the JavaScript Full Screen API. |
| 175 const char kEnableFullScreen[] = "enable-fullscreen"; | 189 const char kEnableFullScreen[] = "enable-fullscreen"; |
| 176 | 190 |
| 177 // Enable the GPU plugin and Pepper 3D rendering. | 191 // Enable the GPU plugin and Pepper 3D rendering. |
| 178 const char kEnableGPUPlugin[] = "enable-gpu-plugin"; | 192 const char kEnableGPUPlugin[] = "enable-gpu-plugin"; |
| 179 | 193 |
| 180 // Force logging to be enabled. Logging is disabled by default in release | 194 // Force logging to be enabled. Logging is disabled by default in release |
| 181 // builds. | 195 // builds. |
| 182 const char kEnableLogging[] = "enable-logging"; | 196 const char kEnableLogging[] = "enable-logging"; |
| 183 | 197 |
| 184 // Enable media stream in WebKit. | 198 // Enable media stream in WebKit. |
| 185 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#mediastr
eam | 199 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#mediastr
eam |
| 186 const char kEnableMediaStream[] = "enable-media-stream"; | 200 const char kEnableMediaStream[] = "enable-media-stream"; |
| 187 | 201 |
| 188 // On Windows, converts the page to the currently-installed monitor profile. | 202 // On Windows, converts the page to the currently-installed monitor profile. |
| 189 // This does NOT enable color management for images. The source is still | 203 // This does NOT enable color management for images. The source is still |
| 190 // assumed to be sRGB. | 204 // assumed to be sRGB. |
| 191 const char kEnableMonitorProfile[] = "enable-monitor-profile"; | 205 const char kEnableMonitorProfile[] = "enable-monitor-profile"; |
| 192 | 206 |
| 207 // Enables TLS origin bound certificate extension. |
| 208 const char kEnableOriginBoundCerts[] = "enable-origin-bound-certs"; |
| 209 |
| 193 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407. | 210 // Enable caching of pre-parsed JS script data. See http://crbug.com/32407. |
| 194 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; | 211 const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; |
| 195 | 212 |
| 213 // Enables TLS cached info extension. |
| 214 const char kEnableSSLCachedInfo[] = "enable-ssl-cached-info"; |
| 215 |
| 196 // Cause the OS X sandbox write to syslog every time an access to a resource | 216 // Cause the OS X sandbox write to syslog every time an access to a resource |
| 197 // is denied by the sandbox. | 217 // is denied by the sandbox. |
| 198 const char kEnableSandboxLogging[] = "enable-sandbox-logging"; | 218 const char kEnableSandboxLogging[] = "enable-sandbox-logging"; |
| 199 | 219 |
| 200 // Enable the seccomp sandbox (Linux only) | 220 // Enable the seccomp sandbox (Linux only) |
| 201 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox"; | 221 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox"; |
| 202 | 222 |
| 203 // Enables StatsTable, logging statistics to a global named shared memory table. | 223 // Enables StatsTable, logging statistics to a global named shared memory table. |
| 204 const char kEnableStatsTable[] = "enable-stats-table"; | 224 const char kEnableStatsTable[] = "enable-stats-table"; |
| 205 | 225 |
| 226 // Enable use of experimental TCP sockets API for sending data in the |
| 227 // SYN packet. |
| 228 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen"; |
| 229 |
| 206 // Enables support for fullscreen video. Current implementation is | 230 // Enables support for fullscreen video. Current implementation is |
| 207 // incomplete and this flag is used for development and testing. | 231 // incomplete and this flag is used for development and testing. |
| 208 const char kEnableVideoFullscreen[] = "enable-video-fullscreen"; | 232 const char kEnableVideoFullscreen[] = "enable-video-fullscreen"; |
| 209 | 233 |
| 210 // Enables video logging where video elements log playback performance data to | 234 // Enables video logging where video elements log playback performance data to |
| 211 // the debug log. | 235 // the debug log. |
| 212 const char kEnableVideoLogging[] = "enable-video-logging"; | 236 const char kEnableVideoLogging[] = "enable-video-logging"; |
| 213 | 237 |
| 214 // Enable Web Intents. | 238 // Enable Web Intents. |
| 215 const char kEnableWebIntents[] = "enable-web-intents"; | 239 const char kEnableWebIntents[] = "enable-web-intents"; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 // Specify the amount the trackpad should scroll by. | 502 // Specify the amount the trackpad should scroll by. |
| 479 const char kScrollPixels[] = "scroll-pixels"; | 503 const char kScrollPixels[] = "scroll-pixels"; |
| 480 #endif | 504 #endif |
| 481 | 505 |
| 482 #if !defined(OFFICIAL_BUILD) | 506 #if !defined(OFFICIAL_BUILD) |
| 483 // Causes the renderer process to throw an assertion on launch. | 507 // Causes the renderer process to throw an assertion on launch. |
| 484 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; | 508 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; |
| 485 #endif | 509 #endif |
| 486 | 510 |
| 487 } // namespace switches | 511 } // namespace switches |
| OLD | NEW |