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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 90 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
91 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 91 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
92 #include "content/browser/renderer_host/render_message_filter.h" | 92 #include "content/browser/renderer_host/render_message_filter.h" |
93 #include "content/browser/renderer_host/render_view_host_delegate.h" | 93 #include "content/browser/renderer_host/render_view_host_delegate.h" |
94 #include "content/browser/renderer_host/render_view_host_impl.h" | 94 #include "content/browser/renderer_host/render_view_host_impl.h" |
95 #include "content/browser/renderer_host/render_widget_helper.h" | 95 #include "content/browser/renderer_host/render_widget_helper.h" |
96 #include "content/browser/renderer_host/render_widget_host_impl.h" | 96 #include "content/browser/renderer_host/render_widget_host_impl.h" |
97 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 97 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
98 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 98 #include "content/browser/renderer_host/websocket_dispatcher_host.h" |
99 #include "content/browser/resolve_proxy_msg_helper.h" | 99 #include "content/browser/resolve_proxy_msg_helper.h" |
| 100 #include "content/browser/service_worker/cache_storage_context_impl.h" |
| 101 #include "content/browser/service_worker/cache_storage_dispatcher_host.h" |
100 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 102 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
101 #include "content/browser/service_worker/service_worker_dispatcher_host.h" | 103 #include "content/browser/service_worker/service_worker_dispatcher_host.h" |
102 #include "content/browser/shared_worker/shared_worker_message_filter.h" | 104 #include "content/browser/shared_worker/shared_worker_message_filter.h" |
103 #include "content/browser/shared_worker/worker_storage_partition.h" | 105 #include "content/browser/shared_worker/worker_storage_partition.h" |
104 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 106 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
105 #include "content/browser/storage_partition_impl.h" | 107 #include "content/browser/storage_partition_impl.h" |
106 #include "content/browser/streams/stream_context.h" | 108 #include "content/browser/streams/stream_context.h" |
107 #include "content/browser/tracing/trace_message_filter.h" | 109 #include "content/browser/tracing/trace_message_filter.h" |
108 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 110 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
109 #include "content/common/child_process_host_impl.h" | 111 #include "content/common/child_process_host_impl.h" |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 media_request_context, RESOURCE_TYPE_SUB_RESOURCE)); | 857 media_request_context, RESOURCE_TYPE_SUB_RESOURCE)); |
856 | 858 |
857 AddFilter( | 859 AddFilter( |
858 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); | 860 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); |
859 | 861 |
860 message_port_message_filter_ = new MessagePortMessageFilter( | 862 message_port_message_filter_ = new MessagePortMessageFilter( |
861 base::Bind(&RenderWidgetHelper::GetNextRoutingID, | 863 base::Bind(&RenderWidgetHelper::GetNextRoutingID, |
862 base::Unretained(widget_helper_.get()))); | 864 base::Unretained(widget_helper_.get()))); |
863 AddFilter(message_port_message_filter_.get()); | 865 AddFilter(message_port_message_filter_.get()); |
864 | 866 |
| 867 scoped_refptr<CacheStorageDispatcherHost> cache_storage_filter = |
| 868 new CacheStorageDispatcherHost(); |
| 869 cache_storage_filter->Init(storage_partition_impl_->GetCacheStorageContext()); |
| 870 AddFilter(cache_storage_filter.get()); |
| 871 |
865 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = | 872 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = |
866 new ServiceWorkerDispatcherHost( | 873 new ServiceWorkerDispatcherHost( |
867 GetID(), message_port_message_filter_.get(), resource_context); | 874 GetID(), message_port_message_filter_.get(), resource_context); |
868 service_worker_filter->Init( | 875 service_worker_filter->Init( |
869 storage_partition_impl_->GetServiceWorkerContext()); | 876 storage_partition_impl_->GetServiceWorkerContext()); |
870 AddFilter(service_worker_filter.get()); | 877 AddFilter(service_worker_filter.get()); |
871 | 878 |
872 AddFilter(new SharedWorkerMessageFilter( | 879 AddFilter(new SharedWorkerMessageFilter( |
873 GetID(), | 880 GetID(), |
874 resource_context, | 881 resource_context, |
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2474 if (worker_ref_count_ == 0) | 2481 if (worker_ref_count_ == 0) |
2475 Cleanup(); | 2482 Cleanup(); |
2476 } | 2483 } |
2477 | 2484 |
2478 void RenderProcessHostImpl::GetAudioOutputControllers( | 2485 void RenderProcessHostImpl::GetAudioOutputControllers( |
2479 const GetAudioOutputControllersCallback& callback) const { | 2486 const GetAudioOutputControllersCallback& callback) const { |
2480 audio_renderer_host()->GetOutputControllers(callback); | 2487 audio_renderer_host()->GetOutputControllers(callback); |
2481 } | 2488 } |
2482 | 2489 |
2483 } // namespace content | 2490 } // namespace content |
OLD | NEW |