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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 #include "content/browser/quota_dispatcher_host.h" | 96 #include "content/browser/quota_dispatcher_host.h" |
97 #include "content/browser/renderer_host/clipboard_message_filter.h" | 97 #include "content/browser/renderer_host/clipboard_message_filter.h" |
98 #include "content/browser/renderer_host/database_message_filter.h" | 98 #include "content/browser/renderer_host/database_message_filter.h" |
99 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 99 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
102 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 102 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
103 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 103 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
104 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 104 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
105 #include "content/browser/renderer_host/media/video_capture_host.h" | 105 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 106 #include "content/browser/renderer_host/offscreen_canvas_frame_receiver_impl.h" |
106 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" | 107 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" |
107 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 108 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
108 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 109 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
109 #include "content/browser/renderer_host/render_message_filter.h" | 110 #include "content/browser/renderer_host/render_message_filter.h" |
110 #include "content/browser/renderer_host/render_view_host_delegate.h" | 111 #include "content/browser/renderer_host/render_view_host_delegate.h" |
111 #include "content/browser/renderer_host/render_view_host_impl.h" | 112 #include "content/browser/renderer_host/render_view_host_impl.h" |
112 #include "content/browser/renderer_host/render_widget_helper.h" | 113 #include "content/browser/renderer_host/render_widget_helper.h" |
113 #include "content/browser/renderer_host/render_widget_host_impl.h" | 114 #include "content/browser/renderer_host/render_widget_host_impl.h" |
114 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 115 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
115 #include "content/browser/resolve_proxy_msg_helper.h" | 116 #include "content/browser/resolve_proxy_msg_helper.h" |
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 AddUIThreadInterface( | 1203 AddUIThreadInterface( |
1203 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); | 1204 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); |
1204 #endif | 1205 #endif |
1205 AddUIThreadInterface( | 1206 AddUIThreadInterface( |
1206 registry.get(), | 1207 registry.get(), |
1207 base::Bind(&PermissionServiceContext::CreateService, | 1208 base::Bind(&PermissionServiceContext::CreateService, |
1208 base::Unretained(permission_service_context_.get()))); | 1209 base::Unretained(permission_service_context_.get()))); |
1209 // TODO(mcasas): finalize arguments. | 1210 // TODO(mcasas): finalize arguments. |
1210 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); | 1211 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); |
1211 AddUIThreadInterface(registry.get(), | 1212 AddUIThreadInterface(registry.get(), |
| 1213 base::Bind(&OffscreenCanvasFrameReceiverImpl::Create)); |
| 1214 AddUIThreadInterface(registry.get(), |
1212 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); | 1215 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); |
1213 AddUIThreadInterface( | 1216 AddUIThreadInterface( |
1214 registry.get(), | 1217 registry.get(), |
1215 base::Bind(&BackgroundSyncContext::CreateService, | 1218 base::Bind(&BackgroundSyncContext::CreateService, |
1216 base::Unretained( | 1219 base::Unretained( |
1217 storage_partition_impl_->GetBackgroundSyncContext()))); | 1220 storage_partition_impl_->GetBackgroundSyncContext()))); |
1218 AddUIThreadInterface( | 1221 AddUIThreadInterface( |
1219 registry.get(), | 1222 registry.get(), |
1220 base::Bind(&PlatformNotificationContextImpl::CreateService, | 1223 base::Bind(&PlatformNotificationContextImpl::CreateService, |
1221 base::Unretained( | 1224 base::Unretained( |
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2934 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2937 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2935 | 2938 |
2936 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2939 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2937 // enough information here so that we can determine what the bad message was. | 2940 // enough information here so that we can determine what the bad message was. |
2938 base::debug::Alias(&error); | 2941 base::debug::Alias(&error); |
2939 bad_message::ReceivedBadMessage(process.get(), | 2942 bad_message::ReceivedBadMessage(process.get(), |
2940 bad_message::RPH_MOJO_PROCESS_ERROR); | 2943 bad_message::RPH_MOJO_PROCESS_ERROR); |
2941 } | 2944 } |
2942 | 2945 |
2943 } // namespace content | 2946 } // namespace content |
OLD | NEW |