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

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

Issue 14877019: Minor SimpleCacheBackend improvements. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use sizeof("_0") - 1' Created 7 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
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.h ('k') | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e004c0f166236461a108aed836948c31f2e05068..bc87bb15fdb33f6989fb397601200dc26f4e1a7f 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -135,6 +135,8 @@ class NET_EXPORT_PRIVATE SimpleIndex
void PostponeWritingToDisk();
+ void UpdateEntryIteratorSize(EntrySet::iterator* it, uint64 entry_size);
+
// Using the mtime of the file and its mtime, detects if the index file is
// stale.
static bool IsIndexFileStale(const base::FilePath& index_filename);
@@ -190,7 +192,9 @@ class NET_EXPORT_PRIVATE SimpleIndex
// PostponeWritingToDisk() may give up postponing and allow the write if it
// has been a while since last time we wrote.
base::TimeTicks last_write_to_disk_;
+
base::OneShotTimer<SimpleIndex> write_to_disk_timer_;
+ base::Closure write_to_disk_cb_;
typedef std::list<net::CompletionCallback> CallbackList;
CallbackList to_run_when_initialized_;
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.h ('k') | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698