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

Unified Diff: mojo/public/cpp/application/lib/service_registry.h

Issue 1968543003: Remove ServiceRegistry's support for exposed services. (Closed) Base URL: https://github.com/domokit/mojo.git@work790
Patch Set: asdf Created 4 years, 7 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: mojo/public/cpp/application/lib/service_registry.h
diff --git a/mojo/public/cpp/application/lib/service_registry.h b/mojo/public/cpp/application/lib/service_registry.h
index f35c085899c18b6b335891b654583133b24004f4..c8c47d3acf277d52447923e79debca83925081d5 100644
--- a/mojo/public/cpp/application/lib/service_registry.h
+++ b/mojo/public/cpp/application/lib/service_registry.h
@@ -13,10 +13,6 @@
#include "mojo/public/interfaces/application/service_provider.mojom.h"
namespace mojo {
-
-class Application;
-class ApplicationImpl;
-
namespace internal {
// A ServiceRegistry represents each half of a connection between two
@@ -25,10 +21,8 @@ namespace internal {
class ServiceRegistry : public ServiceProvider, public ApplicationConnection {
public:
ServiceRegistry();
- ServiceRegistry(ApplicationImpl* application_impl,
- const std::string& connection_url,
+ ServiceRegistry(const std::string& connection_url,
const std::string& remote_url,
- InterfaceHandle<ServiceProvider> remote_services,
InterfaceRequest<ServiceProvider> local_services);
~ServiceRegistry() override;
@@ -42,19 +36,12 @@ class ServiceRegistry : public ServiceProvider, public ApplicationConnection {
private:
// ServiceProvider method.
- void ConnectToService(const mojo::String& service_name,
+ void ConnectToService(const String& service_name,
ScopedMessagePipeHandle client_handle) override;
- ApplicationImpl* application_impl_;
const std::string connection_url_;
const std::string remote_url_;
-
- private:
- void RemoveServiceConnectorForNameInternal(const std::string& interface_name);
-
- Application* application_;
Binding<ServiceProvider> local_binding_;
- ServiceProviderPtr remote_service_provider_;
ServiceConnectorRegistry service_connector_registry_;
MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry);
« no previous file with comments | « mojo/public/cpp/application/lib/application_impl.cc ('k') | mojo/public/cpp/application/lib/service_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698