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

Unified Diff: net/disk_cache/mem_backend_impl.h

Issue 355028: Disk Cache: New interface that enables asynchronous completion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/entry_impl.cc ('k') | net/disk_cache/mem_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mem_backend_impl.h
===================================================================
--- net/disk_cache/mem_backend_impl.h (revision 30986)
+++ net/disk_cache/mem_backend_impl.h (working copy)
@@ -29,13 +29,25 @@
// Backend interface.
virtual int32 GetEntryCount() const;
virtual bool OpenEntry(const std::string& key, Entry** entry);
+ virtual int OpenEntry(const std::string& key, Entry** entry,
+ CompletionCallback* callback);
virtual bool CreateEntry(const std::string& key, Entry** entry);
+ virtual int CreateEntry(const std::string& key, Entry** entry,
+ CompletionCallback* callback);
virtual bool DoomEntry(const std::string& key);
virtual bool DoomAllEntries();
+ virtual int DoomAllEntries(CompletionCallback* callback);
virtual bool DoomEntriesBetween(const base::Time initial_time,
const base::Time end_time);
+ virtual int DoomEntriesBetween(const base::Time initial_time,
+ const base::Time end_time,
+ CompletionCallback* callback);
virtual bool DoomEntriesSince(const base::Time initial_time);
+ virtual int DoomEntriesSince(const base::Time initial_time,
+ CompletionCallback* callback);
virtual bool OpenNextEntry(void** iter, Entry** next_entry);
+ virtual int OpenNextEntry(void** iter, Entry** next_entry,
+ CompletionCallback* callback);
virtual void EndEnumeration(void** iter);
virtual void GetStats(
std::vector<std::pair<std::string, std::string> >* stats) {}
« no previous file with comments | « net/disk_cache/entry_impl.cc ('k') | net/disk_cache/mem_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698