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

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

Issue 2131493002: ShellConnection -> ServiceContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@st
Patch Set: . Created 4 years, 5 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 | « media/mojo/services/service_factory_impl.cc ('k') | services/catalog/catalog.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_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 11 matching lines...) Expand all
22 namespace base { 22 namespace base {
23 class SequencedWorkerPool; 23 class SequencedWorkerPool;
24 class SingleThreadTaskRunner; 24 class SingleThreadTaskRunner;
25 } 25 }
26 26
27 namespace filesystem { 27 namespace filesystem {
28 class LockTable; 28 class LockTable;
29 } 29 }
30 30
31 namespace shell { 31 namespace shell {
32 class ShellConnection; 32 class ServiceContext;
33 } 33 }
34 34
35 namespace catalog { 35 namespace catalog {
36 36
37 class Instance; 37 class Instance;
38 class ManifestProvider; 38 class ManifestProvider;
39 class Reader; 39 class Reader;
40 class Store; 40 class Store;
41 41
42 // Creates and owns an instance of the catalog. Exposes a ServicePtr that 42 // Creates and owns an instance of the catalog. Exposes a ServicePtr that
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void Create(shell::Connection* connection, 78 void Create(shell::Connection* connection,
79 filesystem::mojom::DirectoryRequest request) override; 79 filesystem::mojom::DirectoryRequest request) override;
80 80
81 Instance* GetInstanceForUserId(const std::string& user_id); 81 Instance* GetInstanceForUserId(const std::string& user_id);
82 82
83 void SystemPackageDirScanned(); 83 void SystemPackageDirScanned();
84 84
85 std::unique_ptr<Store> store_; 85 std::unique_ptr<Store> store_;
86 86
87 shell::mojom::ServicePtr service_; 87 shell::mojom::ServicePtr service_;
88 std::unique_ptr<shell::ShellConnection> shell_connection_; 88 std::unique_ptr<shell::ServiceContext> shell_connection_;
89 89
90 std::map<std::string, std::unique_ptr<Instance>> instances_; 90 std::map<std::string, std::unique_ptr<Instance>> instances_;
91 91
92 std::unique_ptr<Reader> system_reader_; 92 std::unique_ptr<Reader> system_reader_;
93 EntryCache system_cache_; 93 EntryCache system_cache_;
94 bool loaded_ = false; 94 bool loaded_ = false;
95 95
96 scoped_refptr<filesystem::LockTable> lock_table_; 96 scoped_refptr<filesystem::LockTable> lock_table_;
97 97
98 base::WeakPtrFactory<Catalog> weak_factory_; 98 base::WeakPtrFactory<Catalog> weak_factory_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(Catalog); 100 DISALLOW_COPY_AND_ASSIGN(Catalog);
101 }; 101 };
102 102
103 } // namespace catalog 103 } // namespace catalog
104 104
105 #endif // SERVICES_CATALOG_CATALOG_H_ 105 #endif // SERVICES_CATALOG_CATALOG_H_
OLDNEW
« no previous file with comments | « media/mojo/services/service_factory_impl.cc ('k') | services/catalog/catalog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698