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

Unified Diff: net/disk_cache/mem_entry_impl.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/disk_cache/mem_entry_impl.cc
diff --git a/net/disk_cache/mem_entry_impl.cc b/net/disk_cache/mem_entry_impl.cc
index f1267ce9e536f96593548de608f681d0f178f51e..05fa16e57578c01ce23685e360452279ec10568a 100644
--- a/net/disk_cache/mem_entry_impl.cc
+++ b/net/disk_cache/mem_entry_impl.cc
@@ -259,6 +259,10 @@ int MemEntryImpl::ReadyForSparseIO(
return net::OK;
}
+void MemEntryImpl::UpdateRankForExternalCacheHit() {
+ UpdateRank(false);
+}
+
// ------------------------------------------------------------------------
MemEntryImpl::~MemEntryImpl() {

Powered by Google App Engine
This is Rietveld 408576698