Index: net/disk_cache/simple/simple_synchronous_entry.h |
diff --git a/net/disk_cache/simple/simple_synchronous_entry.h b/net/disk_cache/simple/simple_synchronous_entry.h |
index f91262cb6a7683c34010e05c461b597ff1522347..aa86dda1128f123ca5b5d5dde0f15b5e8172003f 100644 |
--- a/net/disk_cache/simple/simple_synchronous_entry.h |
+++ b/net/disk_cache/simple/simple_synchronous_entry.h |
@@ -5,6 +5,7 @@ |
#ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
#define NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ |
+#include <set> |
#include <string> |
#include "base/callback_forward.h" |
@@ -63,6 +64,13 @@ class SimpleSynchronousEntry { |
const scoped_refptr<base::TaskRunner>& callback_runner, |
const net::CompletionCallback& callback); |
+ // Like |DoomEntry()| above. Deletes all entries corresponding to the |
+ // |key_hashes|. Succeeds only when all entries are deleted. |
+ static void DoomEntrySet(scoped_ptr<std::set<uint64> > key_hashes, |
+ const base::FilePath& path, |
+ scoped_refptr<base::TaskRunner> callback_runner, |
+ const net::CompletionCallback& callback); |
+ |
// N.B. Close(), ReadData() and WriteData() may block on IO. |
void Close(); |
void ReadData(int index, |
@@ -106,6 +114,9 @@ class SimpleSynchronousEntry { |
void Doom(); |
+ static bool DeleteFilesForEntry(const base::FilePath& path, |
+ const std::string& key); |
+ |
scoped_refptr<base::TaskRunner> callback_runner_; |
const base::FilePath path_; |
const std::string key_; |