Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 1609133002: Change Win32k PPAPI lockdown to use finch params for mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review changes Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 // This is called on the PROCESS_LAUNCHER thread before the renderer process 744 // This is called on the PROCESS_LAUNCHER thread before the renderer process
745 // is launched. It gives the embedder a chance to add loosen the sandbox 745 // is launched. It gives the embedder a chance to add loosen the sandbox
746 // policy. 746 // policy.
747 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy); 747 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy);
748 748
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
755 // Returns whether the Win32k lockdown process mitigation should be applied to
756 // a process hosting a plugin with the specified |mime_type|.
757 virtual bool IsWin32kLockdownEnabledForMimeType(
758 const std::string& mime_type) const;
754 #endif 759 #endif
755 760
756 #if defined(VIDEO_HOLE) 761 #if defined(VIDEO_HOLE)
757 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 762 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
758 // implementation. Return nullptr to disable external surface video. 763 // implementation. Return nullptr to disable external surface video.
759 virtual ExternalVideoSurfaceContainer* 764 virtual ExternalVideoSurfaceContainer*
760 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 765 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
761 #endif 766 #endif
762 }; 767 };
763 768
764 } // namespace content 769 } // namespace content
765 770
766 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 771 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/content_switches_internal.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698