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_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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "mojo/application/public/cpp/application_connection.h" | 11 #include "mojo/application/public/cpp/application_connection.h" |
12 #include "mojo/application/public/cpp/lib/service_connector_registry.h" | 12 #include "mojo/application/public/cpp/lib/service_connector_registry.h" |
13 #include "mojo/application/public/interfaces/service_provider.mojom.h" | 13 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
14 #include "mojo/public/cpp/bindings/binding.h" | |
15 | 14 |
16 namespace mojo { | 15 namespace mojo { |
17 namespace internal { | 16 namespace internal { |
18 | 17 |
19 // A ServiceRegistry represents each half of a connection between two | 18 // A ServiceRegistry represents each half of a connection between two |
20 // applications, allowing customization of which services are published to the | 19 // applications, allowing customization of which services are published to the |
21 // other. | 20 // other. |
22 class ServiceRegistry : public ServiceProvider, public ApplicationConnection { | 21 class ServiceRegistry : public ServiceProvider, public ApplicationConnection { |
23 public: | 22 public: |
24 ServiceRegistry(); | 23 ServiceRegistry(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const bool allow_all_interfaces_; | 59 const bool allow_all_interfaces_; |
61 base::WeakPtrFactory<ApplicationConnection> weak_factory_; | 60 base::WeakPtrFactory<ApplicationConnection> weak_factory_; |
62 | 61 |
63 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); | 62 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); |
64 }; | 63 }; |
65 | 64 |
66 } // namespace internal | 65 } // namespace internal |
67 } // namespace mojo | 66 } // namespace mojo |
68 | 67 |
69 #endif // MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ | 68 #endif // MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ |
OLD | NEW |