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

Unified Diff: content/browser/shared_worker/shared_worker_host.h

Issue 2249173003: Removes the references to shared workers from the all documents in being deleted frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use WebContentsObserver::RenderFrameDeleted Created 4 years, 4 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: content/browser/shared_worker/shared_worker_host.h
diff --git a/content/browser/shared_worker/shared_worker_host.h b/content/browser/shared_worker/shared_worker_host.h
index 0bb33b27e5c010ce371ff687ccdf3ebcc50d10b4..32235254aca259bd06ea7eca889ddbc316e16b6b 100644
--- a/content/browser/shared_worker/shared_worker_host.h
+++ b/content/browser/shared_worker/shared_worker_host.h
@@ -57,6 +57,11 @@ class SharedWorkerHost {
void DocumentDetached(SharedWorkerMessageFilter* filter,
unsigned long long document_id);
+ // Removes the references to shared workers from the all documents in the
+ // renderer frame. And shuts down any shared workers that are no longer
+ // referenced by active documents.
+ void RenderFrameDetached(int render_process_id, int render_frame_id);
+
void WorkerContextClosed();
void WorkerReadyForInspection();
void WorkerScriptLoaded();

Powered by Google App Engine
This is Rietveld 408576698