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

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

Issue 13933029: Add SimpleCache index file heuristics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 00141634376e3fd3ef1df66c5033f3ba255473ff..882e8e5a95eef04002e941e620602363cce93d83 100644
--- a/net/disk_cache/simple/simple_index_file.h
+++ b/net/disk_cache/simple/simple_index_file.h
@@ -68,6 +68,10 @@ class NET_EXPORT_PRIVATE SimpleIndexFile {
static void WriteToDisk(const base::FilePath& index_filename,
const Pickle& pickle);
+ // Using mtime of the file and the path, it detects if the index file is
+ // stale.
+ static bool IndexFileIsStale(const base::FilePath& index_filename);
gavinp 2013/04/19 09:30:17 IsIndexFileStale is a better name. I did a double
felipeg 2013/04/19 10:14:05 that comes from my bad english mixed up with frenc
+
private:
FRIEND_TEST_ALL_PREFIXES(SimpleIndexFileTest, Serialize);

Powered by Google App Engine
This is Rietveld 408576698