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

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: Implement in backend 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..03af1bcbdc9543385523ddbd9e86fd81c157bd2e 100644
--- a/net/disk_cache/disk_cache.h
+++ b/net/disk_cache/disk_cache.h
@@ -137,6 +137,11 @@ class NET_API Backend {
// Return a list of cache statistics.
virtual void GetStats(
std::vector<std::pair<std::string, std::string> >* stats) = 0;
+
+ // Improves the rank of the specified resource in the LRU cache as if it had
+ // been used directly. This allows feedback from the renderer's memory cache
rvargas (doing something else) 2011/07/28 22:27:01 There should not be a reference to the renderer's
+ // to improve the selection of resources in the disk cache.
+ virtual void OnExternalCacheHit(const std::string& key) = 0;
};
// This interface represents an entry in the disk cache.

Powered by Google App Engine
This is Rietveld 408576698