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 // Defines all the "content" command-line switches. | 5 // Defines all the "content" command-line switches. |
6 | 6 |
7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_ | 7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_ |
8 #define CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_ | 8 #define CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_ |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // like renderers, etc. | 281 // like renderers, etc. |
282 CONTENT_EXPORT extern const char kDeviceScaleFactor[]; | 282 CONTENT_EXPORT extern const char kDeviceScaleFactor[]; |
283 CONTENT_EXPORT extern const char kDisableLegacyIntermediateWindow[]; | 283 CONTENT_EXPORT extern const char kDisableLegacyIntermediateWindow[]; |
284 // This switch will be removed when we enable the win32K lockdown process | 284 // This switch will be removed when we enable the win32K lockdown process |
285 // mitigation. | 285 // mitigation. |
286 CONTENT_EXPORT extern const char kDisableWin32kRendererLockDown[]; | 286 CONTENT_EXPORT extern const char kDisableWin32kRendererLockDown[]; |
287 CONTENT_EXPORT extern const char kEnableWin32kRendererLockDown[]; | 287 CONTENT_EXPORT extern const char kEnableWin32kRendererLockDown[]; |
288 // Switch to uniquely identify names shared memory section for font cache | 288 // Switch to uniquely identify names shared memory section for font cache |
289 // across chromium flavors. | 289 // across chromium flavors. |
290 CONTENT_EXPORT extern const char kFontCacheSharedMemSuffix[]; | 290 CONTENT_EXPORT extern const char kFontCacheSharedMemSuffix[]; |
291 CONTENT_EXPORT bool IsWin32kRendererLockdownEnabled(); | 291 // Returns whether Win32k renderer lockdown is enabled, either by field trial |
| 292 // or by flags. Win32k renderer lockdown requires directwrite to be enabled, so |
| 293 // this function will return false if directwrite is disabled by flags, unless |
| 294 // |ignore_directwrite| is set to true. |
| 295 CONTENT_EXPORT bool IsWin32kRendererLockdownEnabled(bool ignore_directwrite); |
292 #endif | 296 #endif |
293 | 297 |
294 #if defined(ENABLE_PLUGINS) | 298 #if defined(ENABLE_PLUGINS) |
295 CONTENT_EXPORT extern const char kEnablePluginPowerSaver[]; | 299 CONTENT_EXPORT extern const char kEnablePluginPowerSaver[]; |
296 #endif | 300 #endif |
297 | 301 |
298 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 302 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
299 // alphabetical order, or in one of the ifdefs (also in order in each section). | 303 // alphabetical order, or in one of the ifdefs (also in order in each section). |
300 | 304 |
301 } // namespace switches | 305 } // namespace switches |
302 | 306 |
303 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_ | 307 #endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCHES_H_ |
OLD | NEW |