| OLD | NEW |
| (Empty) |
| 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 | |
| 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_ | |
| 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "net/base/completion_callback.h" | |
| 11 #include "net/base/net_export.h" | |
| 12 | |
| 13 namespace disk_cache { | |
| 14 | |
| 15 class NET_EXPORT_PRIVATE SimpleIndexDelegate { | |
| 16 public: | |
| 17 virtual ~SimpleIndexDelegate() {} | |
| 18 | |
| 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; | |
| 24 }; | |
| 25 | |
| 26 } // namespace disk_cache | |
| 27 | |
| 28 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_DELEGATE_H_ | |
| OLD | NEW |