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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 // Returns the AppContainer SID for the specified sandboxed process type, or | 749 // Returns the AppContainer SID for the specified sandboxed process type, or |
750 // empty string if this sandboxed process type does not support living inside | 750 // empty string if this sandboxed process type does not support living inside |
751 // an AppContainer. | 751 // an AppContainer. |
752 virtual base::string16 GetAppContainerSidForSandboxType( | 752 virtual base::string16 GetAppContainerSidForSandboxType( |
753 int sandbox_type) const; | 753 int sandbox_type) const; |
754 | 754 |
755 // Returns whether the Win32k lockdown process mitigation should be applied to | 755 // Returns whether the Win32k lockdown process mitigation should be applied to |
756 // a process hosting a plugin with the specified |mime_type|. | 756 // a process hosting a plugin with the specified |mime_type|. |
757 virtual bool IsWin32kLockdownEnabledForMimeType( | 757 virtual bool IsWin32kLockdownEnabledForMimeType( |
758 const std::string& mime_type) const; | 758 const std::string& mime_type) const; |
| 759 |
| 760 // Returns true if processes should be launched with a /prefetch:# argument. |
| 761 // See the kPrefetchArgument* constants in content_switches.cc for details. |
| 762 virtual bool ShouldUseWindowsPrefetchArgument() const; |
759 #endif | 763 #endif |
760 | 764 |
761 #if defined(VIDEO_HOLE) | 765 #if defined(VIDEO_HOLE) |
762 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 766 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
763 // implementation. Return nullptr to disable external surface video. | 767 // implementation. Return nullptr to disable external surface video. |
764 virtual ExternalVideoSurfaceContainer* | 768 virtual ExternalVideoSurfaceContainer* |
765 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 769 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
766 #endif | 770 #endif |
767 }; | 771 }; |
768 | 772 |
769 } // namespace content | 773 } // namespace content |
770 | 774 |
771 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 775 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |