OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_SERVICES_CATALOG_ENTRY_H_ |
| 6 #define MOJO_SERVICES_CATALOG_ENTRY_H_ |
| 7 |
| 8 #include <map> |
| 9 #include <set> |
| 10 #include <string> |
| 11 |
| 12 namespace catalog { |
| 13 |
| 14 // A set of names of interfaces that may be exposed to an application. |
| 15 using AllowedInterfaces = std::set<std::string>; |
| 16 // A map of allowed applications to allowed interface sets. See shell.mojom for |
| 17 // more details. |
| 18 using CapabilityFilter = std::map<std::string, AllowedInterfaces>; |
| 19 |
| 20 // Static information about an application package known to the Catalog. |
| 21 struct Entry { |
| 22 Entry(); |
| 23 Entry(const Entry& other); |
| 24 ~Entry(); |
| 25 |
| 26 std::string name; |
| 27 std::string qualifier; |
| 28 std::string display_name; |
| 29 CapabilityFilter capabilities; |
| 30 }; |
| 31 |
| 32 } // namespace catalog |
| 33 |
| 34 #endif // MOJO_SERVICES_CATALOG_ENTRY_H_ |
OLD | NEW |