chromium/base/allocator/dispatcher/internal/dispatch_data.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/allocator/dispatcher/internal/dispatch_data.h"

#include "partition_alloc/buildflags.h"

namespace base::allocator::dispatcher::internal {

#if PA_BUILDFLAG(USE_PARTITION_ALLOC)

DispatchData& DispatchData::SetAllocationObserverHooks(
    AllocationObserverHook* allocation_observer_hook,
    FreeObserverHook* free_observer_hook) {}

DispatchData::AllocationObserverHook* DispatchData::GetAllocationObserverHook()
    const {}

DispatchData::FreeObserverHook* DispatchData::GetFreeObserverHook() const {}
#endif

#if PA_BUILDFLAG(USE_ALLOCATOR_SHIM)
DispatchData& DispatchData::SetAllocatorDispatch(
    AllocatorDispatch* allocator_dispatch) {}

AllocatorDispatch* DispatchData::GetAllocatorDispatch() const {}
#endif
}  // namespace base::allocator::dispatcher::internal