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

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: Remove some comments Created 4 years, 7 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 3256cbe3eb99c6b898cefa26823664fada4beb41..2919da4a23ffbb7d8d27df4d48a69babc7945db6 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp
@@ -186,14 +186,14 @@ void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, unsigne
didReceiveResourceResponseButCanceled(frame, loader, identifier, r);
}
-void removedResourceFromMemoryCache(Resource* cachedResource)
+void willDestroyResource(Resource* cachedResource)
{
ASSERT(isMainThread());
for (InstrumentingAgents* instrumentingAgents: instrumentingAgentsSet()) {
if (!instrumentingAgents->hasInspectorResourceAgents())
continue;
for (InspectorResourceAgent* resourceAgent : instrumentingAgents->inspectorResourceAgents())
- resourceAgent->removedResourceFromMemoryCache(cachedResource);
+ resourceAgent->willDestroyResource(cachedResource);
}
}

Powered by Google App Engine
This is Rietveld 408576698