OLD | NEW |
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_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ | 5 #ifndef MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ |
6 #define MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ | 6 #define MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 18 matching lines...) Expand all Loading... |
29 // an application to expose to another application. If this set contains only | 29 // an application to expose to another application. If this set contains only |
30 // the string value "*" all interfaces may be exposed. | 30 // the string value "*" all interfaces may be exposed. |
31 ServiceRegistry(const std::string& connection_url, | 31 ServiceRegistry(const std::string& connection_url, |
32 const std::string& remote_url, | 32 const std::string& remote_url, |
33 uint32_t remote_id, | 33 uint32_t remote_id, |
34 ServiceProviderPtr remote_services, | 34 ServiceProviderPtr remote_services, |
35 InterfaceRequest<ServiceProvider> local_services, | 35 InterfaceRequest<ServiceProvider> local_services, |
36 const std::set<std::string>& allowed_interfaces); | 36 const std::set<std::string>& allowed_interfaces); |
37 ~ServiceRegistry() override; | 37 ~ServiceRegistry() override; |
38 | 38 |
39 Shell::ConnectToApplicationCallback GetConnectToApplicationCallback(); | 39 shell::mojom::Shell::ConnectToApplicationCallback |
| 40 GetConnectToApplicationCallback(); |
40 | 41 |
41 // ApplicationConnection overrides. | 42 // ApplicationConnection overrides. |
42 void SetServiceConnector(ServiceConnector* service_connector) override; | 43 void SetServiceConnector(ServiceConnector* service_connector) override; |
43 bool SetServiceConnectorForName(ServiceConnector* service_connector, | 44 bool SetServiceConnectorForName(ServiceConnector* service_connector, |
44 const std::string& interface_name) override; | 45 const std::string& interface_name) override; |
45 const std::string& GetConnectionURL() override; | 46 const std::string& GetConnectionURL() override; |
46 const std::string& GetRemoteApplicationURL() override; | 47 const std::string& GetRemoteApplicationURL() override; |
47 ServiceProvider* GetServiceProvider() override; | 48 ServiceProvider* GetServiceProvider() override; |
48 ServiceProvider* GetLocalServiceProvider() override; | 49 ServiceProvider* GetLocalServiceProvider() override; |
49 void SetRemoteServiceProviderConnectionErrorHandler( | 50 void SetRemoteServiceProviderConnectionErrorHandler( |
(...skipping 28 matching lines...) Expand all Loading... |
78 std::vector<Closure> remote_id_callbacks_; | 79 std::vector<Closure> remote_id_callbacks_; |
79 base::WeakPtrFactory<ServiceRegistry> weak_factory_; | 80 base::WeakPtrFactory<ServiceRegistry> weak_factory_; |
80 | 81 |
81 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); | 82 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace internal | 85 } // namespace internal |
85 } // namespace mojo | 86 } // namespace mojo |
86 | 87 |
87 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ | 88 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ |
OLD | NEW |