Index: net/disk_cache/simple/simple_index.h |
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h |
index 0dd86c4530346f70fb862831ed44ea2ead415d8e..b69e9b196caac488d84fcd76b6fe52d9b18fbd64 100644 |
--- a/net/disk_cache/simple/simple_index.h |
+++ b/net/disk_cache/simple/simple_index.h |
@@ -110,6 +110,10 @@ class NET_EXPORT_PRIVATE SimpleIndex |
void PostponeWritingToDisk(); |
+ // Using the mtime of the file and its mtime, detects if the index file is |
+ // stale. |
+ static bool IsIndexFileStale(const base::FilePath& index_filename); |
+ |
static void LoadFromDisk( |
const base::FilePath& index_filename, |
base::SingleThreadTaskRunner* io_thread, |