#ifndef TOOLS_MEMORY_PARTITION_ALLOCATOR_INSPECT_UTILS_H_
#define TOOLS_MEMORY_PARTITION_ALLOCATOR_INSPECT_UTILS_H_
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <optional>
#include "base/files/file.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_MAC)
#include <mach/mach.h>
#endif
namespace partition_alloc::tools {
class ScopedSigStopper { … };
base::ScopedFD OpenProcMem(pid_t pid);
base::ScopedFD OpenPagemap(pid_t pid);
char* CreateMappingAtAddress(uintptr_t address, size_t size);
class RemoteProcessMemoryReader { … };
uintptr_t IndexThreadCacheNeedleArray(RemoteProcessMemoryReader& reader,
size_t index);
template <typename T>
class RawBuffer { … };
}
#endif