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