Chromium Code Reviews| 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_; |