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

Unified Diff: content/browser/frame_host/frame_mojo_shell.h

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
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
Index: content/browser/frame_host/frame_mojo_shell.h
diff --git a/content/browser/frame_host/frame_mojo_shell.h b/content/browser/frame_host/frame_mojo_shell.h
index 63d386d00ff472562b883f64a1cf122a90b038fd..8481f0894a2724c2d347b4322a2ef99342ef229f 100644
--- a/content/browser/frame_host/frame_mojo_shell.h
+++ b/content/browser/frame_host/frame_mojo_shell.h
@@ -12,14 +12,16 @@
#include "mojo/public/cpp/bindings/interface_request.h"
#include "services/shell/public/interfaces/connector.mojom.h"
-namespace content {
+namespace shell {
+class InterfaceRegistry;
+}
+namespace content {
class RenderFrameHost;
-class ServiceRegistryImpl;
-// This provides the |shell::mojom::Shell| service interface to each
-// frame's ServiceRegistry, giving frames the ability to connect to Mojo
-// applications.
+// This provides the |shell::mojom::Connector| interface interface to each
+// frame's shell::InterfaceRegistry, giving frames the ability to connect to
+// Mojo services.
class FrameMojoShell : public shell::mojom::Connector {
public:
explicit FrameMojoShell(RenderFrameHost* frame_host);
@@ -37,14 +39,16 @@ class FrameMojoShell : public shell::mojom::Connector {
const shell::mojom::Connector::ConnectCallback& callback) override;
void Clone(shell::mojom::ConnectorRequest request) override;
- ServiceRegistryImpl* GetServiceRegistry();
+ shell::InterfaceRegistry* GetInterfaceRegistry();
RenderFrameHost* frame_host_;
mojo::BindingSet<shell::mojom::Connector> connectors_;
- // ServiceRegistry providing browser services to connected applications.
- std::unique_ptr<ServiceRegistryImpl> service_registry_;
- mojo::BindingSet<shell::mojom::InterfaceProvider> service_provider_bindings_;
+ // shell::InterfaceRegistry providing browser interfaces to connected
+ // applications.
+ std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
+ mojo::BindingSet<shell::mojom::InterfaceProvider>
+ interface_provider_bindings_;
DISALLOW_COPY_AND_ASSIGN(FrameMojoShell);
};
« no previous file with comments | « content/browser/android/service_registry_android_impl.cc ('k') | content/browser/frame_host/frame_mojo_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698