| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; | 221 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; |
| 222 | 222 |
| 223 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 223 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
| 224 // unload handlers on a page to prevent the tab from closing, but the Task | 224 // unload handlers on a page to prevent the tab from closing, but the Task |
| 225 // Manager can be used to terminate the offending process in this case. | 225 // Manager can be used to terminate the offending process in this case. |
| 226 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 226 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
| 227 | 227 |
| 228 // Disable the RenderThread's HistogramCustomizer. | 228 // Disable the RenderThread's HistogramCustomizer. |
| 229 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; | 229 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; |
| 230 | 230 |
| 231 // Paint content on the main thread instead of the compositor thread. |
| 232 // Overrides the kEnableImplSidePainting flag. |
| 233 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
| 234 |
| 231 // Prevent Java from running. | 235 // Prevent Java from running. |
| 232 const char kDisableJava[] = "disable-java"; | 236 const char kDisableJava[] = "disable-java"; |
| 233 | 237 |
| 234 // Don't execute JavaScript (browser JS like the new tab page still runs). | 238 // Don't execute JavaScript (browser JS like the new tab page still runs). |
| 235 const char kDisableJavaScript[] = "disable-javascript"; | 239 const char kDisableJavaScript[] = "disable-javascript"; |
| 236 | 240 |
| 237 // Don't kill a child process when it sends a bad IPC message. Apart | 241 // Don't kill a child process when it sends a bad IPC message. Apart |
| 238 // from testing, it is a bad idea from a security perspective to enable | 242 // from testing, it is a bad idea from a security perspective to enable |
| 239 // this switch. | 243 // this switch. |
| 240 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; | 244 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; |
| 241 | 245 |
| 242 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). | 246 // Disables prefixed Encrypted Media API (e.g. webkitGenerateKeyRequest()). |
| 243 const char kDisablePrefixedEncryptedMedia[] = | 247 const char kDisablePrefixedEncryptedMedia[] = |
| 244 "disable-prefixed-encrypted-media"; | 248 "disable-prefixed-encrypted-media"; |
| 245 | 249 |
| 250 // Disables LCD text. |
| 251 const char kDisableLCDText[] = "disable-lcd-text"; |
| 252 |
| 246 // Disable LocalStorage. | 253 // Disable LocalStorage. |
| 247 const char kDisableLocalStorage[] = "disable-local-storage"; | 254 const char kDisableLocalStorage[] = "disable-local-storage"; |
| 248 | 255 |
| 249 // Force logging to be disabled. Logging is enabled by default in debug | 256 // Force logging to be disabled. Logging is enabled by default in debug |
| 250 // builds. | 257 // builds. |
| 251 const char kDisableLogging[] = "disable-logging"; | 258 const char kDisableLogging[] = "disable-logging"; |
| 252 | 259 |
| 260 // Disable rasterizer that writes directly to GPU memory. |
| 261 // Overrides the kEnableMapImage flag. |
| 262 const char kDisableMapImage[] = "disable-map-image"; |
| 263 |
| 253 // Disables overlay scrollbars on Aura or Linux. Does nothing on Mac. | 264 // Disables overlay scrollbars on Aura or Linux. Does nothing on Mac. |
| 254 const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar"; | 265 const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar"; |
| 255 | 266 |
| 256 // Disable Pepper3D. | 267 // Disable Pepper3D. |
| 257 const char kDisablePepper3d[] = "disable-pepper-3d"; | 268 const char kDisablePepper3d[] = "disable-pepper-3d"; |
| 258 | 269 |
| 259 // Disables compositor-accelerated touch-screen pinch gestures. | 270 // Disables compositor-accelerated touch-screen pinch gestures. |
| 260 const char kDisablePinch[] = "disable-pinch"; | 271 const char kDisablePinch[] = "disable-pinch"; |
| 261 | 272 |
| 262 // Prevent plugins from running. | 273 // Prevent plugins from running. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // Enables accelerated compositing for backgrounds of root layers with | 362 // Enables accelerated compositing for backgrounds of root layers with |
| 352 // background-attachment: fixed. Requires kForceCompositingMode. | 363 // background-attachment: fixed. Requires kForceCompositingMode. |
| 353 const char kEnableAcceleratedFixedRootBackground[] = | 364 const char kEnableAcceleratedFixedRootBackground[] = |
| 354 "enable-accelerated-fixed-root-background"; | 365 "enable-accelerated-fixed-root-background"; |
| 355 | 366 |
| 356 // Enables accelerated compositing for overflow scroll. Promotes eligible | 367 // Enables accelerated compositing for overflow scroll. Promotes eligible |
| 357 // overflow:scroll elements to layers to enable accelerated scrolling for them. | 368 // overflow:scroll elements to layers to enable accelerated scrolling for them. |
| 358 const char kEnableAcceleratedOverflowScroll[] = | 369 const char kEnableAcceleratedOverflowScroll[] = |
| 359 "enable-accelerated-overflow-scroll"; | 370 "enable-accelerated-overflow-scroll"; |
| 360 | 371 |
| 372 // Enables LCD text. |
| 373 const char kEnableLCDText[] = "enable-lcd-text"; |
| 374 |
| 361 // Enables experimental feature that maps multiple RenderLayers to | 375 // Enables experimental feature that maps multiple RenderLayers to |
| 362 // one composited layer to avoid pathological layer counts. | 376 // one composited layer to avoid pathological layer counts. |
| 363 const char kEnableLayerSquashing[] = | 377 const char kEnableLayerSquashing[] = |
| 364 "enable-layer-squashing"; | 378 "enable-layer-squashing"; |
| 365 | 379 |
| 366 // Enables accelerated compositing for scrollable frames for accelerated | 380 // Enables accelerated compositing for scrollable frames for accelerated |
| 367 // scrolling for them. Requires kForceCompositingMode. | 381 // scrolling for them. Requires kForceCompositingMode. |
| 368 const char kEnableAcceleratedScrollableFrames[] = | 382 const char kEnableAcceleratedScrollableFrames[] = |
| 369 "enable-accelerated-scrollable-frames"; | 383 "enable-accelerated-scrollable-frames"; |
| 370 | 384 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 // Enables the DirectWrite font rendering system on windows. | 474 // Enables the DirectWrite font rendering system on windows. |
| 461 const char kEnableDirectWrite[] = "enable-direct-write"; | 475 const char kEnableDirectWrite[] = "enable-direct-write"; |
| 462 | 476 |
| 463 // Use high resolution timers for TimeTicks. | 477 // Use high resolution timers for TimeTicks. |
| 464 const char kEnableHighResolutionTime[] = "enable-high-resolution-time"; | 478 const char kEnableHighResolutionTime[] = "enable-high-resolution-time"; |
| 465 #endif | 479 #endif |
| 466 | 480 |
| 467 // Enable HTML Imports | 481 // Enable HTML Imports |
| 468 extern const char kEnableHTMLImports[] = "enable-html-imports"; | 482 extern const char kEnableHTMLImports[] = "enable-html-imports"; |
| 469 | 483 |
| 484 // Paint content on the compositor thread instead of the main thread. |
| 485 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
| 486 |
| 470 // Enables support for inband text tracks in media content. | 487 // Enables support for inband text tracks in media content. |
| 471 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; | 488 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; |
| 472 | 489 |
| 473 // Force logging to be enabled. Logging is disabled by default in release | 490 // Force logging to be enabled. Logging is disabled by default in release |
| 474 // builds. | 491 // builds. |
| 475 const char kEnableLogging[] = "enable-logging"; | 492 const char kEnableLogging[] = "enable-logging"; |
| 476 | 493 |
| 494 // Enable rasterizer that writes directly to GPU memory. |
| 495 const char kEnableMapImage[] = "enable-map-image"; |
| 496 |
| 477 // Enables the memory benchmarking extension | 497 // Enables the memory benchmarking extension |
| 478 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; | 498 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; |
| 479 | 499 |
| 480 // On Windows, converts the page to the currently-installed monitor profile. | 500 // On Windows, converts the page to the currently-installed monitor profile. |
| 481 // This does NOT enable color management for images. The source is still | 501 // This does NOT enable color management for images. The source is still |
| 482 // assumed to be sRGB. | 502 // assumed to be sRGB. |
| 483 const char kEnableMonitorProfile[] = "enable-monitor-profile"; | 503 const char kEnableMonitorProfile[] = "enable-monitor-profile"; |
| 484 | 504 |
| 485 // Enables use of cache if offline, even if it's stale | 505 // Enables use of cache if offline, even if it's stale |
| 486 const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; | 506 const char kEnableOfflineCacheAccess[] = "enable-offline-cache-access"; |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own | 778 // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own |
| 759 // renderer process. We default to using a renderer process for each | 779 // renderer process. We default to using a renderer process for each |
| 760 // site instance (i.e., group of pages from the same registered domain with | 780 // site instance (i.e., group of pages from the same registered domain with |
| 761 // script connections to each other). | 781 // script connections to each other). |
| 762 const char kProcessPerTab[] = "process-per-tab"; | 782 const char kProcessPerTab[] = "process-per-tab"; |
| 763 | 783 |
| 764 // The value of this switch determines whether the process is started as a | 784 // The value of this switch determines whether the process is started as a |
| 765 // renderer or plugin host. If it's empty, it's the browser. | 785 // renderer or plugin host. If it's empty, it's the browser. |
| 766 const char kProcessType[] = "type"; | 786 const char kProcessType[] = "type"; |
| 767 | 787 |
| 788 // Select the location used for drawing layer tiles. Allowed values are |
| 789 // 'cpu' (rasterize on the CPU only), 'gpu' (always use the Skia GPU backend |
| 790 // for rasterization), and 'hybrid' (use hints and heuristics to determine |
| 791 // when to rasterize using the Skia GPU backend). |
| 792 const char kRasterizationSite[] = "rasterization-site"; |
| 793 |
| 768 // Enables more web features over insecure connections. Designed to be used | 794 // Enables more web features over insecure connections. Designed to be used |
| 769 // for testing purposes only. | 795 // for testing purposes only. |
| 770 const char kReduceSecurityForTesting[] = "reduce-security-for-testing"; | 796 const char kReduceSecurityForTesting[] = "reduce-security-for-testing"; |
| 771 | 797 |
| 772 // Register Pepper plugins (see pepper_plugin_list.cc for its format). | 798 // Register Pepper plugins (see pepper_plugin_list.cc for its format). |
| 773 const char kRegisterPepperPlugins[] = "register-pepper-plugins"; | 799 const char kRegisterPepperPlugins[] = "register-pepper-plugins"; |
| 774 | 800 |
| 775 // Enables remote debug over HTTP on the specified port. | 801 // Enables remote debug over HTTP on the specified port. |
| 776 const char kRemoteDebuggingPort[] = "remote-debugging-port"; | 802 const char kRemoteDebuggingPort[] = "remote-debugging-port"; |
| 777 | 803 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 #endif | 1078 #endif |
| 1053 | 1079 |
| 1054 #if defined(OS_POSIX) | 1080 #if defined(OS_POSIX) |
| 1055 // Causes the child processes to cleanly exit via calling exit(). | 1081 // Causes the child processes to cleanly exit via calling exit(). |
| 1056 const char kChildCleanExit[] = "child-clean-exit"; | 1082 const char kChildCleanExit[] = "child-clean-exit"; |
| 1057 #endif | 1083 #endif |
| 1058 | 1084 |
| 1059 // Don't dump stuff here, follow the same order as the header. | 1085 // Don't dump stuff here, follow the same order as the header. |
| 1060 | 1086 |
| 1061 } // namespace switches | 1087 } // namespace switches |
| OLD | NEW |