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

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

Issue 2036663003: Establish mojo service between Canvas (blink) and SurfaceManager (browser) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Throw away typemaps in Blink Created 4 years, 6 months 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 #include "content/browser/quota_dispatcher_host.h" 96 #include "content/browser/quota_dispatcher_host.h"
97 #include "content/browser/renderer_host/clipboard_message_filter.h" 97 #include "content/browser/renderer_host/clipboard_message_filter.h"
98 #include "content/browser/renderer_host/database_message_filter.h" 98 #include "content/browser/renderer_host/database_message_filter.h"
99 #include "content/browser/renderer_host/file_utilities_message_filter.h" 99 #include "content/browser/renderer_host/file_utilities_message_filter.h"
100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
102 #include "content/browser/renderer_host/media/audio_renderer_host.h" 102 #include "content/browser/renderer_host/media/audio_renderer_host.h"
103 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 103 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
104 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 104 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
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_surface_service_impl.h"
106 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 107 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
107 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 108 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
108 #include "content/browser/renderer_host/render_message_filter.h" 109 #include "content/browser/renderer_host/render_message_filter.h"
109 #include "content/browser/renderer_host/render_view_host_delegate.h" 110 #include "content/browser/renderer_host/render_view_host_delegate.h"
110 #include "content/browser/renderer_host/render_view_host_impl.h" 111 #include "content/browser/renderer_host/render_view_host_impl.h"
111 #include "content/browser/renderer_host/render_widget_helper.h" 112 #include "content/browser/renderer_host/render_widget_helper.h"
112 #include "content/browser/renderer_host/render_widget_host_impl.h" 113 #include "content/browser/renderer_host/render_widget_host_impl.h"
113 #include "content/browser/renderer_host/text_input_client_message_filter.h" 114 #include "content/browser/renderer_host/text_input_client_message_filter.h"
114 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 115 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
115 #include "content/browser/resolve_proxy_msg_helper.h" 116 #include "content/browser/resolve_proxy_msg_helper.h"
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 #endif 1070 #endif
1070 1071
1071 mojo_application_host_->service_registry()->AddService( 1072 mojo_application_host_->service_registry()->AddService(
1072 base::Bind(&PermissionServiceContext::CreateService, 1073 base::Bind(&PermissionServiceContext::CreateService,
1073 base::Unretained(permission_service_context_.get()))); 1074 base::Unretained(permission_service_context_.get())));
1074 1075
1075 // TODO(mcasas): finalize arguments. 1076 // TODO(mcasas): finalize arguments.
1076 mojo_application_host_->service_registry()->AddService( 1077 mojo_application_host_->service_registry()->AddService(
1077 base::Bind(&ImageCaptureImpl::Create)); 1078 base::Bind(&ImageCaptureImpl::Create));
1078 1079
1080 mojo_application_host_->service_registry()->AddService(
1081 base::Bind(&OffscreenCanvasSurfaceServiceImpl::Create));
1082
1079 mojo_application_host_->service_registry()->AddService(base::Bind( 1083 mojo_application_host_->service_registry()->AddService(base::Bind(
1080 &BackgroundSyncContext::CreateService, 1084 &BackgroundSyncContext::CreateService,
1081 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1085 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1082 1086
1083 mojo_application_host_->service_registry()->AddService(base::Bind( 1087 mojo_application_host_->service_registry()->AddService(base::Bind(
1084 &PlatformNotificationContextImpl::CreateService, 1088 &PlatformNotificationContextImpl::CreateService,
1085 base::Unretained( 1089 base::Unretained(
1086 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); 1090 storage_partition_impl_->GetPlatformNotificationContext()), GetID()));
1087 1091
1088 mojo_application_host_->service_registry()->AddService( 1092 mojo_application_host_->service_registry()->AddService(
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 2804
2801 // Skip widgets in other processes. 2805 // Skip widgets in other processes.
2802 if (rvh->GetProcess()->GetID() != GetID()) 2806 if (rvh->GetProcess()->GetID() != GetID())
2803 continue; 2807 continue;
2804 2808
2805 rvh->OnWebkitPreferencesChanged(); 2809 rvh->OnWebkitPreferencesChanged();
2806 } 2810 }
2807 } 2811 }
2808 2812
2809 } // namespace content 2813 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698