simple_index_delegate.h 920 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_
  5. #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_
  6. #include <stdint.h>
  7. #include <vector>
  8. #include "net/base/completion_once_callback.h"
  9. #include "net/base/net_export.h"
  10. namespace disk_cache {
  11. class NET_EXPORT_PRIVATE SimpleIndexDelegate {
  12. public:
  13. virtual ~SimpleIndexDelegate() = default;
  14. // Dooms all entries in |entries|, calling |callback| with the result
  15. // asynchronously. |entries| is mutated in an undefined way by this call,
  16. // for efficiency.
  17. virtual void DoomEntries(std::vector<uint64_t>* entry_hashes,
  18. net::CompletionOnceCallback callback) = 0;
  19. };
  20. } // namespace disk_cache
  21. #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_