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

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: Reflect yhirano's comment 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 723beaef078e02bae7e48b631f91cd3c31c8ab38..57c7b2535e48eb060e326f9cb3f0272b8704177e 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -708,7 +708,6 @@ void Resource::willAddClientOrObserver(PreloadReferencePolicy policy) {
}
if (!hasClientsOrObservers()) {
m_isAlive = true;
- memoryCache()->makeLive(this);
}
}
@@ -759,7 +758,6 @@ void Resource::removeClient(ResourceClient* client) {
void Resource::didRemoveClientOrObserver() {
if (!hasClientsOrObservers() && m_isAlive) {
m_isAlive = false;
- memoryCache()->makeDead(this);
allClientsAndObserversRemoved();
// RFC2616 14.9.2:
@@ -793,7 +791,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) {
@@ -805,10 +802,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.
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698