// 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 COMPONENTS_REPORTING_RESOURCES_RESOURCE_MANAGED_BUFFER_H_ #define COMPONENTS_REPORTING_RESOURCES_RESOURCE_MANAGED_BUFFER_H_ #include <cstdint> #include <memory> #include "base/memory/scoped_refptr.h" #include "components/reporting/resources/resource_manager.h" #include "components/reporting/util/status.h" namespace reporting { // Helper class for memory buffer allocation, with memory availability // controlled by resource manager. Calling `Allocate` would not initialize // memory or preserve any existing data in the buffer. Not thread-safe, must be // only used sequentially. class ResourceManagedBuffer { … }; } // namespace reporting #endif // COMPONENTS_REPORTING_RESOURCES_RESOURCE_MANAGED_BUFFER_H_