// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef STORAGE_BROWSER_FILE_SYSTEM_QUOTA_QUOTA_RESERVATION_BUFFER_H_ #define STORAGE_BROWSER_FILE_SYSTEM_QUOTA_QUOTA_RESERVATION_BUFFER_H_ #include <stdint.h> #include <map> #include <memory> #include "base/files/file.h" #include "base/files/file_path.h" #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" #include "storage/common/file_system/file_system_types.h" #include "url/origin.h" namespace storage { class QuotaReservation; class OpenFileHandle; class OpenFileHandleContext; class QuotaReservationManager; // QuotaReservationBuffer manages QuotaReservation instances. All consumed // quota and leaked quota by associated QuotaReservation will be staged in // QuotaReservationBuffer, and will be committed on a modified file is closed. // The instance keeps alive while any associated QuotaReservation or // OpenFileHandle alive. // This class is usually manipulated only via OpenFileHandle and // QuotaReservation. class QuotaReservationBuffer : public base::RefCounted<QuotaReservationBuffer> { … }; } // namespace storage #endif // STORAGE_BROWSER_FILE_SYSTEM_QUOTA_QUOTA_RESERVATION_BUFFER_H_