#ifndef MOJO_CORE_PLATFORM_HANDLE_UTILS_H_
#define MOJO_CORE_PLATFORM_HANDLE_UTILS_H_
#include "base/memory/platform_shared_memory_region.h"
#include "base/process/process.h"
#include "mojo/core/system_impl_export.h"
#include "mojo/public/c/system/invitation.h"
#include "mojo/public/c/system/platform_handle.h"
#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/platform/platform_handle.h"
namespace mojo {
namespace core {
MOJO_SYSTEM_IMPL_EXPORT void ExtractPlatformHandlesFromSharedMemoryRegionHandle(
base::subtle::ScopedPlatformSharedMemoryHandle handle,
PlatformHandle* extracted_handle,
PlatformHandle* extracted_readonly_handle);
MOJO_SYSTEM_IMPL_EXPORT
base::subtle::ScopedPlatformSharedMemoryHandle
CreateSharedMemoryRegionHandleFromPlatformHandles(
PlatformHandle handle,
PlatformHandle readonly_handle);
MojoResult UnwrapAndClonePlatformProcessHandle(
const MojoPlatformProcessHandle* process_handle,
base::Process& process);
}
}
#endif