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

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

Issue 1775113003: Morph CapabilityFilter into caps::Capabilities, which supports capability classes (yet unimplemente… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@44cattests
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
Index: mojo/services/catalog/entry.h
diff --git a/mojo/services/catalog/entry.h b/mojo/services/catalog/entry.h
index 4f2f64a4526ef2a3731c72a30cff0faf65b530f7..9df12ebec4d84300876cba8a825d16908429c8c3 100644
--- a/mojo/services/catalog/entry.h
+++ b/mojo/services/catalog/entry.h
@@ -5,17 +5,11 @@
#ifndef MOJO_SERVICES_CATALOG_ENTRY_H_
#define MOJO_SERVICES_CATALOG_ENTRY_H_
-#include <map>
-#include <set>
#include <string>
-namespace catalog {
+#include "mojo/shell/public/cpp/capabilities.h"
-// A set of names of interfaces that may be exposed to an application.
-using AllowedInterfaces = std::set<std::string>;
-// A map of allowed applications to allowed interface sets. See shell.mojom for
-// more details.
-using CapabilityFilter = std::map<std::string, AllowedInterfaces>;
+namespace catalog {
// Static information about an application package known to the Catalog.
struct Entry {
@@ -26,7 +20,9 @@ struct Entry {
std::string name;
std::string qualifier;
std::string display_name;
- CapabilityFilter capabilities;
+ mojo::caps::CapabilitySpec capabilities;
+
+ bool operator==(const Entry& other) const;
sky 2016/03/09 21:33:15 move above members.
};
} // namespace catalog

Powered by Google App Engine
This is Rietveld 408576698