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

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

Issue 1779683002: Add catalog unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@43catalog
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/data/simple ('k') | mojo/services/catalog/entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/entry.h
diff --git a/mojo/services/catalog/entry.h b/mojo/services/catalog/entry.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f2f64a4526ef2a3731c72a30cff0faf65b530f7
--- /dev/null
+++ b/mojo/services/catalog/entry.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SERVICES_CATALOG_ENTRY_H_
+#define MOJO_SERVICES_CATALOG_ENTRY_H_
+
+#include <map>
+#include <set>
+#include <string>
+
+namespace catalog {
+
+// 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>;
+
+// Static information about an application package known to the Catalog.
+struct Entry {
+ Entry();
+ Entry(const Entry& other);
+ ~Entry();
+
+ std::string name;
+ std::string qualifier;
+ std::string display_name;
+ CapabilityFilter capabilities;
+};
+
+} // namespace catalog
+
+#endif // MOJO_SERVICES_CATALOG_ENTRY_H_
« no previous file with comments | « mojo/services/catalog/data/simple ('k') | mojo/services/catalog/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698