subsystem.h 764 B

123456789101112131415161718192021
  1. // Copyright (c) 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ALLOCATOR_DISPATCHER_SUBSYSTEM_H_
  5. #define BASE_ALLOCATOR_DISPATCHER_SUBSYSTEM_H_
  6. namespace base::allocator::dispatcher {
  7. // Identifiers for the memory subsystem handling the allocation. Some observers
  8. // require more detailed information on who is performing the allocation, i.e.
  9. // SamplingHeapProfiler.
  10. enum class AllocationSubsystem {
  11. // Allocation is handled by PartitionAllocator.
  12. kPartitionAllocator = 1,
  13. // Allocation is handled by AllocatorShims.
  14. kAllocatorShim = 2
  15. };
  16. } // namespace base::allocator::dispatcher
  17. #endif // BASE_ALLOCATOR_DISPATCHER_SUBSYSTEM_H_