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_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 "mojo/public/cpp/application/application_connection.h" | 8 #include "mojo/public/cpp/application/application_connection.h" |
9 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | 9 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 | 12 |
| 13 class Application; |
13 class ApplicationImpl; | 14 class ApplicationImpl; |
14 | 15 |
15 namespace internal { | 16 namespace internal { |
16 | 17 |
17 class ServiceConnectorBase; | 18 class ServiceConnectorBase; |
18 | 19 |
19 // A ServiceRegistry represents each half of a connection between two | 20 // A ServiceRegistry represents each half of a connection between two |
20 // applications, allowing customization of which services are published to the | 21 // applications, allowing customization of which services are published to the |
21 // other. | 22 // other. |
22 class ServiceRegistry : public ServiceProvider, public ApplicationConnection { | 23 class ServiceRegistry : public ServiceProvider, public ApplicationConnection { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 NameToServiceConnectorMap name_to_service_connector_; | 57 NameToServiceConnectorMap name_to_service_connector_; |
57 ServiceProviderPtr remote_service_provider_; | 58 ServiceProviderPtr remote_service_provider_; |
58 | 59 |
59 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); | 60 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace internal | 63 } // namespace internal |
63 } // namespace mojo | 64 } // namespace mojo |
64 | 65 |
65 #endif // MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_ | 66 #endif // MOJO_PUBLIC_CPP_APPLICATION_LIB_SERVICE_REGISTRY_H_ |
OLD | NEW |