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

Unified Diff: content/common/content_client.h

Issue 7084010: Move sandbox_policy to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/common/content_client.h
===================================================================
--- content/common/content_client.h (revision 87093)
+++ content/common/content_client.h (working copy)
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "build/build_config.h"
+class CommandLine;
class GURL;
struct GPUInfo;
struct PepperPluginInfo;
@@ -19,6 +20,10 @@
class Message;
}
+namespace sandbox {
+class TargetPolicy;
+}
+
namespace content {
class ContentBrowserClient;
@@ -61,6 +66,12 @@
// behalf of a swapped out renderer.
virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg);
+#if defined(OS_WIN)
+ // Allows the embedder to sandbox a plugin, and apply a custom policy.
+ virtual bool SandboxPlugin(CommandLine* command_line,
+ sandbox::TargetPolicy* policy);
+#endif
+
private:
// The embedder API for participating in browser logic.
ContentBrowserClient* browser_;

Powered by Google App Engine
This is Rietveld 408576698