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

Unified Diff: services/catalog/catalog.h

Issue 2389133008: Mash: Replaces "exe:chrome" with "service:content_browser" (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/session/session.cc ('k') | services/catalog/catalog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/catalog.h
diff --git a/services/catalog/catalog.h b/services/catalog/catalog.h
index 7afced34b8ff0ac07c1c2cded4bca51ab7eb4a34..5005bea092d2c3827afb7f94db0b34b6dbe105f5 100644
--- a/services/catalog/catalog.h
+++ b/services/catalog/catalog.h
@@ -13,6 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "components/filesystem/public/interfaces/directory.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/catalog/public/interfaces/catalog.mojom.h"
#include "services/catalog/types.h"
#include "services/shell/public/cpp/service.h"
@@ -44,7 +45,9 @@ class Store;
class Catalog : public shell::Service,
public shell::InterfaceFactory<mojom::Catalog>,
public shell::InterfaceFactory<filesystem::mojom::Directory>,
- public shell::InterfaceFactory<shell::mojom::Resolver> {
+ public shell::InterfaceFactory<shell::mojom::Resolver>,
+ public shell::InterfaceFactory<mojom::CatalogControl>,
+ public mojom::CatalogControl {
public:
// |manifest_provider| may be null.
Catalog(base::SequencedWorkerPool* worker_pool,
@@ -79,6 +82,16 @@ class Catalog : public shell::Service,
void Create(const shell::Identity& remote_identity,
filesystem::mojom::DirectoryRequest request) override;
+ // shell::InterfaceFactory<mojom::CatalogControl>:
+ void Create(const shell::Identity& remote_identity,
+ mojom::CatalogControlRequest request) override;
+
+ // mojom::CatalogControl:
+ void OverrideManifestPath(
+ const std::string& service_name,
+ const base::FilePath& path,
+ const OverrideManifestPathCallback& callback) override;
+
Instance* GetInstanceForUserId(const std::string& user_id);
void SystemPackageDirScanned();
@@ -96,6 +109,8 @@ class Catalog : public shell::Service,
scoped_refptr<filesystem::LockTable> lock_table_;
+ mojo::BindingSet<mojom::CatalogControl> control_bindings_;
+
base::WeakPtrFactory<Catalog> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(Catalog);
« no previous file with comments | « mash/session/session.cc ('k') | services/catalog/catalog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698