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

Unified Diff: net/http/http_cache_transaction.cc

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_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 1e83f06523652a5792b9456b3b5872f3d2a9d22f..09055fb0a49c855cca4f5d2cafd9f0447cfb4f7c 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -182,6 +182,11 @@ int HttpCache::Transaction::WriteMetadata(IOBuffer* buf, int buf_len,
callback, true);
}
+void HttpCache::Transaction::UpdateRankForExternalCacheHit() {
+ DCHECK(entry_);
+ entry_->disk_entry->UpdateRankForExternalCacheHit();
+}
+
bool HttpCache::Transaction::AddTruncatedFlag() {
DCHECK(mode_ & WRITE);

Powered by Google App Engine
This is Rietveld 408576698