#include "base/files/memory_mapped_file.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/numerics/safe_math.h"
#include "base/system/sys_info.h"
#include "build/build_config.h"
namespace base {
const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile = …;
MemoryMappedFile::~MemoryMappedFile() { … }
#if !BUILDFLAG(IS_NACL)
bool MemoryMappedFile::Initialize(const FilePath& file_name, Access access) { … }
bool MemoryMappedFile::Initialize(File file, Access access) { … }
bool MemoryMappedFile::Initialize(File file,
const Region& region,
Access access) { … }
bool MemoryMappedFile::IsValid() const { … }
void MemoryMappedFile::CalculateVMAlignedBoundaries(int64_t start,
size_t size,
int64_t* aligned_start,
size_t* aligned_size,
int32_t* offset) { … }
#endif
}