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_INSTANCE_H_ | 5 #ifndef SERVICES_CATALOG_INSTANCE_H_ |
6 #define SERVICES_CATALOG_INSTANCE_H_ | 6 #define SERVICES_CATALOG_INSTANCE_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "mojo/public/cpp/bindings/binding_set.h" | 12 #include "mojo/public/cpp/bindings/binding_set.h" |
13 #include "services/catalog/entry.h" | 13 #include "services/catalog/entry.h" |
14 #include "services/catalog/public/interfaces/catalog.mojom.h" | 14 #include "services/catalog/public/interfaces/catalog.mojom.h" |
15 #include "services/catalog/store.h" | 15 #include "services/catalog/store.h" |
16 #include "services/catalog/types.h" | 16 #include "services/catalog/types.h" |
17 #include "services/shell/public/cpp/interface_factory.h" | 17 #include "services/service_manager/public/cpp/interface_factory.h" |
18 #include "services/shell/public/interfaces/resolver.mojom.h" | 18 #include "services/service_manager/public/interfaces/resolver.mojom.h" |
19 | 19 |
20 namespace catalog { | 20 namespace catalog { |
21 | 21 |
22 class Reader; | 22 class Reader; |
23 class Store; | 23 class Store; |
24 | 24 |
25 class Instance : public shell::mojom::Resolver, | 25 class Instance : public shell::mojom::Resolver, |
26 public mojom::Catalog { | 26 public mojom::Catalog { |
27 public: | 27 public: |
28 // |manifest_provider| may be null. | 28 // |manifest_provider| may be null. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 std::vector<mojom::CatalogRequest> pending_catalog_requests_; | 83 std::vector<mojom::CatalogRequest> pending_catalog_requests_; |
84 | 84 |
85 base::WeakPtrFactory<Instance> weak_factory_; | 85 base::WeakPtrFactory<Instance> weak_factory_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(Instance); | 87 DISALLOW_COPY_AND_ASSIGN(Instance); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace catalog | 90 } // namespace catalog |
91 | 91 |
92 #endif // SERVICES_CATALOG_INSTANCE_H_ | 92 #endif // SERVICES_CATALOG_INSTANCE_H_ |
OLD | NEW |