| 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. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run | 23 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run |
| 24 // as a dependent process of the Chrome Frame plugin. | 24 // as a dependent process of the Chrome Frame plugin. |
| 25 const char kChromeFrame[] = "chrome-frame"; | 25 const char kChromeFrame[] = "chrome-frame"; |
| 26 | 26 |
| 27 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 27 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
| 28 // This is controlled by policy and is kept separate from the other | 28 // This is controlled by policy and is kept separate from the other |
| 29 // enable/disable switches to avoid accidentally regressing the policy | 29 // enable/disable switches to avoid accidentally regressing the policy |
| 30 // support for controlling access to these APIs. | 30 // support for controlling access to these APIs. |
| 31 const char kDisable3DAPIs[] = "disable-3d-apis"; | 31 const char kDisable3DAPIs[] = "disable-3d-apis"; |
| 32 | 32 |
| 33 // Disable gpu-accelerated 2d canvas. |
| 34 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; |
| 35 |
| 33 // Disables accelerated compositing. | 36 // Disables accelerated compositing. |
| 34 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; | 37 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; |
| 35 | 38 |
| 39 // Disables the hardware acceleration of 3D CSS and animation. |
| 40 const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; |
| 41 |
| 42 // Disables GPU accelerated video display. |
| 43 const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; |
| 44 |
| 36 // Disables the alternate window station for the renderer. | 45 // Disables the alternate window station for the renderer. |
| 37 const char kDisableAltWinstation[] = "disable-winsta"; | 46 const char kDisableAltWinstation[] = "disable-winsta"; |
| 38 | 47 |
| 39 // Disable the ApplicationCache. | 48 // Disable the ApplicationCache. |
| 40 const char kDisableApplicationCache[] = "disable-application-cache"; | 49 const char kDisableApplicationCache[] = "disable-application-cache"; |
| 41 // | 50 // |
| 42 // TODO(scherkus): remove --disable-audio when we have a proper fallback | 51 // TODO(scherkus): remove --disable-audio when we have a proper fallback |
| 43 // mechanism. | 52 // mechanism. |
| 44 const char kDisableAudio[] = "disable-audio"; | 53 const char kDisableAudio[] = "disable-audio"; |
| 45 | 54 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 70 | 79 |
| 71 // Disable GL multisampling. | 80 // Disable GL multisampling. |
| 72 const char kDisableGLMultisampling[] = "disable-gl-multisampling"; | 81 const char kDisableGLMultisampling[] = "disable-gl-multisampling"; |
| 73 | 82 |
| 74 // Disable the GLSL translator. | 83 // Disable the GLSL translator. |
| 75 const char kDisableGLSLTranslator[] = "disable-glsl-translator"; | 84 const char kDisableGLSLTranslator[] = "disable-glsl-translator"; |
| 76 | 85 |
| 77 // Disable the GPU process sandbox. | 86 // Disable the GPU process sandbox. |
| 78 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; | 87 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; |
| 79 | 88 |
| 89 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
| 90 // unload handlers on a page to prevent the tab from closing, but the Task |
| 91 // Manager can be used to terminate the offending process in this case. |
| 92 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
| 93 |
| 80 // Disable the thread that crashes the GPU process if it stops responding to | 94 // Disable the thread that crashes the GPU process if it stops responding to |
| 81 // messages. | 95 // messages. |
| 82 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; | 96 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; |
| 83 | 97 |
| 84 // Disable the Indexed Database API. | 98 // Disable the Indexed Database API. |
| 85 const char kDisableIndexedDatabase[] = "disable-indexed-database"; | 99 const char kDisableIndexedDatabase[] = "disable-indexed-database"; |
| 86 | 100 |
| 87 // Prevent Java from running. | 101 // Prevent Java from running. |
| 88 const char kDisableJava[] = "disable-java"; | 102 const char kDisableJava[] = "disable-java"; |
| 89 | 103 |
| 90 // Don't execute JavaScript (browser JS like the new tab page still runs). | 104 // Don't execute JavaScript (browser JS like the new tab page still runs). |
| 91 const char kDisableJavaScript[] = "disable-javascript"; | 105 const char kDisableJavaScript[] = "disable-javascript"; |
| 92 | 106 |
| 93 // Disable JavaScript I18N API. | 107 // Disable JavaScript I18N API. |
| 94 const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; | 108 const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; |
| 95 | 109 |
| 96 // Disable LocalStorage. | 110 // Disable LocalStorage. |
| 97 const char kDisableLocalStorage[] = "disable-local-storage"; | 111 const char kDisableLocalStorage[] = "disable-local-storage"; |
| 98 | 112 |
| 99 // Force logging to be disabled. Logging is enabled by default in debug | 113 // Force logging to be disabled. Logging is enabled by default in debug |
| 100 // builds. | 114 // builds. |
| 101 const char kDisableLogging[] = "disable-logging"; | 115 const char kDisableLogging[] = "disable-logging"; |
| 102 | 116 |
| 103 // Prevent plugins from running. | 117 // Prevent plugins from running. |
| 104 const char kDisablePlugins[] = "disable-plugins"; | 118 const char kDisablePlugins[] = "disable-plugins"; |
| 105 | 119 |
| 106 // Disable pop-up blocking. | 120 // Disable pop-up blocking. |
| 107 const char kDisablePopupBlocking[] = "disable-popup-blocking"; | 121 const char kDisablePopupBlocking[] = "disable-popup-blocking"; |
| 108 | 122 |
| 123 // Turns off the accessibility in the renderer. |
| 124 const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; |
| 125 |
| 109 // Disable the seccomp sandbox (Linux only) | 126 // Disable the seccomp sandbox (Linux only) |
| 110 const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; | 127 const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; |
| 111 | 128 |
| 112 // Disable session storage. | 129 // Disable session storage. |
| 113 const char kDisableSessionStorage[] = "disable-session-storage"; | 130 const char kDisableSessionStorage[] = "disable-session-storage"; |
| 114 | 131 |
| 115 // Enable shared workers. Functionality not yet complete. | 132 // Enable shared workers. Functionality not yet complete. |
| 116 const char kDisableSharedWorkers[] = "disable-shared-workers"; | 133 const char kDisableSharedWorkers[] = "disable-shared-workers"; |
| 117 | 134 |
| 118 // Disables speech input. | 135 // Disables speech input. |
| 119 const char kDisableSpeechInput[] = "disable-speech-input"; | 136 const char kDisableSpeechInput[] = "disable-speech-input"; |
| 120 | 137 |
| 121 // Disable Spellcheck API. | 138 // Disable Spellcheck API. |
| 122 const char kDisableSpellcheckAPI[] = "disable-spellcheck-api"; | 139 const char kDisableSpellcheckAPI[] = "disable-spellcheck-api"; |
| 123 | 140 |
| 124 // Disable Web Sockets support. | 141 // Disable Web Sockets support. |
| 125 const char kDisableWebSockets[] = "disable-web-sockets"; | 142 const char kDisableWebSockets[] = "disable-web-sockets"; |
| 126 | 143 |
| 144 // Enable gpu-accelerated 2d canvas. |
| 145 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; |
| 146 |
| 127 // Enable hardware accelerated page drawing. | 147 // Enable hardware accelerated page drawing. |
| 128 // Please note that this flag is honored only if chromium is compiled with | 148 // Please note that this flag is honored only if chromium is compiled with |
| 129 // SKIA_GPU flag, which can be enabled by setting use_skia_gpu variable to 1 | 149 // SKIA_GPU flag, which can be enabled by setting use_skia_gpu variable to 1 |
| 130 // in build/features_override.gypi. | 150 // in build/features_override.gypi. |
| 131 const char kEnableAcceleratedDrawing[] = "enable-accelerated-drawing"; | 151 const char kEnableAcceleratedDrawing[] = "enable-accelerated-drawing"; |
| 132 | 152 |
| 153 // Enables the hardware acceleration of plugins. |
| 154 const char kEnableAcceleratedPlugins[] = "enable-accelerated-plugins"; |
| 155 |
| 133 // Enables WebKit accessibility within the renderer process. | 156 // Enables WebKit accessibility within the renderer process. |
| 134 const char kEnableAccessibility[] = "enable-accessibility"; | 157 const char kEnableAccessibility[] = "enable-accessibility"; |
| 135 | 158 |
| 136 // Enables the benchmarking extensions. | 159 // Enables the benchmarking extensions. |
| 137 const char kEnableBenchmarking[] = "enable-benchmarking"; | 160 const char kEnableBenchmarking[] = "enable-benchmarking"; |
| 138 | 161 |
| 139 // Enables device motion events. | 162 // Enables device motion events. |
| 140 const char kEnableDeviceMotion[] = "enable-device-motion"; | 163 const char kEnableDeviceMotion[] = "enable-device-motion"; |
| 141 | 164 |
| 142 // Enable the GPU plugin and Pepper 3D rendering. | 165 // Enable the GPU plugin and Pepper 3D rendering. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // to modify histograms recorded in the renderer, or to get the renderer to | 216 // to modify histograms recorded in the renderer, or to get the renderer to |
| 194 // also set of its state (initialize, or not initialize components) to match the | 217 // also set of its state (initialize, or not initialize components) to match the |
| 195 // experiment(s). | 218 // experiment(s). |
| 196 // The argument is a string-ized list of experiment names, and the associated | 219 // The argument is a string-ized list of experiment names, and the associated |
| 197 // value that was randomly selected. In the recent implementetaion, the | 220 // value that was randomly selected. In the recent implementetaion, the |
| 198 // persistent representation generated by field_trial.cc and later decoded, is a | 221 // persistent representation generated by field_trial.cc and later decoded, is a |
| 199 // list of name and value pairs, separated by slashes. See field trial.cc for | 222 // list of name and value pairs, separated by slashes. See field trial.cc for |
| 200 // current details. | 223 // current details. |
| 201 const char kForceFieldTestNameAndValue[] = "force-fieldtest"; | 224 const char kForceFieldTestNameAndValue[] = "force-fieldtest"; |
| 202 | 225 |
| 226 // Force renderer accessibility to be on instead of enabling it on demand when |
| 227 // a screen reader is detected. The disable-renderer-accessibility switch |
| 228 // overrides this if present. |
| 229 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; |
| 230 |
| 203 // Extra command line options for launching the GPU process (normally used | 231 // Extra command line options for launching the GPU process (normally used |
| 204 // for debugging). Use like renderer-cmd-prefix. | 232 // for debugging). Use like renderer-cmd-prefix. |
| 205 const char kGpuLauncher[] = "gpu-launcher"; | 233 const char kGpuLauncher[] = "gpu-launcher"; |
| 206 | 234 |
| 207 // Makes this process a GPU sub-process. | 235 // Makes this process a GPU sub-process. |
| 208 const char kGpuProcess[] = "gpu-process"; | 236 const char kGpuProcess[] = "gpu-process"; |
| 209 | 237 |
| 210 // Causes the GPU process to display a dialog on launch. | 238 // Causes the GPU process to display a dialog on launch. |
| 211 const char kGpuStartupDialog[] = "gpu-startup-dialog"; | 239 const char kGpuStartupDialog[] = "gpu-startup-dialog"; |
| 212 | 240 |
| 241 // Ignores GPU blacklist. |
| 242 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist"; |
| 243 |
| 213 // Run the GPU process as a thread in the browser process. | 244 // Run the GPU process as a thread in the browser process. |
| 214 const char kInProcessGPU[] = "in-process-gpu"; | 245 const char kInProcessGPU[] = "in-process-gpu"; |
| 215 | 246 |
| 216 // Runs plugins inside the renderer process | 247 // Runs plugins inside the renderer process |
| 217 const char kInProcessPlugins[] = "in-process-plugins"; | 248 const char kInProcessPlugins[] = "in-process-plugins"; |
| 218 | 249 |
| 219 // Runs WebGL inside the renderer process. | 250 // Runs WebGL inside the renderer process. |
| 220 const char kInProcessWebGL[] = "in-process-webgl"; | 251 const char kInProcessWebGL[] = "in-process-webgl"; |
| 221 | 252 |
| 222 // Specifies the flags passed to JS engine | 253 // Specifies the flags passed to JS engine |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 // Enable Pepper and JavaScript P2P API. | 459 // Enable Pepper and JavaScript P2P API. |
| 429 const char kEnableP2PApi[] = "enable-p2papi"; | 460 const char kEnableP2PApi[] = "enable-p2papi"; |
| 430 #endif | 461 #endif |
| 431 | 462 |
| 432 #if !defined(OFFICIAL_BUILD) | 463 #if !defined(OFFICIAL_BUILD) |
| 433 // Causes the renderer process to throw an assertion on launch. | 464 // Causes the renderer process to throw an assertion on launch. |
| 434 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; | 465 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; |
| 435 #endif | 466 #endif |
| 436 | 467 |
| 437 } // namespace switches | 468 } // namespace switches |
| OLD | NEW |