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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 158 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
159 // unload handlers on a page to prevent the tab from closing, but the Task | 159 // unload handlers on a page to prevent the tab from closing, but the Task |
160 // Manager can be used to terminate the offending process in this case. | 160 // Manager can be used to terminate the offending process in this case. |
161 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 161 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
162 | 162 |
163 // Disable the RenderThread's HistogramCustomizer. | 163 // Disable the RenderThread's HistogramCustomizer. |
164 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; | 164 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; |
165 | 165 |
166 // Paint content on the main thread instead of the compositor thread. | 166 // Paint content on the main thread instead of the compositor thread. |
167 // Overrides the kEnableImplSidePainting flag. | |
168 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; | 167 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
169 | 168 |
170 // Prevent Java from running. | 169 // Prevent Java from running. |
171 const char kDisableJava[] = "disable-java"; | 170 const char kDisableJava[] = "disable-java"; |
172 | 171 |
173 // Don't execute JavaScript (browser JS like the new tab page still runs). | 172 // Don't execute JavaScript (browser JS like the new tab page still runs). |
174 const char kDisableJavaScript[] = "disable-javascript"; | 173 const char kDisableJavaScript[] = "disable-javascript"; |
175 | 174 |
176 // Don't kill a child process when it sends a bad IPC message. Apart | 175 // Don't kill a child process when it sends a bad IPC message. Apart |
177 // from testing, it is a bad idea from a security perspective to enable | 176 // from testing, it is a bad idea from a security perspective to enable |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 // impl-side painting. | 351 // impl-side painting. |
353 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | 352 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; |
354 | 353 |
355 // When using CPU rasterizing generate low resolution tiling. Low res | 354 // When using CPU rasterizing generate low resolution tiling. Low res |
356 // tiles may be displayed during fast scrolls especially on slower devices. | 355 // tiles may be displayed during fast scrolls especially on slower devices. |
357 const char kEnableLowResTiling[] = "enable-low-res-tiling"; | 356 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
358 | 357 |
359 // Dynamically apply color profiles to web content images. | 358 // Dynamically apply color profiles to web content images. |
360 const char kEnableImageColorProfiles[] = "enable-image-color-profiles"; | 359 const char kEnableImageColorProfiles[] = "enable-image-color-profiles"; |
361 | 360 |
362 // Paint content on the compositor thread instead of the main thread. | |
363 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | |
364 | |
365 // Force logging to be enabled. Logging is disabled by default in release | 361 // Force logging to be enabled. Logging is disabled by default in release |
366 // builds. | 362 // builds. |
367 const char kEnableLogging[] = "enable-logging"; | 363 const char kEnableLogging[] = "enable-logging"; |
368 | 364 |
369 // Enables the memory benchmarking extension | 365 // Enables the memory benchmarking extension |
370 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; | 366 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; |
371 | 367 |
372 // Enables the network information API. | 368 // Enables the network information API. |
373 const char kEnableNetworkInformation[] = "enable-network-information"; | 369 const char kEnableNetworkInformation[] = "enable-network-information"; |
374 | 370 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 986 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
991 return false; | 987 return false; |
992 // Default. | 988 // Default. |
993 return group_name == "Enabled"; | 989 return group_name == "Enabled"; |
994 } | 990 } |
995 #endif | 991 #endif |
996 | 992 |
997 // Don't dump stuff here, follow the same order as the header. | 993 // Don't dump stuff here, follow the same order as the header. |
998 | 994 |
999 } // namespace switches | 995 } // namespace switches |
OLD | NEW |