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); |