Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.h

Issue 14295013: Simple Cache: DoomEntriesBetween() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6d7eac0362e9a911fdd0527425bb1dd14b91d75c..5ed60851e0f59aa1422657a84e5803ae4c2fc651 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 {
scoped_refptr<base::TaskRunner> callback_runner,
const net::CompletionCallback& callback);
+ // Like |DoomEntry()| above. Deletes entry files corresponding to the set of
gavinp 2013/04/17 07:41:18 // Like |DoomEntry()| above. Deletes all entries c
pasko-google - do not use 2013/04/17 19:47:52 I wanted to stress the word 'files', but OK. Done.
+ // key hashes: |key_hashes|.
+ 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_;

Powered by Google App Engine
This is Rietveld 408576698