Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / net / disk_cache / simple / simple_index_delegate.h
blobe942484164e50c996ef3665b2eea496a124af295
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_
8 #include <vector>
10 #include "net/base/completion_callback.h"
11 #include "net/base/net_export.h"
13 namespace disk_cache {
15 class NET_EXPORT_PRIVATE SimpleIndexDelegate {
16 public:
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,
21 // for efficiency.
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_