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