| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #include "content/browser/media/capture/audio_mirroring_manager.h" | 81 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| 82 #include "content/browser/media/capture/image_capture_impl.h" | 82 #include "content/browser/media/capture/image_capture_impl.h" |
| 83 #include "content/browser/media/media_internals.h" | 83 #include "content/browser/media/media_internals.h" |
| 84 #include "content/browser/media/midi_host.h" | 84 #include "content/browser/media/midi_host.h" |
| 85 #include "content/browser/memory/memory_coordinator.h" | 85 #include "content/browser/memory/memory_coordinator.h" |
| 86 #include "content/browser/memory/memory_message_filter.h" | 86 #include "content/browser/memory/memory_message_filter.h" |
| 87 #include "content/browser/message_port_message_filter.h" | 87 #include "content/browser/message_port_message_filter.h" |
| 88 #include "content/browser/mime_registry_impl.h" | 88 #include "content/browser/mime_registry_impl.h" |
| 89 #include "content/browser/notifications/notification_message_filter.h" | 89 #include "content/browser/notifications/notification_message_filter.h" |
| 90 #include "content/browser/notifications/platform_notification_context_impl.h" | 90 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 91 #include "content/browser/payments/payment_app_manager.h" |
| 91 #include "content/browser/permissions/permission_service_context.h" | 92 #include "content/browser/permissions/permission_service_context.h" |
| 92 #include "content/browser/permissions/permission_service_impl.h" | 93 #include "content/browser/permissions/permission_service_impl.h" |
| 93 #include "content/browser/power_monitor_message_broadcaster.h" | 94 #include "content/browser/power_monitor_message_broadcaster.h" |
| 94 #include "content/browser/profiler_message_filter.h" | 95 #include "content/browser/profiler_message_filter.h" |
| 95 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 96 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
| 96 #include "content/browser/quota_dispatcher_host.h" | 97 #include "content/browser/quota_dispatcher_host.h" |
| 97 #include "content/browser/renderer_host/clipboard_message_filter.h" | 98 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 98 #include "content/browser/renderer_host/database_message_filter.h" | 99 #include "content/browser/renderer_host/database_message_filter.h" |
| 99 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 100 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 101 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 #else | 1206 #else |
| 1206 AddUIThreadInterface( | 1207 AddUIThreadInterface( |
| 1207 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); | 1208 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); |
| 1208 #endif | 1209 #endif |
| 1209 AddUIThreadInterface( | 1210 AddUIThreadInterface( |
| 1210 registry.get(), | 1211 registry.get(), |
| 1211 base::Bind(&PermissionServiceContext::CreateService, | 1212 base::Bind(&PermissionServiceContext::CreateService, |
| 1212 base::Unretained(permission_service_context_.get()))); | 1213 base::Unretained(permission_service_context_.get()))); |
| 1213 // TODO(mcasas): finalize arguments. | 1214 // TODO(mcasas): finalize arguments. |
| 1214 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); | 1215 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); |
| 1216 |
| 1217 AddUIThreadInterface( |
| 1218 registry.get(), |
| 1219 base::Bind(&PaymentAppContext::CreateService, |
| 1220 base::Unretained( |
| 1221 storage_partition_impl_->GetPaymentAppContext()))); |
| 1222 |
| 1215 AddUIThreadInterface( | 1223 AddUIThreadInterface( |
| 1216 registry.get(), | 1224 registry.get(), |
| 1217 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create)); | 1225 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create)); |
| 1218 AddUIThreadInterface(registry.get(), | 1226 AddUIThreadInterface(registry.get(), |
| 1219 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); | 1227 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); |
| 1220 AddUIThreadInterface( | 1228 AddUIThreadInterface( |
| 1221 registry.get(), | 1229 registry.get(), |
| 1222 base::Bind(&BackgroundSyncContext::CreateService, | 1230 base::Bind(&BackgroundSyncContext::CreateService, |
| 1223 base::Unretained( | 1231 base::Unretained( |
| 1224 storage_partition_impl_->GetBackgroundSyncContext()))); | 1232 storage_partition_impl_->GetBackgroundSyncContext()))); |
| (...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2978 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2986 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2979 | 2987 |
| 2980 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2988 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2981 // enough information here so that we can determine what the bad message was. | 2989 // enough information here so that we can determine what the bad message was. |
| 2982 base::debug::Alias(&error); | 2990 base::debug::Alias(&error); |
| 2983 bad_message::ReceivedBadMessage(render_process_id, | 2991 bad_message::ReceivedBadMessage(render_process_id, |
| 2984 bad_message::RPH_MOJO_PROCESS_ERROR); | 2992 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2985 } | 2993 } |
| 2986 | 2994 |
| 2987 } // namespace content | 2995 } // namespace content |
| OLD | NEW |