| Index: net/disk_cache/mem_backend_impl.h
|
| ===================================================================
|
| --- net/disk_cache/mem_backend_impl.h (revision 49819)
|
| +++ net/disk_cache/mem_backend_impl.h (working copy)
|
| @@ -35,25 +35,17 @@
|
|
|
| // 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 int DoomEntry(const std::string& key, CompletionCallback* callback);
|
| - 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);
|
| @@ -85,6 +77,16 @@
|
| void RemoveFromRankingList(MemEntryImpl* entry);
|
|
|
| private:
|
| + // Old Backend interface.
|
| + bool OpenEntry(const std::string& key, Entry** entry);
|
| + bool CreateEntry(const std::string& key, Entry** entry);
|
| + bool DoomEntry(const std::string& key);
|
| + bool DoomAllEntries();
|
| + bool DoomEntriesBetween(const base::Time initial_time,
|
| + const base::Time end_time);
|
| + bool DoomEntriesSince(const base::Time initial_time);
|
| + bool OpenNextEntry(void** iter, Entry** next_entry);
|
| +
|
| // Deletes entries from the cache until the current size is below the limit.
|
| // If empty is true, the whole cache will be trimmed, regardless of being in
|
| // use.
|
|
|