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

Unified Diff: net/http/http_transaction.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/http/http_transaction.h
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index 8f4a984bb0e4c42e51f1e8adea1a7029e7d3d096..751ec2806d48e6cfdee93c0cb08b34e553fdcb36 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -111,6 +111,11 @@ class NET_TEST HttpTransaction {
// about an SSL server. It's used to implement Snap Start.
// TODO(agl): remove this.
virtual void SetSSLHostInfo(SSLHostInfo*) { };
+
+ // For cache transactions, 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 the selection of resources in the disk cache.
+ virtual void UpdateRankForExternalCacheHit() = 0;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698