From 05bebf1bc8d96ca3262cd3015af5c8178d3e7f84 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 1 Jul 2010 01:12:00 +0000 Subject: Revert 51312 - Disk cache: Switch the disk cache to use the cache_thread. (tsan errors on the unit tests) 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/2829008 TBR=nsylvain@chromium.org Review URL: http://codereview.chromium.org/2819032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51325 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/eviction.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/disk_cache/eviction.cc') diff --git a/net/disk_cache/eviction.cc b/net/disk_cache/eviction.cc index e2e810a..0122b7a 100644 --- a/net/disk_cache/eviction.cc +++ b/net/disk_cache/eviction.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2008 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->DoomImpl(); + entry->Doom(); } 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->DoomImpl(); + entry->Doom(); entry->Release(); return !doomed; } -- cgit v1.1