summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/addr.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 19:32:06 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 19:32:06 +0000
commita8d8d24a94a87830253b27537cd05069a3b369b6 (patch)
treeb55701430cc0a4ff8c893bd4b352a897299fef8d /net/disk_cache/addr.h
parent557f1c9bb1c8c7f5cebbb6914a244b4b111725a6 (diff)
downloadchromium_src-a8d8d24a94a87830253b27537cd05069a3b369b6.zip
chromium_src-a8d8d24a94a87830253b27537cd05069a3b369b6.tar.gz
chromium_src-a8d8d24a94a87830253b27537cd05069a3b369b6.tar.bz2
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
Diffstat (limited to 'net/disk_cache/addr.h')
-rw-r--r--net/disk_cache/addr.h1
1 files changed, 1 insertions, 0 deletions
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) |