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

Side by Side Diff: mojo/public/cpp/application/lib/service_registry.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_ 5 #ifndef MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_
6 #define MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_ 6 #define MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/public/cpp/application/application_connection.h" 10 #include "mojo/public/cpp/application/application_connection.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // A ServiceRegistry represents each half of a connection between two 22 // A ServiceRegistry represents each half of a connection between two
23 // applications, allowing customization of which services are published to the 23 // applications, allowing customization of which services are published to the
24 // other. 24 // other.
25 class ServiceRegistry : public ServiceProvider, public ApplicationConnection { 25 class ServiceRegistry : public ServiceProvider, public ApplicationConnection {
26 public: 26 public:
27 ServiceRegistry(); 27 ServiceRegistry();
28 ServiceRegistry(ApplicationImpl* application_impl, 28 ServiceRegistry(ApplicationImpl* application_impl,
29 const std::string& connection_url, 29 const std::string& connection_url,
30 const std::string& remote_url, 30 const std::string& remote_url,
31 ServiceProviderPtr remote_services, 31 InterfaceHandle<ServiceProvider> remote_services,
32 InterfaceRequest<ServiceProvider> local_services); 32 InterfaceRequest<ServiceProvider> local_services);
33 ~ServiceRegistry() override; 33 ~ServiceRegistry() override;
34 34
35 // ApplicationConnection overrides. 35 // ApplicationConnection overrides.
36 void SetServiceConnectorForName(ServiceConnector* service_connector, 36 void SetServiceConnectorForName(ServiceConnector* service_connector,
37 const std::string& interface_name) override; 37 const std::string& interface_name) override;
38 const std::string& GetConnectionURL() override; 38 const std::string& GetConnectionURL() override;
39 const std::string& GetRemoteApplicationURL() override; 39 const std::string& GetRemoteApplicationURL() override;
40 ServiceProvider* GetServiceProvider() override; 40 ServiceProvider* GetServiceProvider() override;
41 41
(...skipping 16 matching lines...) Expand all
58 ServiceProviderPtr remote_service_provider_; 58 ServiceProviderPtr remote_service_provider_;
59 ServiceConnectorRegistry service_connector_registry_; 59 ServiceConnectorRegistry service_connector_registry_;
60 60
61 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); 61 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry);
62 }; 62 };
63 63
64 } // namespace internal 64 } // namespace internal
65 } // namespace mojo 65 } // namespace mojo
66 66
67 #endif // MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_ 67 #endif // MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/lib/application_test_base.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