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

Unified Diff: content/browser/mojo/mojo_application_host.h

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_application_host.h
diff --git a/content/browser/mojo/mojo_application_host.h b/content/browser/mojo/mojo_application_host.h
index 8f02d4ccaa7d5bb2c0ef67c1447837619d2483bb..59393ee740d1e77268ee0e533bf39cc9e798a561 100644
--- a/content/browser/mojo/mojo_application_host.h
+++ b/content/browser/mojo/mojo_application_host.h
@@ -11,7 +11,9 @@
#include "base/macros.h"
#include "build/build_config.h"
#include "content/common/application_setup.mojom.h"
-#include "content/common/mojo/service_registry_impl.h"
+#include "content/common/content_export.h"
+#include "services/shell/public/cpp/interface_provider.h"
+#include "services/shell/public/cpp/interface_registry.h"
#if defined(OS_ANDROID)
#include "content/public/browser/android/service_registry_android.h"
@@ -26,8 +28,8 @@ namespace content {
// MojoApplicationHost represents the code needed on the browser side to setup
// a child process as a Mojo application. The child process should use the token
// from GetToken() to initialize its MojoApplication. MojoApplicationHost makes
-// the ServiceRegistry interface available so that child-provided services can
-// be invoked.
+// the InterfaceRegistry interface available so that child-provided interfaces
+// can be bound.
class CONTENT_EXPORT MojoApplicationHost {
public:
explicit MojoApplicationHost(const std::string& child_token);
@@ -37,7 +39,12 @@ class CONTENT_EXPORT MojoApplicationHost {
// MojoApplication.
const std::string& GetToken() { return token_; }
- ServiceRegistry* service_registry() { return &service_registry_; }
+ shell::InterfaceRegistry* interface_registry() {
+ return interface_registry_.get();
+ }
+ shell::InterfaceProvider* remote_interfaces() {
+ return remote_interfaces_.get();
+ }
#if defined(OS_ANDROID)
ServiceRegistryAndroid* service_registry_android() {
@@ -49,7 +56,8 @@ class CONTENT_EXPORT MojoApplicationHost {
const std::string token_;
std::unique_ptr<mojom::ApplicationSetup> application_setup_;
- ServiceRegistryImpl service_registry_;
+ std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
+ std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
#if defined(OS_ANDROID)
std::unique_ptr<ServiceRegistryAndroid> service_registry_android_;
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698