OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 | 834 |
835 AddFilter( | 835 AddFilter( |
836 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); | 836 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); |
837 | 837 |
838 message_port_message_filter_ = new MessagePortMessageFilter( | 838 message_port_message_filter_ = new MessagePortMessageFilter( |
839 base::Bind(&RenderWidgetHelper::GetNextRoutingID, | 839 base::Bind(&RenderWidgetHelper::GetNextRoutingID, |
840 base::Unretained(widget_helper_.get()))); | 840 base::Unretained(widget_helper_.get()))); |
841 AddFilter(message_port_message_filter_.get()); | 841 AddFilter(message_port_message_filter_.get()); |
842 | 842 |
843 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = | 843 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = |
844 new ServiceWorkerDispatcherHost(GetID(), | 844 new ServiceWorkerDispatcherHost( |
845 message_port_message_filter_.get()); | 845 GetID(), message_port_message_filter_.get(), resource_context); |
846 service_worker_filter->Init( | 846 service_worker_filter->Init( |
847 storage_partition_impl_->GetServiceWorkerContext()); | 847 storage_partition_impl_->GetServiceWorkerContext()); |
848 AddFilter(service_worker_filter.get()); | 848 AddFilter(service_worker_filter.get()); |
849 | 849 |
850 AddFilter(new SharedWorkerMessageFilter( | 850 AddFilter(new SharedWorkerMessageFilter( |
851 GetID(), | 851 GetID(), |
852 resource_context, | 852 resource_context, |
853 WorkerStoragePartition( | 853 WorkerStoragePartition( |
854 storage_partition_impl_->GetURLRequestContext(), | 854 storage_partition_impl_->GetURLRequestContext(), |
855 storage_partition_impl_->GetMediaURLRequestContext(), | 855 storage_partition_impl_->GetMediaURLRequestContext(), |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2253 if (worker_ref_count_ == 0) | 2253 if (worker_ref_count_ == 0) |
2254 Cleanup(); | 2254 Cleanup(); |
2255 } | 2255 } |
2256 | 2256 |
2257 void RenderProcessHostImpl::EnsureMojoActivated() { | 2257 void RenderProcessHostImpl::EnsureMojoActivated() { |
2258 mojo_activation_required_ = true; | 2258 mojo_activation_required_ = true; |
2259 MaybeActivateMojo(); | 2259 MaybeActivateMojo(); |
2260 } | 2260 } |
2261 | 2261 |
2262 } // namespace content | 2262 } // namespace content |
OLD | NEW |