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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp

Issue 1807323002: [WeakMemoryCache 1a] Make Reference from Inspector to Resource weak, remove removedFromMemoryCache() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/inspector/InspectorInstrumentation.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
index 83795eab755a3245726effb2df430a6098478eac..a134652044537b2b48a996206429ce532c7ecf40 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
@@ -200,7 +200,7 @@ void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, unsigne
didReceiveResourceResponseButCanceled(frame, loader, identifier, r);
}
-void removedResourceFromMemoryCache(Resource* cachedResource)
+void willDestroyResource(Resource* cachedResource)
{
ASSERT(isMainThread());
for (InstrumentingSessions* instrumentingSessions: instrumentingSessionsSet()) {
@@ -208,7 +208,7 @@ void removedResourceFromMemoryCache(Resource* cachedResource)
continue;
for (InspectorSession* session : *instrumentingSessions) {
if (InspectorResourceAgent* inspectorResourceAgent = session->instrumentingAgents()->inspectorResourceAgent())
- inspectorResourceAgent->removedResourceFromMemoryCache(cachedResource);
+ inspectorResourceAgent->willDestroyResource(cachedResource);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698