// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_MEMORY_DISCARDABLE_MEMORY_ALLOCATOR_H_ #define BASE_MEMORY_DISCARDABLE_MEMORY_ALLOCATOR_H_ #include <stddef.h> #include <memory> #include "base/base_export.h" #include "base/functional/callback.h" #include "base/memory/discardable_memory.h" namespace base { class DiscardableMemory; // An allocator which creates and manages DiscardableMemory. The allocator // itself should be created via CreateDiscardableMemoryAllocator, which // selects an appropriate implementation depending on platform support. class BASE_EXPORT DiscardableMemoryAllocator { … }; } // namespace base #endif // BASE_MEMORY_DISCARDABLE_MEMORY_ALLOCATOR_H_