| 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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 AddFilter(notification_message_filter_.get()); | 1197 AddFilter(notification_message_filter_.get()); |
| 1198 | 1198 |
| 1199 AddFilter(new GamepadBrowserMessageFilter()); | 1199 AddFilter(new GamepadBrowserMessageFilter()); |
| 1200 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 1200 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 1201 AddFilter(new HistogramMessageFilter()); | 1201 AddFilter(new HistogramMessageFilter()); |
| 1202 AddFilter(new MemoryMessageFilter(this)); | 1202 AddFilter(new MemoryMessageFilter(this)); |
| 1203 AddFilter(new PushMessagingMessageFilter( | 1203 AddFilter(new PushMessagingMessageFilter( |
| 1204 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1204 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 1205 #if defined(OS_ANDROID) | 1205 #if defined(OS_ANDROID) |
| 1206 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1206 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 1207 synchronous_compositor_filter_ = new SynchronousCompositorObserver(GetID()); |
| 1208 AddFilter(synchronous_compositor_filter_.get()); |
| 1207 #endif | 1209 #endif |
| 1208 } | 1210 } |
| 1209 | 1211 |
| 1210 void RenderProcessHostImpl::RegisterMojoInterfaces() { | 1212 void RenderProcessHostImpl::RegisterMojoInterfaces() { |
| 1211 std::unique_ptr<service_manager::InterfaceRegistry> registry( | 1213 std::unique_ptr<service_manager::InterfaceRegistry> registry( |
| 1212 new service_manager::InterfaceRegistry); | 1214 new service_manager::InterfaceRegistry); |
| 1213 | 1215 |
| 1214 channel_->AddAssociatedInterface( | 1216 channel_->AddAssociatedInterface( |
| 1215 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, | 1217 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, |
| 1216 base::Unretained(this))); | 1218 base::Unretained(this))); |
| (...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3001 bad_message::ReceivedBadMessage(render_process_id, | 3003 bad_message::ReceivedBadMessage(render_process_id, |
| 3002 bad_message::RPH_MOJO_PROCESS_ERROR); | 3004 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3003 } | 3005 } |
| 3004 | 3006 |
| 3005 void RenderProcessHostImpl::CreateURLLoaderFactory( | 3007 void RenderProcessHostImpl::CreateURLLoaderFactory( |
| 3006 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { | 3008 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { |
| 3007 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); | 3009 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); |
| 3008 } | 3010 } |
| 3009 | 3011 |
| 3010 } // namespace content | 3012 } // namespace content |
| OLD | NEW |