#include "base/posix/global_descriptors.h"
#include <vector>
#include <utility>
#include "base/logging.h"
namespace base {
GlobalDescriptors::Descriptor::Descriptor(Key key, int fd)
: … { … }
GlobalDescriptors::Descriptor::Descriptor(Key key,
int fd,
base::MemoryMappedFile::Region region)
: … { … }
GlobalDescriptors* GlobalDescriptors::GetInstance() { … }
int GlobalDescriptors::Get(Key key) const { … }
int GlobalDescriptors::MaybeGet(Key key) const { … }
base::ScopedFD GlobalDescriptors::TakeFD(
Key key,
base::MemoryMappedFile::Region* region) { … }
void GlobalDescriptors::Set(Key key, int fd) { … }
void GlobalDescriptors::Set(Key key,
int fd,
base::MemoryMappedFile::Region region) { … }
base::MemoryMappedFile::Region GlobalDescriptors::GetRegion(Key key) const { … }
void GlobalDescriptors::Reset(const Mapping& mapping) { … }
GlobalDescriptors::GlobalDescriptors() = default;
GlobalDescriptors::~GlobalDescriptors() = default;
}