// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PARTITION_ALLOC_PARTITION_ALLOC_ALLOCATION_DATA_H_ #define PARTITION_ALLOC_PARTITION_ALLOC_ALLOCATION_DATA_H_ #include <cstdint> #include "partition_alloc/buildflags.h" #include "partition_alloc/partition_alloc_base/component_export.h" #include "partition_alloc/tagging.h" namespace partition_alloc { // Definitions of various parameters of override and observer hooks. Allocation // and free path differ from each other in that the allocation override provides // data to the caller (we have an out parameter there), whereas the free // override just consumes the data. // AllocationNotificationData is the in-parameter of an allocation observer // hook. class PA_COMPONENT_EXPORT(PARTITION_ALLOC) AllocationNotificationData { … }; // FreeNotificationData is the in-parameter of a free observer hook. class PA_COMPONENT_EXPORT(PARTITION_ALLOC) FreeNotificationData { … }; } // namespace partition_alloc #endif // PARTITION_ALLOC_PARTITION_ALLOC_ALLOCATION_DATA_H_