Chromium Code Reviews| Index: content/public/common/sandbox_init.h |
| diff --git a/content/public/common/sandbox_init.h b/content/public/common/sandbox_init.h |
| index 6f4b19c9ea4aefc037a3821babbc9d48e4d6ca04..53f8da4fec438ee156ba9936154c04d17e45ec98 100644 |
| --- a/content/public/common/sandbox_init.h |
| +++ b/content/public/common/sandbox_init.h |
| @@ -7,7 +7,9 @@ |
| #include "base/files/scoped_file.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "base/memory/shared_memory.h" |
| #include "base/process/process.h" |
| +#include "base/process/process_handle.h" |
| #include "build/build_config.h" |
| #include "content/common/content_export.h" |
| @@ -26,6 +28,17 @@ struct SandboxInterfaceInfo; |
| namespace content { |
| class SandboxedProcessLauncherDelegate; |
| +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
| +// This function allows a sandboxed process to duplicate a SharedMemoryHandle |
| +// to itself or to another process. The duplicated SharedMemoryHandle has the |
| +// same access rights as the original. Returns true on success, false |
| +// otherwise. |
| +CONTENT_EXPORT bool BrokerDuplicateSharedMemoryHandle( |
| + base::SharedMemoryHandle source_handle, |
| + base::ProcessId target_process_id, |
| + base::SharedMemoryHandle* target_handle); |
| +#endif // defined(OS_WIN) || defined(OS_POSIX) |
|
Robert Sesek
2015/06/01 22:00:41
Doesn't match the #if.
erikchen
2015/06/01 22:08:35
Done.
|
| + |
| #if defined(OS_WIN) |
| // Initialize the sandbox for renderer, gpu, utility, worker, nacl, and plugin |