| 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace catalog { | 36 namespace catalog { |
| 37 | 37 |
| 38 class Instance; | 38 class Instance; |
| 39 class ManifestProvider; | 39 class ManifestProvider; |
| 40 class Reader; | 40 class Reader; |
| 41 class Store; | 41 class Store; |
| 42 | 42 |
| 43 // Creates and owns an instance of the catalog. Exposes a ServicePtr that | 43 // Creates and owns an instance of the catalog. Exposes a ServicePtr that |
| 44 // can be passed to the Shell, potentially in a different process. | 44 // can be passed to the service manager, potentially in a different process. |
| 45 class Catalog | 45 class Catalog |
| 46 : public service_manager::Service, | 46 : public service_manager::Service, |
| 47 public service_manager::InterfaceFactory<mojom::Catalog>, | 47 public service_manager::InterfaceFactory<mojom::Catalog>, |
| 48 public service_manager::InterfaceFactory<filesystem::mojom::Directory>, | 48 public service_manager::InterfaceFactory<filesystem::mojom::Directory>, |
| 49 public service_manager::InterfaceFactory< | 49 public service_manager::InterfaceFactory< |
| 50 service_manager::mojom::Resolver>, | 50 service_manager::mojom::Resolver>, |
| 51 public service_manager::InterfaceFactory<mojom::CatalogControl>, | 51 public service_manager::InterfaceFactory<mojom::CatalogControl>, |
| 52 public mojom::CatalogControl { | 52 public mojom::CatalogControl { |
| 53 public: | 53 public: |
| 54 // |manifest_provider| may be null. | 54 // |manifest_provider| may be null. |
| (...skipping 65 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 |