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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #include "content/browser/loader/resource_scheduler_filter.h" | 88 #include "content/browser/loader/resource_scheduler_filter.h" |
89 #include "content/browser/loader/url_loader_factory_impl.h" | 89 #include "content/browser/loader/url_loader_factory_impl.h" |
90 #include "content/browser/media/capture/audio_mirroring_manager.h" | 90 #include "content/browser/media/capture/audio_mirroring_manager.h" |
91 #include "content/browser/media/media_internals.h" | 91 #include "content/browser/media/media_internals.h" |
92 #include "content/browser/media/midi_host.h" | 92 #include "content/browser/media/midi_host.h" |
93 #include "content/browser/memory/memory_coordinator_impl.h" | 93 #include "content/browser/memory/memory_coordinator_impl.h" |
94 #include "content/browser/memory/memory_message_filter.h" | 94 #include "content/browser/memory/memory_message_filter.h" |
95 #include "content/browser/mime_registry_impl.h" | 95 #include "content/browser/mime_registry_impl.h" |
96 #include "content/browser/notifications/notification_message_filter.h" | 96 #include "content/browser/notifications/notification_message_filter.h" |
97 #include "content/browser/notifications/platform_notification_context_impl.h" | 97 #include "content/browser/notifications/platform_notification_context_impl.h" |
98 #include "content/browser/payments/payment_app_manager.h" | 98 #include "content/browser/payments/payment_manager.h" |
99 #include "content/browser/permissions/permission_service_context.h" | 99 #include "content/browser/permissions/permission_service_context.h" |
100 #include "content/browser/permissions/permission_service_impl.h" | 100 #include "content/browser/permissions/permission_service_impl.h" |
101 #include "content/browser/profiler_message_filter.h" | 101 #include "content/browser/profiler_message_filter.h" |
102 #include "content/browser/push_messaging/push_messaging_manager.h" | 102 #include "content/browser/push_messaging/push_messaging_manager.h" |
103 #include "content/browser/quota_dispatcher_host.h" | 103 #include "content/browser/quota_dispatcher_host.h" |
104 #include "content/browser/renderer_host/clipboard_message_filter.h" | 104 #include "content/browser/renderer_host/clipboard_message_filter.h" |
105 #include "content/browser/renderer_host/database_message_filter.h" | 105 #include "content/browser/renderer_host/database_message_filter.h" |
106 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 106 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
107 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 107 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
108 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 108 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 #endif | 1236 #endif |
1237 AddUIThreadInterface( | 1237 AddUIThreadInterface( |
1238 registry.get(), | 1238 registry.get(), |
1239 base::Bind(&PermissionServiceContext::CreateService, | 1239 base::Bind(&PermissionServiceContext::CreateService, |
1240 base::Unretained(permission_service_context_.get()))); | 1240 base::Unretained(permission_service_context_.get()))); |
1241 // TODO(mcasas): finalize arguments. | 1241 // TODO(mcasas): finalize arguments. |
1242 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); | 1242 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); |
1243 | 1243 |
1244 AddUIThreadInterface( | 1244 AddUIThreadInterface( |
1245 registry.get(), | 1245 registry.get(), |
1246 base::Bind(&PaymentAppContextImpl::CreatePaymentAppManager, | 1246 base::Bind( |
1247 base::Unretained( | 1247 &PaymentAppContextImpl::CreatePaymentManager, |
1248 storage_partition_impl_->GetPaymentAppContext()))); | 1248 base::Unretained(storage_partition_impl_->GetPaymentAppContext()))); |
1249 | 1249 |
1250 AddUIThreadInterface( | 1250 AddUIThreadInterface( |
1251 registry.get(), | 1251 registry.get(), |
1252 base::Bind(&RenderProcessHostImpl:: | 1252 base::Bind(&RenderProcessHostImpl:: |
1253 CreateOffscreenCanvasCompositorFrameSinkProvider, | 1253 CreateOffscreenCanvasCompositorFrameSinkProvider, |
1254 base::Unretained(this))); | 1254 base::Unretained(this))); |
1255 | 1255 |
1256 AddUIThreadInterface(registry.get(), | 1256 AddUIThreadInterface(registry.get(), |
1257 base::Bind(&OffscreenCanvasSurfaceFactoryImpl::Create)); | 1257 base::Bind(&OffscreenCanvasSurfaceFactoryImpl::Create)); |
1258 AddUIThreadInterface( | 1258 AddUIThreadInterface( |
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3071 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3072 | 3072 |
3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3073 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3074 // Capture the error message in a crash key value. | 3074 // Capture the error message in a crash key value. |
3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3075 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3076 bad_message::ReceivedBadMessage(render_process_id, | 3076 bad_message::ReceivedBadMessage(render_process_id, |
3077 bad_message::RPH_MOJO_PROCESS_ERROR); | 3077 bad_message::RPH_MOJO_PROCESS_ERROR); |
3078 } | 3078 } |
3079 | 3079 |
3080 } // namespace content | 3080 } // namespace content |
OLD | NEW |