OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 #ifndef CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_ | 5 #ifndef CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_ |
6 #define CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_ | 6 #define CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_ |
7 | 7 |
8 #include "content/public/common/web_preferences.h" | 8 #include "content/public/common/web_preferences.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 bool IsPinchToZoomEnabled(); | 12 bool IsPinchToZoomEnabled(); |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 // Disables Win32k Renderer lockdown for any future renderer child processes. | 14 // Disables Win32k Renderer lockdown for any future renderer child processes. |
15 void DisableWin32kRendererLockdown(); | 15 void DisableWin32kRendererLockdown(); |
16 | 16 |
17 // Returns whether Win32k Renderer lockdown is enabled or not. | 17 // Returns whether Win32k Renderer lockdown is enabled or not. |
18 bool IsWin32kRendererLockdownEnabled(); | 18 bool IsWin32kRendererLockdownEnabled(); |
| 19 // Returns whether Win32k PPAPI lockdown is enabled for a specific mime type. |
| 20 bool IsWin32kLockdownEnabledForMimeType(const std::string& mime_type); |
19 #endif | 21 #endif |
20 V8CacheOptions GetV8CacheOptions(); | 22 V8CacheOptions GetV8CacheOptions(); |
21 | 23 |
22 } // namespace content | 24 } // namespace content |
23 | 25 |
24 #endif // CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_ | 26 #endif // CONTENT_COMMON_CONTENT_SWITCHES_INTERNAL_H_ |
OLD | NEW |