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

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: 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "content/browser/quota_dispatcher_host.h" 94 #include "content/browser/quota_dispatcher_host.h"
95 #include "content/browser/renderer_host/clipboard_message_filter.h" 95 #include "content/browser/renderer_host/clipboard_message_filter.h"
96 #include "content/browser/renderer_host/database_message_filter.h" 96 #include "content/browser/renderer_host/database_message_filter.h"
97 #include "content/browser/renderer_host/file_utilities_message_filter.h" 97 #include "content/browser/renderer_host/file_utilities_message_filter.h"
98 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 98 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
99 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 99 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
100 #include "content/browser/renderer_host/media/audio_renderer_host.h" 100 #include "content/browser/renderer_host/media/audio_renderer_host.h"
101 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 101 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
102 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 102 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
103 #include "content/browser/renderer_host/media/video_capture_host.h" 103 #include "content/browser/renderer_host/media/video_capture_host.h"
104 #include "content/browser/renderer_host/offscreen_canvas_surface_service_impl.h"
104 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 105 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
105 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 106 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
106 #include "content/browser/renderer_host/render_message_filter.h" 107 #include "content/browser/renderer_host/render_message_filter.h"
107 #include "content/browser/renderer_host/render_view_host_delegate.h" 108 #include "content/browser/renderer_host/render_view_host_delegate.h"
108 #include "content/browser/renderer_host/render_view_host_impl.h" 109 #include "content/browser/renderer_host/render_view_host_impl.h"
109 #include "content/browser/renderer_host/render_widget_helper.h" 110 #include "content/browser/renderer_host/render_widget_helper.h"
110 #include "content/browser/renderer_host/render_widget_host_impl.h" 111 #include "content/browser/renderer_host/render_widget_host_impl.h"
111 #include "content/browser/renderer_host/text_input_client_message_filter.h" 112 #include "content/browser/renderer_host/text_input_client_message_filter.h"
112 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 113 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
113 #include "content/browser/resolve_proxy_msg_helper.h" 114 #include "content/browser/resolve_proxy_msg_helper.h"
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 #endif 1066 #endif
1066 1067
1067 mojo_application_host_->service_registry()->AddService( 1068 mojo_application_host_->service_registry()->AddService(
1068 base::Bind(&PermissionServiceContext::CreateService, 1069 base::Bind(&PermissionServiceContext::CreateService,
1069 base::Unretained(permission_service_context_.get()))); 1070 base::Unretained(permission_service_context_.get())));
1070 1071
1071 // TODO(mcasas): finalize arguments. 1072 // TODO(mcasas): finalize arguments.
1072 mojo_application_host_->service_registry()->AddService( 1073 mojo_application_host_->service_registry()->AddService(
1073 base::Bind(&ImageCaptureImpl::Create)); 1074 base::Bind(&ImageCaptureImpl::Create));
1074 1075
1076 mojo_application_host_->service_registry()->AddService(
1077 base::Bind(&OffscreenCanvasSurfaceServiceImpl::Create));
1078
1075 mojo_application_host_->service_registry()->AddService(base::Bind( 1079 mojo_application_host_->service_registry()->AddService(base::Bind(
1076 &BackgroundSyncContext::CreateService, 1080 &BackgroundSyncContext::CreateService,
1077 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1081 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1078 1082
1079 mojo_application_host_->service_registry()->AddService( 1083 mojo_application_host_->service_registry()->AddService(
1080 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1084 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1081 base::Unretained(this))); 1085 base::Unretained(this)));
1082 1086
1083 #if defined(OS_ANDROID) 1087 #if defined(OS_ANDROID)
1084 ServiceRegistrarAndroid::RegisterProcessHostServices( 1088 ServiceRegistrarAndroid::RegisterProcessHostServices(
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2781 2785
2782 // Skip widgets in other processes. 2786 // Skip widgets in other processes.
2783 if (rvh->GetProcess()->GetID() != GetID()) 2787 if (rvh->GetProcess()->GetID() != GetID())
2784 continue; 2788 continue;
2785 2789
2786 rvh->OnWebkitPreferencesChanged(); 2790 rvh->OnWebkitPreferencesChanged();
2787 } 2791 }
2788 } 2792 }
2789 2793
2790 } // namespace content 2794 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698