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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2411243004: [WeakMemoryCache] Remove LRU lists, prune order control and live/dead distinction (Closed)
Patch Set: Fix Created 4 years, 1 month 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: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 837e76b58a7f633445e2e9225d497e5cb1e074dc..088366ae2db783b0966fb19d084ce2b13697f964 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -703,7 +703,6 @@ void Resource::willAddClientOrObserver(PreloadReferencePolicy policy) {
}
if (!hasClientsOrObservers()) {
m_isAlive = true;
- memoryCache()->makeLive(this);
}
}
@@ -754,7 +753,6 @@ void Resource::removeClient(ResourceClient* client) {
void Resource::didRemoveClientOrObserver() {
if (!hasClientsOrObservers() && m_isAlive) {
m_isAlive = false;
- memoryCache()->makeDead(this);
allClientsAndObserversRemoved();
// RFC2616 14.9.2:
@@ -788,7 +786,6 @@ void Resource::setDecodedSize(size_t decodedSize) {
size_t oldSize = size();
m_decodedSize = decodedSize;
memoryCache()->update(this, oldSize, size());
- memoryCache()->updateDecodedResource(this, UpdateForPropertyChange);
}
void Resource::setEncodedSize(size_t encodedSize) {
@@ -804,10 +801,6 @@ void Resource::setEncodedSizeMemoryUsage(size_t encodedSize) {
m_encodedSizeMemoryUsage = encodedSize;
}
-void Resource::didAccessDecodedData() {
- memoryCache()->updateDecodedResource(this, UpdateForAccess);
-}
-
void Resource::finishPendingClients() {
// We're going to notify clients one by one. It is simple if the client does
// nothing. However there are a couple other things that can happen.

Powered by Google App Engine
This is Rietveld 408576698