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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 AddUIThreadInterface( | 1216 AddUIThreadInterface( |
1216 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); | 1217 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); |
1217 #endif | 1218 #endif |
1218 AddUIThreadInterface( | 1219 AddUIThreadInterface( |
1219 registry.get(), | 1220 registry.get(), |
1220 base::Bind(&PermissionServiceContext::CreateService, | 1221 base::Bind(&PermissionServiceContext::CreateService, |
1221 base::Unretained(permission_service_context_.get()))); | 1222 base::Unretained(permission_service_context_.get()))); |
1222 // TODO(mcasas): finalize arguments. | 1223 // TODO(mcasas): finalize arguments. |
1223 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); | 1224 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); |
1224 AddUIThreadInterface(registry.get(), | 1225 AddUIThreadInterface(registry.get(), |
| 1226 base::Bind(&OffscreenCanvasFrameReceiverImpl::Create)); |
| 1227 AddUIThreadInterface(registry.get(), |
1225 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); | 1228 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); |
1226 AddUIThreadInterface( | 1229 AddUIThreadInterface( |
1227 registry.get(), | 1230 registry.get(), |
1228 base::Bind(&BackgroundSyncContext::CreateService, | 1231 base::Bind(&BackgroundSyncContext::CreateService, |
1229 base::Unretained( | 1232 base::Unretained( |
1230 storage_partition_impl_->GetBackgroundSyncContext()))); | 1233 storage_partition_impl_->GetBackgroundSyncContext()))); |
1231 AddUIThreadInterface( | 1234 AddUIThreadInterface( |
1232 registry.get(), | 1235 registry.get(), |
1233 base::Bind(&PlatformNotificationContextImpl::CreateService, | 1236 base::Bind(&PlatformNotificationContextImpl::CreateService, |
1234 base::Unretained( | 1237 base::Unretained( |
(...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2962 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2965 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2963 | 2966 |
2964 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2967 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2965 // enough information here so that we can determine what the bad message was. | 2968 // enough information here so that we can determine what the bad message was. |
2966 base::debug::Alias(&error); | 2969 base::debug::Alias(&error); |
2967 bad_message::ReceivedBadMessage(process.get(), | 2970 bad_message::ReceivedBadMessage(process.get(), |
2968 bad_message::RPH_MOJO_PROCESS_ERROR); | 2971 bad_message::RPH_MOJO_PROCESS_ERROR); |
2969 } | 2972 } |
2970 | 2973 |
2971 } // namespace content | 2974 } // namespace content |
OLD | NEW |