diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 17:56:22 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 17:56:22 +0000 |
commit | b6e97b66c5777bbd1c5fef47a77247f6a3fb319e (patch) | |
tree | e95c0ff12aff46abfe87e028a734498896b2729c /net/disk_cache/mem_rankings.cc | |
parent | 8649fb3771f7d6227e5fea231050c7da63fb0e08 (diff) | |
download | chromium_src-b6e97b66c5777bbd1c5fef47a77247f6a3fb319e.zip chromium_src-b6e97b66c5777bbd1c5fef47a77247f6a3fb319e.tar.gz chromium_src-b6e97b66c5777bbd1c5fef47a77247f6a3fb319e.tar.bz2 |
Sparse IO implementation for memory-only cache
Implemented the following methods:
MemEntryImpl::ReadSparseData
MemEntryImpl::WriteSparseData
MemEntryImpl::GetAvailableRange
TEST=DiskCacheEntryTest.Memory*
original CL: http://codereview.chromium.org/140049
Review URL: http://codereview.chromium.org/147217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/mem_rankings.cc')
-rw-r--r-- | net/disk_cache/mem_rankings.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/mem_rankings.cc b/net/disk_cache/mem_rankings.cc index 6ca1bf7..d5f4a65 100644 --- a/net/disk_cache/mem_rankings.cc +++ b/net/disk_cache/mem_rankings.cc @@ -4,10 +4,15 @@ #include "net/disk_cache/mem_rankings.h" +#include "base/logging.h" #include "net/disk_cache/mem_entry_impl.h" namespace disk_cache { +MemRankings::~MemRankings() { + DCHECK(!head_ && !tail_); +} + void MemRankings::Insert(MemEntryImpl* node) { if (head_) head_->set_prev(node); |