| Index: net/http/http_cache.cc
|
| diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
|
| index 157059df10269303e14b82d5c0f49370bbd24d4d..c1bb0d81c6be1cd783fe5fa65e19564d5313203a 100644
|
| --- a/net/http/http_cache.cc
|
| +++ b/net/http/http_cache.cc
|
| @@ -463,6 +463,18 @@ void HttpCache::CloseAllConnections() {
|
| session->CloseAllConnections();
|
| }
|
|
|
| +void HttpCache::OnExternalCacheHit(const GURL& url,
|
| + const std::string& http_method) {
|
| + if (!disk_cache_.get())
|
| + return;
|
| +
|
| + HttpRequestInfo request_info;
|
| + request_info.url = url;
|
| + request_info.method = http_method;
|
| + std::string key = GenerateCacheKey(&request_info);
|
| + disk_cache_->OnExternalCacheHit(key);
|
| +}
|
| +
|
| int HttpCache::CreateTransaction(scoped_ptr<HttpTransaction>* trans) {
|
| // Do lazy initialization of disk cache if needed.
|
| if (!disk_cache_.get())
|
|
|