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

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

Issue 1195003002: Mandoline: Introduce ApplicationConnection::CloseConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ 5 #ifndef MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_
6 #define MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ 6 #define MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/application/public/cpp/application_connection.h" 10 #include "mojo/application/public/cpp/application_connection.h"
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 ServiceRegistry(); 26 ServiceRegistry();
27 ServiceRegistry(ApplicationImpl* application_impl, 27 ServiceRegistry(ApplicationImpl* application_impl,
28 const std::string& connection_url, 28 const std::string& connection_url,
29 const std::string& remote_url, 29 const std::string& remote_url,
30 ServiceProviderPtr remote_services, 30 ServiceProviderPtr remote_services,
31 InterfaceRequest<ServiceProvider> local_services); 31 InterfaceRequest<ServiceProvider> local_services);
32 ~ServiceRegistry() override; 32 ~ServiceRegistry() override;
33 33
34 // ApplicationConnection overrides. 34 // ApplicationConnection overrides.
35 void CloseConnection() override;
35 void SetServiceConnector(ServiceConnector* service_connector) override; 36 void SetServiceConnector(ServiceConnector* service_connector) override;
36 void SetServiceConnectorForName(ServiceConnector* service_connector, 37 void SetServiceConnectorForName(ServiceConnector* service_connector,
37 const std::string& interface_name) override; 38 const std::string& interface_name) override;
38 const std::string& GetConnectionURL() override; 39 const std::string& GetConnectionURL() override;
39 const std::string& GetRemoteApplicationURL() override; 40 const std::string& GetRemoteApplicationURL() override;
40 ServiceProvider* GetServiceProvider() override; 41 ServiceProvider* GetServiceProvider() override;
41 42
42 void RemoveServiceConnectorForName(const std::string& interface_name); 43 void RemoveServiceConnectorForName(const std::string& interface_name);
43 44
44 private: 45 private:
(...skipping 13 matching lines...) Expand all
58 ServiceProviderPtr remote_service_provider_; 59 ServiceProviderPtr remote_service_provider_;
59 ServiceConnectorRegistry service_connector_registry_; 60 ServiceConnectorRegistry service_connector_registry_;
60 61
61 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); 62 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry);
62 }; 63 };
63 64
64 } // namespace internal 65 } // namespace internal
65 } // namespace mojo 66 } // namespace mojo
66 67
67 #endif // MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ 68 #endif // MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698