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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 #include "content/browser/quota_dispatcher_host.h" | 95 #include "content/browser/quota_dispatcher_host.h" |
96 #include "content/browser/renderer_host/clipboard_message_filter.h" | 96 #include "content/browser/renderer_host/clipboard_message_filter.h" |
97 #include "content/browser/renderer_host/database_message_filter.h" | 97 #include "content/browser/renderer_host/database_message_filter.h" |
98 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 98 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
99 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 99 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
100 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 100 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
101 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 101 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
102 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 102 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
103 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 103 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
104 #include "content/browser/renderer_host/media/video_capture_host.h" | 104 #include "content/browser/renderer_host/media/video_capture_host.h" |
105 #include "content/browser/renderer_host/offscreen_canvas_frame_receiver_impl.h" | 105 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" |
106 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" | 106 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" |
107 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 107 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
108 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 108 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
109 #include "content/browser/renderer_host/render_message_filter.h" | 109 #include "content/browser/renderer_host/render_message_filter.h" |
110 #include "content/browser/renderer_host/render_view_host_delegate.h" | 110 #include "content/browser/renderer_host/render_view_host_delegate.h" |
111 #include "content/browser/renderer_host/render_view_host_impl.h" | 111 #include "content/browser/renderer_host/render_view_host_impl.h" |
112 #include "content/browser/renderer_host/render_widget_helper.h" | 112 #include "content/browser/renderer_host/render_widget_helper.h" |
113 #include "content/browser/renderer_host/render_widget_host_impl.h" | 113 #include "content/browser/renderer_host/render_widget_host_impl.h" |
114 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 114 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
115 #include "content/browser/resolve_proxy_msg_helper.h" | 115 #include "content/browser/resolve_proxy_msg_helper.h" |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 #if !defined(OS_ANDROID) | 1205 #if !defined(OS_ANDROID) |
1206 AddUIThreadInterface( | 1206 AddUIThreadInterface( |
1207 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); | 1207 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); |
1208 #endif | 1208 #endif |
1209 AddUIThreadInterface( | 1209 AddUIThreadInterface( |
1210 registry.get(), | 1210 registry.get(), |
1211 base::Bind(&PermissionServiceContext::CreateService, | 1211 base::Bind(&PermissionServiceContext::CreateService, |
1212 base::Unretained(permission_service_context_.get()))); | 1212 base::Unretained(permission_service_context_.get()))); |
1213 // TODO(mcasas): finalize arguments. | 1213 // TODO(mcasas): finalize arguments. |
1214 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); | 1214 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); |
1215 AddUIThreadInterface(registry.get(), | 1215 AddUIThreadInterface( |
1216 base::Bind(&OffscreenCanvasFrameReceiverImpl::Create)); | 1216 registry.get(), |
| 1217 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create)); |
1217 AddUIThreadInterface(registry.get(), | 1218 AddUIThreadInterface(registry.get(), |
1218 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); | 1219 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); |
1219 AddUIThreadInterface( | 1220 AddUIThreadInterface( |
1220 registry.get(), | 1221 registry.get(), |
1221 base::Bind(&BackgroundSyncContext::CreateService, | 1222 base::Bind(&BackgroundSyncContext::CreateService, |
1222 base::Unretained( | 1223 base::Unretained( |
1223 storage_partition_impl_->GetBackgroundSyncContext()))); | 1224 storage_partition_impl_->GetBackgroundSyncContext()))); |
1224 AddUIThreadInterface( | 1225 AddUIThreadInterface( |
1225 registry.get(), | 1226 registry.get(), |
1226 base::Bind(&PlatformNotificationContextImpl::CreateService, | 1227 base::Bind(&PlatformNotificationContextImpl::CreateService, |
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2994 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2994 | 2995 |
2995 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2996 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2996 // enough information here so that we can determine what the bad message was. | 2997 // enough information here so that we can determine what the bad message was. |
2997 base::debug::Alias(&error); | 2998 base::debug::Alias(&error); |
2998 bad_message::ReceivedBadMessage(process.get(), | 2999 bad_message::ReceivedBadMessage(process.get(), |
2999 bad_message::RPH_MOJO_PROCESS_ERROR); | 3000 bad_message::RPH_MOJO_PROCESS_ERROR); |
3000 } | 3001 } |
3001 | 3002 |
3002 } // namespace content | 3003 } // namespace content |
OLD | NEW |