summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/eviction.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 22:27:06 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 22:27:06 +0000
commit30f02c430674970ab19f1c0c06f1e1d201da4287 (patch)
treecc36282b33a376226ed82578daaa06e55efbf4eb /net/disk_cache/eviction.h
parent73d9ef131dcb595b51b1e77a24d8ed9b004f200f (diff)
downloadchromium_src-30f02c430674970ab19f1c0c06f1e1d201da4287.zip
chromium_src-30f02c430674970ab19f1c0c06f1e1d201da4287.tar.gz
chromium_src-30f02c430674970ab19f1c0c06f1e1d201da4287.tar.bz2
Disk cache: Make sure the list of unused entries is not
depleted if we are not reaching the time targets for any of the lists. BUG=79491 TEST=netunittests Review URL: http://codereview.chromium.org/6967006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/eviction.h')
-rw-r--r--net/disk_cache/eviction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/eviction.h b/net/disk_cache/eviction.h
index 26f88fe..dd69b71 100644
--- a/net/disk_cache/eviction.h
+++ b/net/disk_cache/eviction.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -66,7 +66,7 @@ class Eviction {
bool RemoveDeletedNode(CacheRankingsBlock* node);
bool NodeIsOldEnough(CacheRankingsBlock* node, int list);
- int SelectListByLenght();
+ int SelectListByLength(Rankings::ScopedRankingsBlock* next);
void ReportListStats();
BackendImpl* backend_;