Index: content/browser/worker_host/worker_message_filter.h |
=================================================================== |
--- content/browser/worker_host/worker_message_filter.h (revision 154786) |
+++ content/browser/worker_host/worker_message_filter.h (working copy) |
@@ -13,6 +13,7 @@ |
namespace content { |
class ResourceContext; |
+class StoragePartitionImpl; |
} // namespace content |
@@ -25,6 +26,7 @@ |
WorkerMessageFilter( |
int render_process_id, |
content::ResourceContext* resource_context, |
+ content::StoragePartitionImpl* storage_partition, |
const NextRoutingIDCallback& callback); |
// content::BrowserMessageFilter implementation. |
@@ -52,6 +54,11 @@ |
int render_process_id_; |
content::ResourceContext* const resource_context_; |
+ // Unlike other filters, this class of message filter holds a reference to |
+ // the storage partition so that worker process hosts can be created on the |
+ // IO thread. |
+ scoped_refptr<content::StoragePartitionImpl> storage_partition_impl_; |
+ |
// This is guaranteed to be valid until OnChannelClosing is closed, and it's |
// not used after. |
NextRoutingIDCallback next_routing_id_; |