// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ #include <stdint.h> #include <map> #include <set> #include <utility> #include "base/functional/callback.h" #include "base/memory/weak_ptr.h" #include "base/sequence_checker.h" #include "content/common/content_export.h" namespace content { // Keeps track of blobs that have been sent to clients as database responses, // and determines when Blob files can be deleted. The database entry that links // to the blob file can be deleted in the database, but the blob file still // needs to stay alive while it is still active (i.e. referenced by a client). // This class must be used on a single sequence, and will call the given // callbacks back on the same sequence it is constructed on. class CONTENT_EXPORT IndexedDBActiveBlobRegistry { … }; } // namespace content #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_