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

Unified Diff: mojo/services/catalog/factory.h

Issue 1828733004: Load application manifests from resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/catalog/catalog.cc ('k') | mojo/services/catalog/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/factory.h
diff --git a/mojo/services/catalog/factory.h b/mojo/services/catalog/factory.h
index 758d9da8e81ddf7cccf8d7a7c3e56c47a32f5438..a21200b3c2d7b7072cee71b20fdddb22d6a81c4e 100644
--- a/mojo/services/catalog/factory.h
+++ b/mojo/services/catalog/factory.h
@@ -30,6 +30,7 @@ class ShellConnection;
namespace catalog {
class Catalog;
+class ManifestProvider;
class Store;
// Creates and owns an instance of the catalog. Exposes a ShellClientPtr that
@@ -40,7 +41,10 @@ class Factory
public mojo::InterfaceFactory<mojom::Resolver>,
public mojo::InterfaceFactory<mojo::shell::mojom::ShellResolver> {
public:
- Factory(base::TaskRunner* file_task_runner, scoped_ptr<Store> store);
+ // |manifest_provider| may be null.
+ Factory(base::TaskRunner* file_task_runner,
+ scoped_ptr<Store> store,
+ ManifestProvider* manifest_provider);
~Factory() override;
mojo::shell::mojom::ShellClientPtr TakeShellClient();
@@ -63,8 +67,9 @@ class Factory
Catalog* GetCatalogForUserId(const std::string& user_id);
- base::TaskRunner* file_task_runner_;
+ base::TaskRunner* const file_task_runner_;
scoped_ptr<Store> store_;
+ ManifestProvider* const manifest_provider_;
mojo::shell::mojom::ShellClientPtr shell_client_;
scoped_ptr<mojo::ShellConnection> shell_connection_;
« no previous file with comments | « mojo/services/catalog/catalog.cc ('k') | mojo/services/catalog/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698