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

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: Rebase Created 4 years, 2 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: 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 801f61c103e01e56420e11be8a5d4453d6bfeb50..6efd09e0aa963c4851159090d5bb7f9f11cb2022 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -704,7 +704,6 @@ void Resource::willAddClientOrObserver(PreloadReferencePolicy policy) {
}
if (!hasClientsOrObservers()) {
m_isAlive = true;
- memoryCache()->makeLive(this);
}
}
@@ -755,7 +754,6 @@ void Resource::removeClient(ResourceClient* client) {
void Resource::didRemoveClientOrObserver() {
if (!hasClientsOrObservers() && m_isAlive) {
m_isAlive = false;
- memoryCache()->makeDead(this);
allClientsAndObserversRemoved();
// RFC2616 14.9.2:
@@ -789,7 +787,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) {
@@ -800,10 +797,6 @@ void Resource::setEncodedSize(size_t encodedSize) {
memoryCache()->update(this, oldSize, size());
}
-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