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.
5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_
10 #include "net/base/completion_callback.h"
11 #include "net/base/net_export.h"
13 namespace disk_cache
{
15 class NET_EXPORT_PRIVATE SimpleIndexDelegate
{
17 virtual ~SimpleIndexDelegate() {}
19 // Dooms all entries in |entries|, calling |callback| with the result
20 // asynchronously. |entries| is mutated in an undefined way by this call,
22 virtual void DoomEntries(std::vector
<uint64
>* entry_hashes
,
23 const net::CompletionCallback
& callback
) = 0;
26 } // namespace disk_cache
28 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_