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

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

Issue 10378057: Broker out PPAPI handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/common/sandbox_init.cc » ('j') | 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 136613)
+++ content/public/common/sandbox_init.h (working copy)
@@ -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 @@
#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_
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/common/sandbox_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698