#include "base/memory/platform_shared_memory_region.h"
#include "base/bits.h"
#include "base/memory/aligned_memory.h"
#include "base/memory/shared_memory_mapping.h"
#include "base/memory/shared_memory_security_policy.h"
#include "base/metrics/histogram_functions.h"
#include "base/numerics/checked_math.h"
#include "base/system/sys_info.h"
namespace base {
namespace subtle {
PlatformSharedMemoryRegion PlatformSharedMemoryRegion::CreateWritable(
size_t size) { … }
PlatformSharedMemoryRegion PlatformSharedMemoryRegion::CreateUnsafe(
size_t size) { … }
PlatformSharedMemoryRegion::PlatformSharedMemoryRegion() = default;
PlatformSharedMemoryRegion::PlatformSharedMemoryRegion(
PlatformSharedMemoryRegion&& other) = default;
PlatformSharedMemoryRegion& PlatformSharedMemoryRegion::operator=(
PlatformSharedMemoryRegion&& other) = default;
PlatformSharedMemoryRegion::~PlatformSharedMemoryRegion() = default;
ScopedPlatformSharedMemoryHandle
PlatformSharedMemoryRegion::PassPlatformHandle() { … }
std::optional<span<uint8_t>> PlatformSharedMemoryRegion::MapAt(
uint64_t offset,
size_t size,
SharedMemoryMapper* mapper) const { … }
void PlatformSharedMemoryRegion::Unmap(span<uint8_t> mapping,
SharedMemoryMapper* mapper) { … }
}
}