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..cfaef3e701231f445707c36cb9c98cbacd6f2d4b 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 from the all documents in the renderer process which |
+ // is associated with the filter to shared workers. And shuts down any shared |
+ // workers that are no longer referenced by active documents. |
+ void DetachAllDocument(); |
nhiroki
2016/08/17 06:58:04
ditto.
horo
2016/08/17 07:15:55
Done.
|
+ |
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); |