#include "base/allocator/dispatcher/dispatcher.h"
#include "base/allocator/dispatcher/internal/dispatch_data.h"
#include "base/check.h"
#include "base/dcheck_is_on.h"
#include "base/no_destructor.h"
#include "partition_alloc/buildflags.h"
#include "partition_alloc/shim/allocator_shim.h"
#if DCHECK_IS_ON()
#include <atomic>
#endif
#if PA_BUILDFLAG(USE_PARTITION_ALLOC)
#include "partition_alloc/partition_alloc_hooks.h"
#endif
namespace base::allocator::dispatcher {
struct Dispatcher::Impl { … };
Dispatcher::Dispatcher() : … { … }
Dispatcher::~Dispatcher() = default;
Dispatcher& Dispatcher::GetInstance() { … }
void Dispatcher::Initialize(const internal::DispatchData& dispatch_data) { … }
void Dispatcher::ResetForTesting() { … }
}