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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 AddFilter(notification_message_filter_.get()); | 1195 AddFilter(notification_message_filter_.get()); |
1196 | 1196 |
1197 AddFilter(new GamepadBrowserMessageFilter()); | 1197 AddFilter(new GamepadBrowserMessageFilter()); |
1198 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 1198 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
1199 AddFilter(new HistogramMessageFilter()); | 1199 AddFilter(new HistogramMessageFilter()); |
1200 AddFilter(new MemoryMessageFilter(this)); | 1200 AddFilter(new MemoryMessageFilter(this)); |
1201 AddFilter(new PushMessagingMessageFilter( | 1201 AddFilter(new PushMessagingMessageFilter( |
1202 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1202 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
1203 #if defined(OS_ANDROID) | 1203 #if defined(OS_ANDROID) |
1204 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1204 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 1205 synchronous_compositor_filter_ = new SynchronousCompositorObserver(GetID()); |
| 1206 AddFilter(synchronous_compositor_filter_.get()); |
1205 #endif | 1207 #endif |
1206 } | 1208 } |
1207 | 1209 |
1208 void RenderProcessHostImpl::RegisterMojoInterfaces() { | 1210 void RenderProcessHostImpl::RegisterMojoInterfaces() { |
1209 std::unique_ptr<service_manager::InterfaceRegistry> registry( | 1211 std::unique_ptr<service_manager::InterfaceRegistry> registry( |
1210 new service_manager::InterfaceRegistry); | 1212 new service_manager::InterfaceRegistry); |
1211 | 1213 |
1212 channel_->AddAssociatedInterface( | 1214 channel_->AddAssociatedInterface( |
1213 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, | 1215 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, |
1214 base::Unretained(this))); | 1216 base::Unretained(this))); |
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2994 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2996 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2995 | 2997 |
2996 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2998 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2997 // enough information here so that we can determine what the bad message was. | 2999 // enough information here so that we can determine what the bad message was. |
2998 base::debug::Alias(&error); | 3000 base::debug::Alias(&error); |
2999 bad_message::ReceivedBadMessage(render_process_id, | 3001 bad_message::ReceivedBadMessage(render_process_id, |
3000 bad_message::RPH_MOJO_PROCESS_ERROR); | 3002 bad_message::RPH_MOJO_PROCESS_ERROR); |
3001 } | 3003 } |
3002 | 3004 |
3003 } // namespace content | 3005 } // namespace content |
OLD | NEW |