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_surface_impl.h" |
106 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 107 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
107 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 108 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
108 #include "content/browser/renderer_host/render_message_filter.h" | 109 #include "content/browser/renderer_host/render_message_filter.h" |
109 #include "content/browser/renderer_host/render_view_host_delegate.h" | 110 #include "content/browser/renderer_host/render_view_host_delegate.h" |
110 #include "content/browser/renderer_host/render_view_host_impl.h" | 111 #include "content/browser/renderer_host/render_view_host_impl.h" |
111 #include "content/browser/renderer_host/render_widget_helper.h" | 112 #include "content/browser/renderer_host/render_widget_helper.h" |
112 #include "content/browser/renderer_host/render_widget_host_impl.h" | 113 #include "content/browser/renderer_host/render_widget_host_impl.h" |
113 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 114 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
114 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 115 #include "content/browser/renderer_host/websocket_dispatcher_host.h" |
115 #include "content/browser/resolve_proxy_msg_helper.h" | 116 #include "content/browser/resolve_proxy_msg_helper.h" |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 #endif | 1030 #endif |
1030 | 1031 |
1031 mojo_application_host_->service_registry()->AddService( | 1032 mojo_application_host_->service_registry()->AddService( |
1032 base::Bind(&PermissionServiceContext::CreateService, | 1033 base::Bind(&PermissionServiceContext::CreateService, |
1033 base::Unretained(permission_service_context_.get()))); | 1034 base::Unretained(permission_service_context_.get()))); |
1034 | 1035 |
1035 // TODO(mcasas): finalize arguments. | 1036 // TODO(mcasas): finalize arguments. |
1036 mojo_application_host_->service_registry()->AddService( | 1037 mojo_application_host_->service_registry()->AddService( |
1037 base::Bind(&ImageCaptureImpl::Create)); | 1038 base::Bind(&ImageCaptureImpl::Create)); |
1038 | 1039 |
| 1040 mojo_application_host_->service_registry()->AddService( |
| 1041 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); |
| 1042 |
1039 mojo_application_host_->service_registry()->AddService(base::Bind( | 1043 mojo_application_host_->service_registry()->AddService(base::Bind( |
1040 &BackgroundSyncContext::CreateService, | 1044 &BackgroundSyncContext::CreateService, |
1041 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 1045 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
1042 | 1046 |
1043 mojo_application_host_->service_registry()->AddService(base::Bind( | 1047 mojo_application_host_->service_registry()->AddService(base::Bind( |
1044 &PlatformNotificationContextImpl::CreateService, | 1048 &PlatformNotificationContextImpl::CreateService, |
1045 base::Unretained( | 1049 base::Unretained( |
1046 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); | 1050 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); |
1047 | 1051 |
1048 mojo_application_host_->service_registry()->AddService( | 1052 mojo_application_host_->service_registry()->AddService( |
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2810 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2814 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2811 | 2815 |
2812 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2816 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2813 // enough information here so that we can determine what the bad message was. | 2817 // enough information here so that we can determine what the bad message was. |
2814 base::debug::Alias(&error); | 2818 base::debug::Alias(&error); |
2815 bad_message::ReceivedBadMessage(process.get(), | 2819 bad_message::ReceivedBadMessage(process.get(), |
2816 bad_message::RPH_MOJO_PROCESS_ERROR); | 2820 bad_message::RPH_MOJO_PROCESS_ERROR); |
2817 } | 2821 } |
2818 | 2822 |
2819 } // namespace content | 2823 } // namespace content |
OLD | NEW |