chromium/net/disk_cache/simple/post_operation_waiter.h

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

#ifndef NET_DISK_CACHE_SIMPLE_POST_OPERATION_WAITER_H_
#define NET_DISK_CACHE_SIMPLE_POST_OPERATION_WAITER_H_

#include <stdint.h>

#include <unordered_map>
#include <vector>

#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "net/base/cache_type.h"

namespace disk_cache {

// See |SimpleBackendImpl::post_doom_waiting_| for the description. This is
// refcounted since sometimes this needs to survive backend destruction to
// complete some per-entry operations.
class SimplePostOperationWaiterTable
    : public base::RefCounted<SimplePostOperationWaiterTable> {};

}  // namespace disk_cache

#endif  // NET_DISK_CACHE_SIMPLE_POST_OPERATION_WAITER_H_