#include "base/memory/discardable_memory_allocator.h"
#include <utility>
#include "base/check.h"
#include "base/process/memory.h"
namespace base {
namespace {
DiscardableMemoryAllocator* g_discardable_allocator = …;
}
void DiscardableMemoryAllocator::SetInstance(
DiscardableMemoryAllocator* allocator) { … }
DiscardableMemoryAllocator* DiscardableMemoryAllocator::GetInstance() { … }
std::unique_ptr<base::DiscardableMemory>
DiscardableMemoryAllocator::AllocateLockedDiscardableMemoryWithRetryOrDie(
size_t size,
OnceClosure on_no_memory) { … }
}