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

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

Issue 2584643002: Revamp OffscreenCanvas commit flow (Closed)
Patch Set: rebase and fix conflict Created 4 years 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 #include "content/browser/quota_dispatcher_host.h" 99 #include "content/browser/quota_dispatcher_host.h"
100 #include "content/browser/renderer_host/clipboard_message_filter.h" 100 #include "content/browser/renderer_host/clipboard_message_filter.h"
101 #include "content/browser/renderer_host/database_message_filter.h" 101 #include "content/browser/renderer_host/database_message_filter.h"
102 #include "content/browser/renderer_host/file_utilities_message_filter.h" 102 #include "content/browser/renderer_host/file_utilities_message_filter.h"
103 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 103 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
104 #include "content/browser/renderer_host/media/audio_renderer_host.h" 104 #include "content/browser/renderer_host/media/audio_renderer_host.h"
105 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 105 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
106 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 106 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
107 #include "content/browser/renderer_host/media/video_capture_host.h" 107 #include "content/browser/renderer_host/media/video_capture_host.h"
108 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h" 108 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h"
109 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" 109 #include "content/browser/renderer_host/offscreen_canvas_surface_factory_impl.h"
110 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 110 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
111 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 111 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
112 #include "content/browser/renderer_host/render_message_filter.h" 112 #include "content/browser/renderer_host/render_message_filter.h"
113 #include "content/browser/renderer_host/render_view_host_delegate.h" 113 #include "content/browser/renderer_host/render_view_host_delegate.h"
114 #include "content/browser/renderer_host/render_view_host_impl.h" 114 #include "content/browser/renderer_host/render_view_host_impl.h"
115 #include "content/browser/renderer_host/render_widget_helper.h" 115 #include "content/browser/renderer_host/render_widget_helper.h"
116 #include "content/browser/renderer_host/render_widget_host_impl.h" 116 #include "content/browser/renderer_host/render_widget_host_impl.h"
117 #include "content/browser/renderer_host/text_input_client_message_filter.h" 117 #include "content/browser/renderer_host/text_input_client_message_filter.h"
118 #include "content/browser/resolve_proxy_msg_helper.h" 118 #include "content/browser/resolve_proxy_msg_helper.h"
119 #include "content/browser/service_worker/service_worker_context_wrapper.h" 119 #include "content/browser/service_worker/service_worker_context_wrapper.h"
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 AddUIThreadInterface( 1212 AddUIThreadInterface(
1213 registry.get(), 1213 registry.get(),
1214 base::Bind(&PaymentAppContextImpl::CreatePaymentAppManager, 1214 base::Bind(&PaymentAppContextImpl::CreatePaymentAppManager,
1215 base::Unretained( 1215 base::Unretained(
1216 storage_partition_impl_->GetPaymentAppContext()))); 1216 storage_partition_impl_->GetPaymentAppContext())));
1217 1217
1218 AddUIThreadInterface( 1218 AddUIThreadInterface(
1219 registry.get(), 1219 registry.get(),
1220 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create)); 1220 base::Bind(&OffscreenCanvasCompositorFrameSinkProviderImpl::Create));
1221 AddUIThreadInterface(registry.get(), 1221 AddUIThreadInterface(registry.get(),
1222 base::Bind(&OffscreenCanvasSurfaceImpl::Create)); 1222 base::Bind(&OffscreenCanvasSurfaceFactoryImpl::Create));
1223 AddUIThreadInterface( 1223 AddUIThreadInterface(
1224 registry.get(), 1224 registry.get(),
1225 base::Bind(&BackgroundSyncContext::CreateService, 1225 base::Bind(&BackgroundSyncContext::CreateService,
1226 base::Unretained( 1226 base::Unretained(
1227 storage_partition_impl_->GetBackgroundSyncContext()))); 1227 storage_partition_impl_->GetBackgroundSyncContext())));
1228 AddUIThreadInterface( 1228 AddUIThreadInterface(
1229 registry.get(), 1229 registry.get(),
1230 base::Bind(&PlatformNotificationContextImpl::CreateService, 1230 base::Bind(&PlatformNotificationContextImpl::CreateService,
1231 base::Unretained( 1231 base::Unretained(
1232 storage_partition_impl_->GetPlatformNotificationContext()), 1232 storage_partition_impl_->GetPlatformNotificationContext()),
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
3019 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3019 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3020 3020
3021 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3021 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3022 // Capture the error message in a crash key value. 3022 // Capture the error message in a crash key value.
3023 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3023 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3024 bad_message::ReceivedBadMessage(render_process_id, 3024 bad_message::ReceivedBadMessage(render_process_id,
3025 bad_message::RPH_MOJO_PROCESS_ERROR); 3025 bad_message::RPH_MOJO_PROCESS_ERROR);
3026 } 3026 }
3027 3027
3028 } // namespace content 3028 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698