summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mem_backend_impl.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 21:59:39 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 21:59:39 +0000
commit3f73cd3125ed49700efa501a330eebc322421433 (patch)
treee1133de7529df3507f9003db310b515bdc45afac /net/disk_cache/mem_backend_impl.h
parenta03c3d75111333c6f34ee8e6c2f3bac3208f4a13 (diff)
downloadchromium_src-3f73cd3125ed49700efa501a330eebc322421433.zip
chromium_src-3f73cd3125ed49700efa501a330eebc322421433.tar.gz
chromium_src-3f73cd3125ed49700efa501a330eebc322421433.tar.bz2
Disk Cache: Remove deprecated methods from the disk cache interface.
BUG=26730 TEST=current tests Review URL: http://codereview.chromium.org/2869005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/mem_backend_impl.h')
-rw-r--r--net/disk_cache/mem_backend_impl.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/net/disk_cache/mem_backend_impl.h b/net/disk_cache/mem_backend_impl.h
index 2072a56..c5e947f 100644
--- a/net/disk_cache/mem_backend_impl.h
+++ b/net/disk_cache/mem_backend_impl.h
@@ -35,25 +35,17 @@ class MemBackendImpl : public Backend {
// 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 @@ class MemBackendImpl : public Backend {
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.