| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 AddFilter(notification_message_filter_.get()); | 1199 AddFilter(notification_message_filter_.get()); |
| 1200 | 1200 |
| 1201 AddFilter(new GamepadBrowserMessageFilter()); | 1201 AddFilter(new GamepadBrowserMessageFilter()); |
| 1202 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 1202 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 1203 AddFilter(new HistogramMessageFilter()); | 1203 AddFilter(new HistogramMessageFilter()); |
| 1204 AddFilter(new MemoryMessageFilter(this)); | 1204 AddFilter(new MemoryMessageFilter(this)); |
| 1205 AddFilter(new PushMessagingMessageFilter( | 1205 AddFilter(new PushMessagingMessageFilter( |
| 1206 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1206 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 1207 #if defined(OS_ANDROID) | 1207 #if defined(OS_ANDROID) |
| 1208 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1208 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 1209 synchronous_compositor_filter_ = new SynchronousCompositorObserver(GetID()); | 1209 synchronous_compositor_filter_ = |
| 1210 new SynchronousCompositorBrowserFilter(GetID()); |
| 1210 AddFilter(synchronous_compositor_filter_.get()); | 1211 AddFilter(synchronous_compositor_filter_.get()); |
| 1211 #endif | 1212 #endif |
| 1212 } | 1213 } |
| 1213 | 1214 |
| 1214 void RenderProcessHostImpl::RegisterMojoInterfaces() { | 1215 void RenderProcessHostImpl::RegisterMojoInterfaces() { |
| 1215 std::unique_ptr<service_manager::InterfaceRegistry> registry( | 1216 std::unique_ptr<service_manager::InterfaceRegistry> registry( |
| 1216 new service_manager::InterfaceRegistry); | 1217 new service_manager::InterfaceRegistry); |
| 1217 | 1218 |
| 1218 channel_->AddAssociatedInterface( | 1219 channel_->AddAssociatedInterface( |
| 1219 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, | 1220 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, |
| (...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3008 bad_message::ReceivedBadMessage(render_process_id, | 3009 bad_message::ReceivedBadMessage(render_process_id, |
| 3009 bad_message::RPH_MOJO_PROCESS_ERROR); | 3010 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3010 } | 3011 } |
| 3011 | 3012 |
| 3012 void RenderProcessHostImpl::CreateURLLoaderFactory( | 3013 void RenderProcessHostImpl::CreateURLLoaderFactory( |
| 3013 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { | 3014 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { |
| 3014 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); | 3015 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); |
| 3015 } | 3016 } |
| 3016 | 3017 |
| 3017 } // namespace content | 3018 } // namespace content |
| OLD | NEW |