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

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

Issue 2191033002: Split ServiceRegistryAndroid into InterfaceRegistryAndroid and InterfaceProviderAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « content/browser/mojo/service_registrar_android.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 #include "ui/display/display_switches.h" 181 #include "ui/display/display_switches.h"
182 #include "ui/events/event_switches.h" 182 #include "ui/events/event_switches.h"
183 #include "ui/gfx/switches.h" 183 #include "ui/gfx/switches.h"
184 #include "ui/gl/gl_switches.h" 184 #include "ui/gl/gl_switches.h"
185 #include "ui/gl/gpu_switching_manager.h" 185 #include "ui/gl/gpu_switching_manager.h"
186 #include "ui/native_theme/native_theme_switches.h" 186 #include "ui/native_theme/native_theme_switches.h"
187 187
188 #if defined(OS_ANDROID) 188 #if defined(OS_ANDROID)
189 #include "content/browser/android/child_process_launcher_android.h" 189 #include "content/browser/android/child_process_launcher_android.h"
190 #include "content/browser/media/android/browser_demuxer_android.h" 190 #include "content/browser/media/android/browser_demuxer_android.h"
191 #include "content/browser/mojo/service_registrar_android.h" 191 #include "content/browser/mojo/interface_registrar_android.h"
192 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" 192 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h"
193 #include "ipc/ipc_sync_channel.h" 193 #include "ipc/ipc_sync_channel.h"
194 #include "media/audio/android/audio_manager_android.h" 194 #include "media/audio/android/audio_manager_android.h"
195 #endif 195 #endif
196 196
197 #if defined(OS_WIN) 197 #if defined(OS_WIN)
198 #include "base/win/scoped_com_initializer.h" 198 #include "base/win/scoped_com_initializer.h"
199 #include "base/win/windows_version.h" 199 #include "base/win/windows_version.h"
200 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" 200 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h"
201 #include "content/common/font_cache_dispatcher_win.h" 201 #include "content/common/font_cache_dispatcher_win.h"
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 base::Bind(&DeviceOrientationHost::Create), io_task_runner); 1106 base::Bind(&DeviceOrientationHost::Create), io_task_runner);
1107 GetInterfaceRegistry()->AddInterface( 1107 GetInterfaceRegistry()->AddInterface(
1108 base::Bind(&DeviceOrientationAbsoluteHost::Create), io_task_runner); 1108 base::Bind(&DeviceOrientationAbsoluteHost::Create), io_task_runner);
1109 1109
1110 if (memory_coordinator::IsEnabled()) { 1110 if (memory_coordinator::IsEnabled()) {
1111 GetInterfaceRegistry()->AddInterface( 1111 GetInterfaceRegistry()->AddInterface(
1112 base::Bind(&CreateMemoryCoordinatorHandle, GetID())); 1112 base::Bind(&CreateMemoryCoordinatorHandle, GetID()));
1113 } 1113 }
1114 1114
1115 #if defined(OS_ANDROID) 1115 #if defined(OS_ANDROID)
1116 ServiceRegistrarAndroid::RegisterProcessHostServices( 1116 InterfaceRegistrarAndroid::ExposeInterfacesToRenderer(
1117 mojo_child_connection_->service_registry_android()); 1117 mojo_child_connection_->interface_registry_android());
1118 #endif 1118 #endif
1119 1119
1120 GetContentClient()->browser()->ExposeInterfacesToRenderer( 1120 GetContentClient()->browser()->ExposeInterfacesToRenderer(
1121 GetInterfaceRegistry(), this); 1121 GetInterfaceRegistry(), this);
1122 } 1122 }
1123 1123
1124 void RenderProcessHostImpl::CreateStoragePartitionService( 1124 void RenderProcessHostImpl::CreateStoragePartitionService(
1125 mojo::InterfaceRequest<mojom::StoragePartitionService> request) { 1125 mojo::InterfaceRequest<mojom::StoragePartitionService> request) {
1126 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! 1126 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW!
1127 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 1127 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2767 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2768 2768
2769 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2769 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2770 // enough information here so that we can determine what the bad message was. 2770 // enough information here so that we can determine what the bad message was.
2771 base::debug::Alias(&error); 2771 base::debug::Alias(&error);
2772 bad_message::ReceivedBadMessage(process.get(), 2772 bad_message::ReceivedBadMessage(process.get(),
2773 bad_message::RPH_MOJO_PROCESS_ERROR); 2773 bad_message::RPH_MOJO_PROCESS_ERROR);
2774 } 2774 }
2775 2775
2776 } // namespace content 2776 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/service_registrar_android.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698