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

Unified Diff: net/http/http_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/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 861d36ba4800a6c97eb06f3c80937d22e949dfe9..bc772553d5cf8552e80b96f7015d30e0babbad7d 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -179,6 +179,11 @@ class NET_API HttpCache : public HttpTransactionFactory,
// immediately, but they will not be reusable. This is for debugging.
void CloseAllConnections();
+ // Indicates that the renderer's memory cache hit the resource specified by
+ // |url|. Propagate that cache hit to our http cache, so that frequently used
+ // resources stay in the disk cache too.
+ void ReportExternalCacheHit(const GURL& url, const std::string& http_method);
rvargas (doing something else) 2011/07/27 23:26:17 Maybe OnExternalCacheHit? I'm not so fond of OnXxx
+
// HttpTransactionFactory implementation:
virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans);
virtual HttpCache* GetCache();
@@ -345,7 +350,6 @@ class NET_API HttpCache : public HttpTransactionFactory,
// Processes the backend creation notification.
void OnBackendCreated(int result, PendingOp* pending_op);
-
// Variables ----------------------------------------------------------------
NetLog* net_log_;

Powered by Google App Engine
This is Rietveld 408576698