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" |
(...skipping 25 matching lines...) Expand all Loading... |
36 void CacheReady(EntryCache* cache); | 36 void CacheReady(EntryCache* cache); |
37 | 37 |
38 private: | 38 private: |
39 // service_manager::mojom::Resolver: | 39 // service_manager::mojom::Resolver: |
40 void ResolveMojoName(const std::string& mojo_name, | 40 void ResolveMojoName(const std::string& mojo_name, |
41 const ResolveMojoNameCallback& callback) override; | 41 const ResolveMojoNameCallback& callback) override; |
42 | 42 |
43 // mojom::Catalog: | 43 // mojom::Catalog: |
44 void GetEntries(const base::Optional<std::vector<std::string>>& names, | 44 void GetEntries(const base::Optional<std::vector<std::string>>& names, |
45 const GetEntriesCallback& callback) override; | 45 const GetEntriesCallback& callback) override; |
46 void GetEntriesProvidingClass( | 46 void GetEntriesProvidingCapability( |
47 const std::string& clazz, | 47 const std::string& capability, |
48 const GetEntriesProvidingClassCallback& callback) override; | 48 const GetEntriesProvidingCapabilityCallback& callback) override; |
49 void GetEntriesConsumingMIMEType( | 49 void GetEntriesConsumingMIMEType( |
50 const std::string& mime_type, | 50 const std::string& mime_type, |
51 const GetEntriesConsumingMIMETypeCallback& callback) override; | 51 const GetEntriesConsumingMIMETypeCallback& callback) override; |
52 void GetEntriesSupportingScheme( | 52 void GetEntriesSupportingScheme( |
53 const std::string& scheme, | 53 const std::string& scheme, |
54 const GetEntriesSupportingSchemeCallback& callback) override; | 54 const GetEntriesSupportingSchemeCallback& callback) override; |
55 | 55 |
56 // Populate/serialize the cache from/to the supplied store. | 56 // Populate/serialize the cache from/to the supplied store. |
57 void DeserializeCatalog(); | 57 void DeserializeCatalog(); |
58 void SerializeCatalog(); | 58 void SerializeCatalog(); |
(...skipping 25 matching lines...) Expand all Loading... |
84 std::vector<mojom::CatalogRequest> pending_catalog_requests_; | 84 std::vector<mojom::CatalogRequest> pending_catalog_requests_; |
85 | 85 |
86 base::WeakPtrFactory<Instance> weak_factory_; | 86 base::WeakPtrFactory<Instance> weak_factory_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(Instance); | 88 DISALLOW_COPY_AND_ASSIGN(Instance); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace catalog | 91 } // namespace catalog |
92 | 92 |
93 #endif // SERVICES_CATALOG_INSTANCE_H_ | 93 #endif // SERVICES_CATALOG_INSTANCE_H_ |
OLD | NEW |