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

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

Issue 10512016: Get rid of internal content includes for sandbox code from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: update deps! Created 8 years, 6 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 | « content/common/sandbox_policy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/sandbox_init.h
===================================================================
--- content/public/common/sandbox_init.h (revision 140351)
+++ content/public/common/sandbox_init.h (working copy)
@@ -11,13 +11,12 @@
#include "content/common/content_export.h"
#include "ipc/ipc_platform_file.h"
-#if defined(OS_WIN)
+class CommandLine;
+class FilePath;
+
namespace sandbox {
struct SandboxInterfaceInfo;
}
-#elif defined(OS_MACOSX)
-class FilePath;
-#endif
namespace content {
@@ -52,6 +51,12 @@
// false otherwise.
CONTENT_EXPORT bool BrokerAddTargetPeer(HANDLE peer_process);
+// Starts a sandboxed process with the given directory unsandboxed
+// and returns a handle to it.
+CONTENT_EXPORT base::ProcessHandle StartProcessWithAccess(
+ CommandLine* cmd_line,
+ const FilePath& exposed_dir);
+
#elif defined(OS_MACOSX)
// Initialize the sandbox of the given |sandbox_type|, optionally specifying a
« no previous file with comments | « content/common/sandbox_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698