Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: net/disk_cache/simple/simple_entry_impl.h

Issue 23486006: Track entries pending Doom in SimpleCache backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add dcheck Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/simple/simple_entry_impl.h
diff --git a/net/disk_cache/simple/simple_entry_impl.h b/net/disk_cache/simple/simple_entry_impl.h
index 544559480588c9f4d42cd6da1f0f2eccc5cbc2eb..4f07a3e18f9fba0b120733b562e7c0b349c44f8a 100644
--- a/net/disk_cache/simple/simple_entry_impl.h
+++ b/net/disk_cache/simple/simple_entry_impl.h
@@ -247,7 +247,7 @@ class SimpleEntryImpl : public Entry, public base::RefCounted<SimpleEntryImpl>,
// thread, in all cases. |io_thread_checker_| documents and enforces this.
base::ThreadChecker io_thread_checker_;
- base::WeakPtr<SimpleBackendImpl> backend_;
+ const base::WeakPtr<SimpleBackendImpl> backend_;
const net::CacheType cache_type_;
const scoped_refptr<base::TaskRunner> worker_pool_;
const base::FilePath path_;
@@ -267,6 +267,8 @@ class SimpleEntryImpl : public Entry, public base::RefCounted<SimpleEntryImpl>,
// notify the backend when this entry not used by any callers.
int open_count_;
+ bool doomed_;
Deprecated (see juliatuttle) 2013/09/11 19:03:21 Hooray!
+
State state_;
// When possible, we compute a crc32, for the data in each entry as we read or

Powered by Google App Engine
This is Rietveld 408576698