summaryrefslogtreecommitdiffstats
path: root/content/public/common/sandbox_init.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/common/sandbox_init.h')
-rw-r--r--content/public/common/sandbox_init.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/public/common/sandbox_init.h b/content/public/common/sandbox_init.h
index 24da5a9..a6dcccc 100644
--- a/content/public/common/sandbox_init.h
+++ b/content/public/common/sandbox_init.h
@@ -9,6 +9,7 @@
#include "base/process.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
+#include "ipc/ipc_platform_file.h"
#if defined(OS_WIN)
namespace sandbox {
@@ -76,6 +77,15 @@ CONTENT_EXPORT void InitializeSandbox();
#endif
+// Platform neutral wrapper for making an exact copy of a handle for use in
+// the target process. On Windows this wraps BrokerDuplicateHandle() with the
+// DUPLICATE_SAME_ACCESS flag. On posix it behaves essentially the same as
+// IPC::GetFileHandleForProcess()
+CONTENT_EXPORT IPC::PlatformFileForTransit BrokerGetFileHandleForProcess(
+ base::PlatformFile handle,
+ base::ProcessId target_process_id,
+ bool should_close_source);
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_