#include "mojo/public/cpp/base/shared_memory_utils.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/shared_memory_hooks.h"
#include "base/memory/shared_memory_mapping.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "base/memory/writable_shared_memory_region.h"
#include "mojo/core/embedder/embedder.h"
#include "mojo/public/cpp/system/buffer.h"
#include "mojo/public/cpp/system/platform_handle.h"
namespace mojo {
namespace {
base::WritableSharedMemoryRegion CreateWritableSharedMemoryRegion(size_t size) { … }
base::MappedReadOnlyRegion CreateReadOnlySharedMemoryRegion(
size_t size,
base::SharedMemoryMapper* mapper) { … }
base::UnsafeSharedMemoryRegion CreateUnsafeSharedMemoryRegion(size_t size) { … }
}
void SharedMemoryUtils::InstallBaseHooks() { … }
}