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

Unified Diff: content/browser/worker_host/worker_message_filter.h

Issue 10916132: AppCache and StoragePartition'ing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/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_;

Powered by Google App Engine
This is Rietveld 408576698