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

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

Issue 1791663002: Allow Catalogs to be constructed per-user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@49catalog
Patch Set: . Created 4 years, 9 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/BUILD.gn ('k') | mojo/services/catalog/catalog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/catalog.h
diff --git a/mojo/services/catalog/catalog.h b/mojo/services/catalog/catalog.h
index 06ae712be360d24672e05cc9cfe87be9dd3caeec..dd0e53a7ed9a07808aa289bfdd5f901c9d57fc3b 100644
--- a/mojo/services/catalog/catalog.h
+++ b/mojo/services/catalog/catalog.h
@@ -15,7 +15,6 @@
#include "mojo/services/catalog/public/interfaces/resolver.mojom.h"
#include "mojo/services/catalog/store.h"
#include "mojo/shell/public/cpp/interface_factory.h"
-#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/interfaces/shell_resolver.mojom.h"
#include "url/gurl.h"
@@ -23,39 +22,21 @@ namespace catalog {
class Store;
-class Catalog
- : public mojo::ShellClient,
- public mojo::InterfaceFactory<mojom::Resolver>,
- public mojo::InterfaceFactory<mojo::shell::mojom::ShellResolver>,
- public mojo::InterfaceFactory<mojom::Catalog>,
- public mojom::Resolver,
- public mojo::shell::mojom::ShellResolver,
- public mojom::Catalog {
+class Catalog : public mojom::Resolver,
+ public mojo::shell::mojom::ShellResolver,
+ public mojom::Catalog {
public:
- // If |register_schemes| is true, mojo: and exe: schemes are registered as
- // "standard".
Catalog(base::TaskRunner* blocking_pool, scoped_ptr<Store> store);
~Catalog() override;
+ void BindResolver(mojom::ResolverRequest request);
+ void BindShellResolver(mojo::shell::mojom::ShellResolverRequest request);
+ void BindCatalog(mojom::CatalogRequest request);
+
private:
using MojoNameAliasMap =
std::map<std::string, std::pair<std::string, std::string>>;
- // mojo::ShellClient:
- bool AcceptConnection(mojo::Connection* connection) override;
-
- // mojo::InterfaceFactory<mojom::Resolver>:
- void Create(mojo::Connection* connection,
- mojom::ResolverRequest request) override;
-
- // mojo::InterfaceFactory<mojo::shell::mojom::ShellResolver>:
- void Create(mojo::Connection* connection,
- mojo::shell::mojom::ShellResolverRequest request) override;
-
- // mojo::InterfaceFactory<mojom::Catalog>:
- void Create(mojo::Connection* connection,
- mojom::CatalogRequest request) override;
-
// mojom::Resolver:
void ResolveResponse(
mojo::URLResponsePtr response,
« no previous file with comments | « mojo/services/catalog/BUILD.gn ('k') | mojo/services/catalog/catalog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698