chromium/net/disk_cache/backend_cleanup_tracker.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Internal helper used to sequence cleanup and reuse of cache directories
// among different objects.

#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;

}  // namespace.

// static
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() {}

}  // namespace disk_cache