| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #include "content/browser/quota_dispatcher_host.h" | 98 #include "content/browser/quota_dispatcher_host.h" |
| 99 #include "content/browser/renderer_host/clipboard_message_filter.h" | 99 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 100 #include "content/browser/renderer_host/database_message_filter.h" | 100 #include "content/browser/renderer_host/database_message_filter.h" |
| 101 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 101 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 102 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 102 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 103 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 103 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 104 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 104 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 105 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 105 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 106 #include "content/browser/renderer_host/media/video_capture_host.h" | 106 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 107 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" | 107 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" |
| 108 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" | 108 #include "content/browser/renderer_host/offscreen_canvas_surface_factory_impl.h" |
| 109 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 109 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 110 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 110 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
| 111 #include "content/browser/renderer_host/render_message_filter.h" | 111 #include "content/browser/renderer_host/render_message_filter.h" |
| 112 #include "content/browser/renderer_host/render_view_host_delegate.h" | 112 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 113 #include "content/browser/renderer_host/render_view_host_impl.h" | 113 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 114 #include "content/browser/renderer_host/render_widget_helper.h" | 114 #include "content/browser/renderer_host/render_widget_helper.h" |
| 115 #include "content/browser/renderer_host/render_widget_host_impl.h" | 115 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 116 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 116 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
| 117 #include "content/browser/resolve_proxy_msg_helper.h" | 117 #include "content/browser/resolve_proxy_msg_helper.h" |
| 118 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 118 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
| (...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 AddUIThreadInterface( | 1210 AddUIThreadInterface( |
| 1211 registry.get(), | 1211 registry.get(), |
| 1212 base::Bind(&PaymentAppContextImpl::CreateService, | 1212 base::Bind(&PaymentAppContextImpl::CreateService, |
| 1213 base::Unretained( | 1213 base::Unretained( |
| 1214 storage_partition_impl_->GetPaymentAppContext()))); | 1214 storage_partition_impl_->GetPaymentAppContext()))); |
| 1215 | 1215 |
| 1216 AddUIThreadInterface( | 1216 AddUIThreadInterface( |
| 1217 registry.get(), | 1217 registry.get(), |
| 1218 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create)); | 1218 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create)); |
| 1219 AddUIThreadInterface(registry.get(), | 1219 AddUIThreadInterface(registry.get(), |
| 1220 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); | 1220 base::Bind(&OffscreenCanvasSurfaceFactoryImpl::Create)); |
| 1221 AddUIThreadInterface( | 1221 AddUIThreadInterface( |
| 1222 registry.get(), | 1222 registry.get(), |
| 1223 base::Bind(&BackgroundSyncContext::CreateService, | 1223 base::Bind(&BackgroundSyncContext::CreateService, |
| 1224 base::Unretained( | 1224 base::Unretained( |
| 1225 storage_partition_impl_->GetBackgroundSyncContext()))); | 1225 storage_partition_impl_->GetBackgroundSyncContext()))); |
| 1226 AddUIThreadInterface( | 1226 AddUIThreadInterface( |
| 1227 registry.get(), | 1227 registry.get(), |
| 1228 base::Bind(&PlatformNotificationContextImpl::CreateService, | 1228 base::Bind(&PlatformNotificationContextImpl::CreateService, |
| 1229 base::Unretained( | 1229 base::Unretained( |
| 1230 storage_partition_impl_->GetPlatformNotificationContext()), | 1230 storage_partition_impl_->GetPlatformNotificationContext()), |
| (...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3003 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3003 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3004 | 3004 |
| 3005 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3005 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3006 // Capture the error message in a crash key value. | 3006 // Capture the error message in a crash key value. |
| 3007 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3007 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3008 bad_message::ReceivedBadMessage(render_process_id, | 3008 bad_message::ReceivedBadMessage(render_process_id, |
| 3009 bad_message::RPH_MOJO_PROCESS_ERROR); | 3009 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3010 } | 3010 } |
| 3011 | 3011 |
| 3012 } // namespace content | 3012 } // namespace content |
| OLD | NEW |