| 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..7ad8d6f570f96115618f371d4a81dee508297783 100644
|
| --- a/net/disk_cache/simple/simple_synchronous_entry.h
|
| +++ b/net/disk_cache/simple/simple_synchronous_entry.h
|
| @@ -6,10 +6,12 @@
|
| #define NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_
|
|
|
| #include <string>
|
| +#include <vector>
|
|
|
| #include "base/callback_forward.h"
|
| #include "base/files/file_path.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "base/platform_file.h"
|
| #include "base/task_runner.h"
|
| #include "base/time.h"
|
| @@ -63,6 +65,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::vector<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 +115,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_;
|
|
|