1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_SANDBOX_UTIL_H_
6 #define CONTENT_COMMON_SANDBOX_UTIL_H_
8 #include "base/process/process.h"
9 #include "ipc/ipc_platform_file.h"
11 // This file contains cross-platform sandbox code internal to content.
15 // Platform neutral wrapper for making an exact copy of a handle for use in
16 // the target process. On Windows this wraps BrokerDuplicateHandle() with the
17 // DUPLICATE_SAME_ACCESS flag. On posix it behaves essentially the same as
18 // IPC::GetFileHandleForProcess()
19 IPC::PlatformFileForTransit
BrokerGetFileHandleForProcess(
20 base::PlatformFile handle
,
21 base::ProcessId target_process_id
,
22 bool should_close_source
);
24 } // namespace content
26 #endif // CONTENT_COMMON_SANDBOX_UTIL_H_