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

Unified Diff: content/public/common/content_client.h

Issue 8589001: Load mac sandbox definitions from resources instead of the bundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 1 month 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
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index 840e37067174e82b814263e737edb65b7504e61c..f984b47f409945116fe2a0f19ab0b6c4452b4c9f 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -114,6 +114,19 @@ class CONTENT_EXPORT ContentClient {
sandbox::TargetPolicy* policy) = 0;
#endif
+#if defined(OS_MACOSX)
+ // Allows the embedder to define a new |sandbox_type| by mapping it to the
+ // resource ID corresponding to the sandbox profile to use. The legal values
+ // for |sandbox_type| are defined by the embedder and should start with
+ // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox
+ // profile for the given |sandbox_type| exists. Otherwise,
+ // |sandbox_profile_resource_id| is set to the resource ID corresponding to
+ // the sandbox profile to use and true is returned.
+ virtual bool GetSandboxProfileForSandboxType(
+ int sandbox_type,
+ int* sandbox_profile_resource_id) const = 0;
+#endif
+
private:
// The embedder API for participating in browser logic.
ContentBrowserClient* browser_;
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/common/sandbox_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698