#include "net/disk_cache/backend_cleanup_tracker.h"
#include <unordered_map>
#include <utility>
#include "base/files/file_path.h"
#include "base/functional/callback.h"
#include "base/lazy_instance.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
#include "base/task/sequenced_task_runner.h"
namespace disk_cache {
namespace {
TrackerMap;
struct AllBackendCleanupTrackers { … };
static base::LazyInstance<AllBackendCleanupTrackers>::Leaky g_all_trackers;
}
scoped_refptr<BackendCleanupTracker> BackendCleanupTracker::TryCreate(
const base::FilePath& path,
base::OnceClosure retry_closure) { … }
void BackendCleanupTracker::AddPostCleanupCallback(base::OnceClosure cb) { … }
void BackendCleanupTracker::AddPostCleanupCallbackImpl(base::OnceClosure cb) { … }
BackendCleanupTracker::BackendCleanupTracker(const base::FilePath& path)
: … { … }
BackendCleanupTracker::~BackendCleanupTracker() { … }
}