summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/eviction.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 23:42:00 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 23:42:00 +0000
commit5a523da5ed3527f4d933e1dfe13e4801d76ca9f7 (patch)
tree359300b946e318a9077adf232a5a62c6e7f97ec0 /net/disk_cache/eviction.cc
parent210aaa7d582d1315820b2c9321c5f7abe6bdb60b (diff)
downloadchromium_src-5a523da5ed3527f4d933e1dfe13e4801d76ca9f7.zip
chromium_src-5a523da5ed3527f4d933e1dfe13e4801d76ca9f7.tar.gz
chromium_src-5a523da5ed3527f4d933e1dfe13e4801d76ca9f7.tar.bz2
Disk cache: Switch the disk cache to use the cache_thread.
Add an InFlightBackendIO class that handles posting of cacheoperations back and forth between the IO thread and the cachethread. BUG=26730 TEST=unit tests Review URL: http://codereview.chromium.org/2841034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/eviction.cc')
-rw-r--r--net/disk_cache/eviction.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/disk_cache/eviction.cc b/net/disk_cache/eviction.cc
index 0122b7a..e2e810a 100644
--- a/net/disk_cache/eviction.cc
+++ b/net/disk_cache/eviction.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2010 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.
@@ -224,7 +224,7 @@ bool Eviction::EvictEntry(CacheRankingsBlock* node, bool empty) {
ReportTrimTimes(entry);
if (empty || !new_eviction_) {
- entry->Doom();
+ entry->DoomImpl();
} else {
entry->DeleteEntryData(false);
EntryStore* info = entry->entry()->Data();
@@ -453,7 +453,7 @@ bool Eviction::RemoveDeletedNode(CacheRankingsBlock* node) {
}
bool doomed = (entry->entry()->Data()->state == ENTRY_DOOMED);
entry->entry()->Data()->state = ENTRY_DOOMED;
- entry->Doom();
+ entry->DoomImpl();
entry->Release();
return !doomed;
}