From a8d8d24a94a87830253b27537cd05069a3b369b6 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Tue, 16 Dec 2008 19:32:06 +0000 Subject: Disk cache: remove the hard coded list from rankings.cc The rankings module now works with any list, not just the first one. This is part of the support needed for new eviction algorithms. note: Rankings::CheckList() is basically the code that was implementing the old Rankings::SelfCheck() (moved with this cl). The disk cache behavior is not changing with this cl. Review URL: http://codereview.chromium.org/14141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7074 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/addr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'net/disk_cache/addr.h') diff --git a/net/disk_cache/addr.h b/net/disk_cache/addr.h index 3a1cc33..375b2c5 100644 --- a/net/disk_cache/addr.h +++ b/net/disk_cache/addr.h @@ -50,6 +50,7 @@ const int kFirstAdditionlBlockFile = 4; // 0000 0000 0000 0000 1111 1111 1111 1111 : block# 0 - 65,535 (2^16) class Addr { public: + Addr() : value_(0) {} explicit Addr(CacheAddr address) : value_(address) {} Addr(FileType file_type, int max_blocks, int block_file, int index) { value_ = ((file_type << kFileTypeOffset) & kFileTypeMask) | -- cgit v1.1