| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/common/content_switches.h" | 5 #include "content/public/common/content_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Disable LocalStorage. | 198 // Disable LocalStorage. |
| 199 const char kDisableLocalStorage[] = "disable-local-storage"; | 199 const char kDisableLocalStorage[] = "disable-local-storage"; |
| 200 | 200 |
| 201 // Force logging to be disabled. Logging is enabled by default in debug | 201 // Force logging to be disabled. Logging is enabled by default in debug |
| 202 // builds. | 202 // builds. |
| 203 const char kDisableLogging[] = "disable-logging"; | 203 const char kDisableLogging[] = "disable-logging"; |
| 204 | 204 |
| 205 // Disables Media Source API (i.e., the MediaSource object). | 205 // Disables Media Source API (i.e., the MediaSource object). |
| 206 const char kDisableMediaSource[] = "disable-media-source"; | 206 const char kDisableMediaSource[] = "disable-media-source"; |
| 207 | 207 |
| 208 // Disable rasterizer that writes directly to GPU memory. |
| 209 // Overrides the kEnableOneCopy flag. |
| 210 const char kDisableOneCopy[] = "disable-one-copy"; |
| 211 |
| 208 // Disable Pepper3D. | 212 // Disable Pepper3D. |
| 209 const char kDisablePepper3d[] = "disable-pepper-3d"; | 213 const char kDisablePepper3d[] = "disable-pepper-3d"; |
| 210 | 214 |
| 211 // Disables compositor-accelerated touch-screen pinch gestures. | 215 // Disables compositor-accelerated touch-screen pinch gestures. |
| 212 const char kDisablePinch[] = "disable-pinch"; | 216 const char kDisablePinch[] = "disable-pinch"; |
| 213 | 217 |
| 214 // Prevent plugins from running. | 218 // Prevent plugins from running. |
| 215 const char kDisablePlugins[] = "disable-plugins"; | 219 const char kDisablePlugins[] = "disable-plugins"; |
| 216 | 220 |
| 217 // Disable discovering third-party plug-ins. Effectively loading only | 221 // Disable discovering third-party plug-ins. Effectively loading only |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 268 |
| 265 // Don't enforce the same-origin policy. (Used by people testing their sites.) | 269 // Don't enforce the same-origin policy. (Used by people testing their sites.) |
| 266 const char kDisableWebSecurity[] = "disable-web-security"; | 270 const char kDisableWebSecurity[] = "disable-web-security"; |
| 267 | 271 |
| 268 // Disables support for XSLT. | 272 // Disables support for XSLT. |
| 269 const char kDisableXSLT[] = "disable-xslt"; | 273 const char kDisableXSLT[] = "disable-xslt"; |
| 270 | 274 |
| 271 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS. | 275 // Disables Blink's XSSAuditor. The XSSAuditor mitigates reflective XSS. |
| 272 const char kDisableXSSAuditor[] = "disable-xss-auditor"; | 276 const char kDisableXSSAuditor[] = "disable-xss-auditor"; |
| 273 | 277 |
| 274 // Disable rasterizer that writes directly to GPU memory associated with tiles. | |
| 275 // Overrides the kEnableZeroCopy flag. | |
| 276 const char kDisableZeroCopy[] = "disable-zero-copy"; | |
| 277 | |
| 278 // Specifies if the |DOMAutomationController| needs to be bound in the | 278 // Specifies if the |DOMAutomationController| needs to be bound in the |
| 279 // renderer. This binding happens on per-frame basis and hence can potentially | 279 // renderer. This binding happens on per-frame basis and hence can potentially |
| 280 // be a performance bottleneck. One should only enable it when automating dom | 280 // be a performance bottleneck. One should only enable it when automating dom |
| 281 // based tests. | 281 // based tests. |
| 282 const char kDomAutomationController[] = "dom-automation"; | 282 const char kDomAutomationController[] = "dom-automation"; |
| 283 | 283 |
| 284 // Enable antialiasing on 2d canvas clips (as opposed to draw operations) | 284 // Enable antialiasing on 2d canvas clips (as opposed to draw operations) |
| 285 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa"; | 285 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa"; |
| 286 | 286 |
| 287 // Enable partially decoding jpeg images using the GPU. | 287 // Enable partially decoding jpeg images using the GPU. |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 #endif | 971 #endif |
| 972 | 972 |
| 973 #if defined(ENABLE_PLUGINS) | 973 #if defined(ENABLE_PLUGINS) |
| 974 // Enables the plugin power saver feature. | 974 // Enables the plugin power saver feature. |
| 975 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; | 975 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; |
| 976 #endif | 976 #endif |
| 977 | 977 |
| 978 // Don't dump stuff here, follow the same order as the header. | 978 // Don't dump stuff here, follow the same order as the header. |
| 979 | 979 |
| 980 } // namespace switches | 980 } // namespace switches |
| OLD | NEW |