| 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 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 155 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
| 156 // unload handlers on a page to prevent the tab from closing, but the Task | 156 // unload handlers on a page to prevent the tab from closing, but the Task |
| 157 // Manager can be used to terminate the offending process in this case. | 157 // Manager can be used to terminate the offending process in this case. |
| 158 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 158 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
| 159 | 159 |
| 160 // Disable the RenderThread's HistogramCustomizer. | 160 // Disable the RenderThread's HistogramCustomizer. |
| 161 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; | 161 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; |
| 162 | 162 |
| 163 // Paint content on the main thread instead of the compositor thread. | 163 // Paint content on the main thread instead of the compositor thread. |
| 164 // Overrides the kEnableImplSidePainting flag. |
| 164 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; | 165 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
| 165 | 166 |
| 166 // Prevent Java from running. | 167 // Prevent Java from running. |
| 167 const char kDisableJava[] = "disable-java"; | 168 const char kDisableJava[] = "disable-java"; |
| 168 | 169 |
| 169 // Don't kill a child process when it sends a bad IPC message. Apart | 170 // Don't kill a child process when it sends a bad IPC message. Apart |
| 170 // from testing, it is a bad idea from a security perspective to enable | 171 // from testing, it is a bad idea from a security perspective to enable |
| 171 // this switch. | 172 // this switch. |
| 172 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; | 173 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; |
| 173 | 174 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // impl-side painting. | 338 // impl-side painting. |
| 338 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | 339 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; |
| 339 | 340 |
| 340 // When using CPU rasterizing generate low resolution tiling. Low res | 341 // When using CPU rasterizing generate low resolution tiling. Low res |
| 341 // tiles may be displayed during fast scrolls especially on slower devices. | 342 // tiles may be displayed during fast scrolls especially on slower devices. |
| 342 const char kEnableLowResTiling[] = "enable-low-res-tiling"; | 343 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
| 343 | 344 |
| 344 // Dynamically apply color profiles to web content images. | 345 // Dynamically apply color profiles to web content images. |
| 345 const char kEnableImageColorProfiles[] = "enable-image-color-profiles"; | 346 const char kEnableImageColorProfiles[] = "enable-image-color-profiles"; |
| 346 | 347 |
| 348 // Paint content on the compositor thread instead of the main thread. |
| 349 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
| 350 |
| 347 // Force logging to be enabled. Logging is disabled by default in release | 351 // Force logging to be enabled. Logging is disabled by default in release |
| 348 // builds. | 352 // builds. |
| 349 const char kEnableLogging[] = "enable-logging"; | 353 const char kEnableLogging[] = "enable-logging"; |
| 350 | 354 |
| 351 // Enables the memory benchmarking extension | 355 // Enables the memory benchmarking extension |
| 352 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; | 356 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; |
| 353 | 357 |
| 354 // Enables the network information API. | 358 // Enables the network information API. |
| 355 const char kEnableNetworkInformation[] = "enable-network-information"; | 359 const char kEnableNetworkInformation[] = "enable-network-information"; |
| 356 | 360 |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 976 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
| 973 return false; | 977 return false; |
| 974 // Default. | 978 // Default. |
| 975 return group_name == "Enabled"; | 979 return group_name == "Enabled"; |
| 976 } | 980 } |
| 977 #endif | 981 #endif |
| 978 | 982 |
| 979 // Don't dump stuff here, follow the same order as the header. | 983 // Don't dump stuff here, follow the same order as the header. |
| 980 | 984 |
| 981 } // namespace switches | 985 } // namespace switches |
| OLD | NEW |