summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.h
diff options
context:
space:
mode:
authorsimonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-02 20:13:28 +0000
committersimonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-02 20:13:28 +0000
commit704359693f5c8507635155ae117c466a7149065a (patch)
tree55778bdae67f960440441085372fc98c1f974c80 /net/http/http_cache.h
parent89b2312b5aca51da726b93e966842ffd5f642402 (diff)
downloadchromium_src-704359693f5c8507635155ae117c466a7149065a.zip
chromium_src-704359693f5c8507635155ae117c466a7149065a.tar.gz
chromium_src-704359693f5c8507635155ae117c466a7149065a.tar.bz2
Inform disk cache of WebKit memory cache hits.
BUG=37112 TEST=net_unittests Review URL: http://codereview.chromium.org/7461106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r--net/http/http_cache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 861d36b..1f5fa5f1 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -179,6 +179,10 @@ class NET_API HttpCache : public HttpTransactionFactory,
// immediately, but they will not be reusable. This is for debugging.
void CloseAllConnections();
+ // Called whenever an external cache in the system reuses the resource
+ // referred to by |url| and |http_method|.
+ void OnExternalCacheHit(const GURL& url, const std::string& http_method);
+
// HttpTransactionFactory implementation:
virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans);
virtual HttpCache* GetCache();
@@ -345,7 +349,6 @@ class NET_API HttpCache : public HttpTransactionFactory,
// Processes the backend creation notification.
void OnBackendCreated(int result, PendingOp* pending_op);
-
// Variables ----------------------------------------------------------------
NetLog* net_log_;