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

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

Issue 14295013: Simple Cache: DoomEntriesBetween() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix an actual bug in DoomEntry 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_backend_impl.h
diff --git a/net/disk_cache/simple/simple_backend_impl.h b/net/disk_cache/simple/simple_backend_impl.h
index 554e6d7eb6246c4d1ec19102ca7eb10f0fa4179b..2ea63e0d1228b6d53875f5484c75fd3edd97880d 100644
--- a/net/disk_cache/simple/simple_backend_impl.h
+++ b/net/disk_cache/simple/simple_backend_impl.h
@@ -33,7 +33,8 @@ namespace disk_cache {
class SimpleIndex;
-class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend {
+class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend,
+ public base::SupportsWeakPtr<SimpleBackendImpl> {
public:
SimpleBackendImpl(const base::FilePath& path, int max_bytes,
net::CacheType type,
@@ -73,6 +74,13 @@ class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend {
// Must run on IO Thread.
void InitializeIndex(const CompletionCallback& callback, int result);
+ // Dooms all entries previously accessed between |initial_time| and
+ // |end_time|. Invoked when the index is ready.
+ void IndexReadyForDoom(base::Time initial_time,
+ base::Time end_time,
+ const CompletionCallback& callback,
+ int result);
+
// Try to create the directory if it doesn't exist.
// Must run on Cache Thread.
static void CreateDirectory(
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698