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

Unified Diff: net/disk_cache/disk_cache.h

Issue 7461106: Inform disk cache of WebKit memory cache hits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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/disk_cache.h
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h
index 973b6e61a507b1be1d97707eb744ef8a33dc2366..7e714e66e7df91b66766ed5b906b522833322296 100644
--- a/net/disk_cache/disk_cache.h
+++ b/net/disk_cache/disk_cache.h
@@ -291,6 +291,11 @@ class NET_TEST Entry {
// Note: This method is deprecated.
virtual int ReadyForSparseIO(CompletionCallback* completion_callback) = 0;
+ // Improves the rank of this entry in the LRU cache as if it had been used
+ // directly. This allows feedback from the renderer's memory cache to improve
rvargas (doing something else) 2011/07/27 23:26:17 net is not aware of what a renderer is. I think th
+ // the selection of resources in the disk cache.
+ virtual void UpdateRankForExternalCacheHit() = 0;
+
protected:
virtual ~Entry() {}
};

Powered by Google App Engine
This is Rietveld 408576698