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

Unified Diff: content/common/sandbox_mac.h

Issue 2686433002: Move SandboxCompiler class into the sandbox library. (Closed)
Patch Set: Try getting rid of sysctl-read Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/sandbox_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_mac.h
diff --git a/content/common/sandbox_mac.h b/content/common/sandbox_mac.h
index 39f230161f95c0d99c15b6c7e65fac04a615b2df..a15440e9a347d6f11bf5c5745d73963f036109d4 100644
--- a/content/common/sandbox_mac.h
+++ b/content/common/sandbox_mac.h
@@ -20,38 +20,6 @@ class FilePath;
namespace content {
-// This class wraps the C-style sandbox APIs in a class to ensure proper
-// initialization and cleanup.
-class CONTENT_EXPORT SandboxCompiler {
- public:
- explicit SandboxCompiler(const std::string& profile_str);
-
- ~SandboxCompiler();
-
- // Inserts a boolean into the parameters key/value map. A duplicate key is not
- // allowed, and will cause the function to return false. The value is not
- // inserted in this case.
- bool InsertBooleanParam(const std::string& key, bool value);
-
- // Inserts a string into the parameters key/value map. A duplicate key is not
- // allowed, and will cause the function to return false. The value is not
- // inserted in this case.
- bool InsertStringParam(const std::string& key, const std::string& value);
-
- // Compiles and applies the profile; returns true on success.
- bool CompileAndApplyProfile(std::string* error);
-
- private:
- // Storage of the key/value pairs of strings that are used in the sandbox
- // profile.
- std::map<std::string, std::string> params_map_;
-
- // The sandbox profile source code.
- const std::string profile_str_;
-
- DISALLOW_COPY_AND_ASSIGN(SandboxCompiler);
-};
-
class CONTENT_EXPORT Sandbox {
public:
« no previous file with comments | « no previous file | content/common/sandbox_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698