Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(682)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Clean-up Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_compositor_frame_sink_p rovider_impl.h" 106 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h"
107 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" 107 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h"
108 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 108 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
109 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 109 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
110 #include "content/browser/renderer_host/render_message_filter.h" 110 #include "content/browser/renderer_host/render_message_filter.h"
111 #include "content/browser/renderer_host/render_view_host_delegate.h" 111 #include "content/browser/renderer_host/render_view_host_delegate.h"
112 #include "content/browser/renderer_host/render_view_host_impl.h" 112 #include "content/browser/renderer_host/render_view_host_impl.h"
113 #include "content/browser/renderer_host/render_widget_helper.h" 113 #include "content/browser/renderer_host/render_widget_helper.h"
114 #include "content/browser/renderer_host/render_widget_host_impl.h" 114 #include "content/browser/renderer_host/render_widget_host_impl.h"
115 #include "content/browser/renderer_host/shared_memory_allocator_impl.h"
115 #include "content/browser/renderer_host/text_input_client_message_filter.h" 116 #include "content/browser/renderer_host/text_input_client_message_filter.h"
116 #include "content/browser/resolve_proxy_msg_helper.h" 117 #include "content/browser/resolve_proxy_msg_helper.h"
117 #include "content/browser/service_worker/service_worker_context_wrapper.h" 118 #include "content/browser/service_worker/service_worker_context_wrapper.h"
118 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 119 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
119 #include "content/browser/shared_worker/shared_worker_message_filter.h" 120 #include "content/browser/shared_worker/shared_worker_message_filter.h"
120 #include "content/browser/shared_worker/worker_storage_partition.h" 121 #include "content/browser/shared_worker/worker_storage_partition.h"
121 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 122 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
122 #include "content/browser/storage_partition_impl.h" 123 #include "content/browser/storage_partition_impl.h"
123 #include "content/browser/streams/stream_context.h" 124 #include "content/browser/streams/stream_context.h"
124 #include "content/browser/tracing/trace_message_filter.h" 125 #include "content/browser/tracing/trace_message_filter.h"
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 // These callbacks will be run immediately on the IO thread. 1267 // These callbacks will be run immediately on the IO thread.
1267 registry->AddInterface(base::Bind(&DeviceLightHost::Create)); 1268 registry->AddInterface(base::Bind(&DeviceLightHost::Create));
1268 registry->AddInterface(base::Bind(&DeviceMotionHost::Create)); 1269 registry->AddInterface(base::Bind(&DeviceMotionHost::Create));
1269 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create)); 1270 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create));
1270 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create)); 1271 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create));
1271 1272
1272 registry->AddInterface( 1273 registry->AddInterface(
1273 base::Bind(&VideoCaptureHost::Create, 1274 base::Bind(&VideoCaptureHost::Create,
1274 BrowserMainLoop::GetInstance()->media_stream_manager())); 1275 BrowserMainLoop::GetInstance()->media_stream_manager()));
1275 1276
1277 registry->AddInterface(base::Bind(&SharedMemoryAllocatorImpl::Create));
1278
1276 // This is to support usage of WebSockets in cases in which there is no 1279 // This is to support usage of WebSockets in cases in which there is no
1277 // associated RenderFrame (e.g., Shared Workers). 1280 // associated RenderFrame (e.g., Shared Workers).
1278 AddUIThreadInterface( 1281 AddUIThreadInterface(
1279 registry.get(), base::Bind(&WebSocketManager::CreateWebSocket, GetID(), 1282 registry.get(), base::Bind(&WebSocketManager::CreateWebSocket, GetID(),
1280 MSG_ROUTING_NONE)); 1283 MSG_ROUTING_NONE));
1281 1284
1282 GetContentClient()->browser()->ExposeInterfacesToRenderer(registry.get(), 1285 GetContentClient()->browser()->ExposeInterfacesToRenderer(registry.get(),
1283 this); 1286 this);
1284 1287
1285 ServiceManagerConnection* service_manager_connection = 1288 ServiceManagerConnection* service_manager_connection =
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2985 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2988 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2986 2989
2987 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2990 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2988 // enough information here so that we can determine what the bad message was. 2991 // enough information here so that we can determine what the bad message was.
2989 base::debug::Alias(&error); 2992 base::debug::Alias(&error);
2990 bad_message::ReceivedBadMessage(render_process_id, 2993 bad_message::ReceivedBadMessage(render_process_id,
2991 bad_message::RPH_MOJO_PROCESS_ERROR); 2994 bad_message::RPH_MOJO_PROCESS_ERROR);
2992 } 2995 }
2993 2996
2994 } // namespace content 2997 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698