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

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

Issue 1896883002: Mojo interfaces needed for switching audio rendering stream creation and closing from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 72 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
73 #include "content/browser/gpu/compositor_util.h" 73 #include "content/browser/gpu/compositor_util.h"
74 #include "content/browser/gpu/gpu_data_manager_impl.h" 74 #include "content/browser/gpu/gpu_data_manager_impl.h"
75 #include "content/browser/gpu/gpu_process_host.h" 75 #include "content/browser/gpu/gpu_process_host.h"
76 #include "content/browser/gpu/shader_disk_cache.h" 76 #include "content/browser/gpu/shader_disk_cache.h"
77 #include "content/browser/histogram_message_filter.h" 77 #include "content/browser/histogram_message_filter.h"
78 #include "content/browser/indexed_db/indexed_db_context_impl.h" 78 #include "content/browser/indexed_db/indexed_db_context_impl.h"
79 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 79 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
80 #include "content/browser/loader/resource_message_filter.h" 80 #include "content/browser/loader/resource_message_filter.h"
81 #include "content/browser/loader/resource_scheduler_filter.h" 81 #include "content/browser/loader/resource_scheduler_filter.h"
82 #include "content/browser/media/audio_output_impl.h"
82 #include "content/browser/media/capture/audio_mirroring_manager.h" 83 #include "content/browser/media/capture/audio_mirroring_manager.h"
83 #include "content/browser/media/media_internals.h" 84 #include "content/browser/media/media_internals.h"
84 #include "content/browser/media/midi_host.h" 85 #include "content/browser/media/midi_host.h"
85 #include "content/browser/memory/memory_message_filter.h" 86 #include "content/browser/memory/memory_message_filter.h"
86 #include "content/browser/message_port_message_filter.h" 87 #include "content/browser/message_port_message_filter.h"
87 #include "content/browser/mime_registry_message_filter.h" 88 #include "content/browser/mime_registry_message_filter.h"
88 #include "content/browser/mojo/constants.h" 89 #include "content/browser/mojo/constants.h"
89 #include "content/browser/mojo/mojo_application_host.h" 90 #include "content/browser/mojo/mojo_application_host.h"
90 #include "content/browser/mojo/mojo_child_connection.h" 91 #include "content/browser/mojo/mojo_child_connection.h"
91 #include "content/browser/notifications/notification_message_filter.h" 92 #include "content/browser/notifications/notification_message_filter.h"
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 AddFilter(bluetooth_dispatcher_host_.get()); 1058 AddFilter(bluetooth_dispatcher_host_.get());
1058 } 1059 }
1059 } 1060 }
1060 1061
1061 void RenderProcessHostImpl::RegisterMojoServices() { 1062 void RenderProcessHostImpl::RegisterMojoServices() {
1062 #if !defined(OS_ANDROID) 1063 #if !defined(OS_ANDROID)
1063 mojo_application_host_->service_registry()->AddService( 1064 mojo_application_host_->service_registry()->AddService(
1064 base::Bind(&device::BatteryMonitorImpl::Create)); 1065 base::Bind(&device::BatteryMonitorImpl::Create));
1065 1066
1066 mojo_application_host_->service_registry()->AddService( 1067 mojo_application_host_->service_registry()->AddService(
1068
1067 base::Bind(&device::VibrationManagerImpl::Create)); 1069 base::Bind(&device::VibrationManagerImpl::Create));
1068 #endif 1070 #endif
1069 1071
1070 mojo_application_host_->service_registry()->AddService( 1072 mojo_application_host_->service_registry()->AddService(
1071 base::Bind(&PermissionServiceContext::CreateService, 1073 base::Bind(&PermissionServiceContext::CreateService,
1072 base::Unretained(permission_service_context_.get()))); 1074 base::Unretained(permission_service_context_.get())));
1073 1075
1074 mojo_application_host_->service_registry()->AddService(base::Bind( 1076 mojo_application_host_->service_registry()->AddService(base::Bind(
1075 &BackgroundSyncContextImpl::CreateService, 1077 &BackgroundSyncContextImpl::CreateService,
1076 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1078 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1077 1079
1078 mojo_application_host_->service_registry()->AddService( 1080 mojo_application_host_->service_registry()->AddService(
1079 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1081 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1080 base::Unretained(this))); 1082 base::Unretained(this)));
1081 1083
1084 mojo_application_host_->service_registry()->AddService(
1085 base::Bind(&AudioOutputImpl::CreateService, audio_renderer_host_));
1086
1082 #if defined(OS_ANDROID) 1087 #if defined(OS_ANDROID)
1083 ServiceRegistrarAndroid::RegisterProcessHostServices( 1088 ServiceRegistrarAndroid::RegisterProcessHostServices(
1084 mojo_application_host_->service_registry_android()); 1089 mojo_application_host_->service_registry_android());
1085 #endif 1090 #endif
1086 1091
1087 GetContentClient()->browser()->RegisterRenderProcessMojoServices( 1092 GetContentClient()->browser()->RegisterRenderProcessMojoServices(
1088 mojo_application_host_->service_registry()); 1093 mojo_application_host_->service_registry());
1089 } 1094 }
1090 1095
1091 void RenderProcessHostImpl::CreateStoragePartitionService( 1096 void RenderProcessHostImpl::CreateStoragePartitionService(
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2833
2829 // Skip widgets in other processes. 2834 // Skip widgets in other processes.
2830 if (rvh->GetProcess()->GetID() != GetID()) 2835 if (rvh->GetProcess()->GetID() != GetID())
2831 continue; 2836 continue;
2832 2837
2833 rvh->OnWebkitPreferencesChanged(); 2838 rvh->OnWebkitPreferencesChanged();
2834 } 2839 }
2835 } 2840 }
2836 2841
2837 } // namespace content 2842 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698