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

Unified Diff: content/browser/shared_worker/shared_worker_message_filter.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: incorporated nhiroki's comment 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_message_filter.h
diff --git a/content/browser/shared_worker/shared_worker_message_filter.h b/content/browser/shared_worker/shared_worker_message_filter.h
index b6845e7faefe43de1d4a34d44ad8d1871069827d..2646b7eb893dfdbf0a866cfed66b0c5ae2eef04e 100644
--- a/content/browser/shared_worker/shared_worker_message_filter.h
+++ b/content/browser/shared_worker/shared_worker_message_filter.h
@@ -34,6 +34,11 @@ class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter {
int GetNextRoutingID();
int render_process_id() const { return render_process_id_; }
+ // Removes the references to shared workers from the all documents in the
+ // renderer process which is associated with the filter. And shuts down any
+ // shared workers that are no longer referenced by active documents.
+ void DetachAllDocuments();
+
MessagePortMessageFilter* message_port_message_filter() const {
return message_port_message_filter_;
}
@@ -65,7 +70,7 @@ class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter {
const int render_process_id_;
ResourceContext* const resource_context_;
- const WorkerStoragePartition partition_;
+ const WorkerStoragePartitionId partition_id_;
MessagePortMessageFilter* const message_port_message_filter_;
DISALLOW_IMPLICIT_CONSTRUCTORS(SharedWorkerMessageFilter);

Powered by Google App Engine
This is Rietveld 408576698