| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_CATALOG_CATALOG_H_ | 5 #ifndef SERVICES_CATALOG_CATALOG_H_ |
| 6 #define SERVICES_CATALOG_CATALOG_H_ | 6 #define SERVICES_CATALOG_CATALOG_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 service_manager::mojom::ServicePtr TakeService(); | 69 service_manager::mojom::ServicePtr TakeService(); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 explicit Catalog(std::unique_ptr<Store> store); | 72 explicit Catalog(std::unique_ptr<Store> store); |
| 73 | 73 |
| 74 // Starts a scane for system packages. | 74 // Starts a scane for system packages. |
| 75 void ScanSystemPackageDir(); | 75 void ScanSystemPackageDir(); |
| 76 | 76 |
| 77 // service_manager::Service: | 77 // service_manager::Service: |
| 78 bool OnConnect(const service_manager::Identity& remote_identity, | 78 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
| 79 service_manager::InterfaceRegistry* registry) override; | 79 service_manager::InterfaceRegistry* registry) override; |
| 80 | 80 |
| 81 // service_manager::InterfaceFactory<service_manager::mojom::Resolver>: | 81 // service_manager::InterfaceFactory<service_manager::mojom::Resolver>: |
| 82 void Create(const service_manager::Identity& remote_identity, | 82 void Create(const service_manager::Identity& remote_identity, |
| 83 service_manager::mojom::ResolverRequest request) override; | 83 service_manager::mojom::ResolverRequest request) override; |
| 84 | 84 |
| 85 // service_manager::InterfaceFactory<mojom::Catalog>: | 85 // service_manager::InterfaceFactory<mojom::Catalog>: |
| 86 void Create(const service_manager::Identity& remote_identity, | 86 void Create(const service_manager::Identity& remote_identity, |
| 87 mojom::CatalogRequest request) override; | 87 mojom::CatalogRequest request) override; |
| 88 | 88 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 mojo::BindingSet<mojom::CatalogControl> control_bindings_; | 120 mojo::BindingSet<mojom::CatalogControl> control_bindings_; |
| 121 | 121 |
| 122 base::WeakPtrFactory<Catalog> weak_factory_; | 122 base::WeakPtrFactory<Catalog> weak_factory_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(Catalog); | 124 DISALLOW_COPY_AND_ASSIGN(Catalog); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace catalog | 127 } // namespace catalog |
| 128 | 128 |
| 129 #endif // SERVICES_CATALOG_CATALOG_H_ | 129 #endif // SERVICES_CATALOG_CATALOG_H_ |
| OLD | NEW |