Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: services/catalog/reader.h

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/catalog/instance.cc ('k') | services/catalog/reader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_READER_H_ 5 #ifndef SERVICES_CATALOG_READER_H_
6 #define SERVICES_CATALOG_READER_H_ 6 #define SERVICES_CATALOG_READER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 namespace catalog { 24 namespace catalog {
25 25
26 class Entry; 26 class Entry;
27 class ManifestProvider; 27 class ManifestProvider;
28 28
29 // Responsible for loading manifests & building the Entry data structures. 29 // Responsible for loading manifests & building the Entry data structures.
30 class Reader { 30 class Reader {
31 public: 31 public:
32 using ReadManifestCallback = base::Callback<void(std::unique_ptr<Entry>)>; 32 using ReadManifestCallback = base::Callback<void(std::unique_ptr<Entry>)>;
33 using CreateEntryForNameCallback = 33 using CreateEntryForNameCallback =
34 base::Callback<void(shell::mojom::ResolveResultPtr)>; 34 base::Callback<void(service_manager::mojom::ResolveResultPtr)>;
35 35
36 Reader(base::SequencedWorkerPool* worker_pool, 36 Reader(base::SequencedWorkerPool* worker_pool,
37 ManifestProvider* manifest_provider); 37 ManifestProvider* manifest_provider);
38 Reader(base::SingleThreadTaskRunner* task_runner, 38 Reader(base::SingleThreadTaskRunner* task_runner,
39 ManifestProvider* manifest_provider); 39 ManifestProvider* manifest_provider);
40 ~Reader(); 40 ~Reader();
41 41
42 // Scans the contents of |package_dir|, reading all application manifests and 42 // Scans the contents of |package_dir|, reading all application manifests and
43 // populating |cache|. Runs |read_complete_closure| when done. 43 // populating |cache|. Runs |read_complete_closure| when done.
44 void Read(const base::FilePath& package_dir, 44 void Read(const base::FilePath& package_dir,
(...skipping 28 matching lines...) Expand all
73 std::map<std::string, std::string> package_name_overrides_; 73 std::map<std::string, std::string> package_name_overrides_;
74 std::map<std::string, base::FilePath> manifest_path_overrides_; 74 std::map<std::string, base::FilePath> manifest_path_overrides_;
75 base::WeakPtrFactory<Reader> weak_factory_; 75 base::WeakPtrFactory<Reader> weak_factory_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(Reader); 77 DISALLOW_COPY_AND_ASSIGN(Reader);
78 }; 78 };
79 79
80 } // namespace catalog 80 } // namespace catalog
81 81
82 #endif // SERVICES_CATALOG_READER_H_ 82 #endif // SERVICES_CATALOG_READER_H_
OLDNEW
« no previous file with comments | « services/catalog/instance.cc ('k') | services/catalog/reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698