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

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

Issue 2922973003: RFC: use some in-memory state in SimpleCache to quickly cache-miss some CantConditionalize cases
Patch Set: omewhat better take at higher-level HC::T impl, a bit lessy hacky, and actually write to cache now. Created 3 years, 6 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_index_file.h
diff --git a/net/disk_cache/simple/simple_index_file.h b/net/disk_cache/simple/simple_index_file.h
index 0f10094b0a4f2a13079ecf083bcd1192b884e47e..dca0c0907b76962b1a0082a016a583ec6ffeac11 100644
--- a/net/disk_cache/simple/simple_index_file.h
+++ b/net/disk_cache/simple/simple_index_file.h
@@ -67,6 +67,7 @@ class NET_EXPORT_PRIVATE SimpleIndexFile {
SimpleIndex::IndexWriteToDiskReason reason() const { return reason_; }
uint64_t entry_count() const { return entry_count_; }
+ bool has_memory_entry_data() const { return version_ >= 8; }
private:
FRIEND_TEST_ALL_PREFIXES(IndexMetadataTest, Basics);

Powered by Google App Engine
This is Rietveld 408576698