Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_SERVICES_CATALOG_ENTRY_H_ | 5 #ifndef MOJO_SERVICES_CATALOG_ENTRY_H_ |
| 6 #define MOJO_SERVICES_CATALOG_ENTRY_H_ | 6 #define MOJO_SERVICES_CATALOG_ENTRY_H_ |
| 7 | 7 |
| 8 #include <map> | |
| 9 #include <set> | |
| 10 #include <string> | 8 #include <string> |
| 11 | 9 |
| 10 #include "mojo/shell/public/cpp/capabilities.h" | |
| 11 | |
| 12 namespace catalog { | 12 namespace catalog { |
| 13 | 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. | 14 // Static information about an application package known to the Catalog. |
| 21 struct Entry { | 15 struct Entry { |
| 22 Entry(); | 16 Entry(); |
| 23 Entry(const Entry& other); | 17 Entry(const Entry& other); |
| 24 ~Entry(); | 18 ~Entry(); |
| 25 | 19 |
| 26 std::string name; | 20 std::string name; |
| 27 std::string qualifier; | 21 std::string qualifier; |
| 28 std::string display_name; | 22 std::string display_name; |
| 29 CapabilityFilter capabilities; | 23 mojo::caps::CapabilitySpec capabilities; |
| 24 | |
| 25 bool operator==(const Entry& other) const; | |
|
sky
2016/03/09 21:33:15
move above members.
| |
| 30 }; | 26 }; |
| 31 | 27 |
| 32 } // namespace catalog | 28 } // namespace catalog |
| 33 | 29 |
| 34 #endif // MOJO_SERVICES_CATALOG_ENTRY_H_ | 30 #endif // MOJO_SERVICES_CATALOG_ENTRY_H_ |
| OLD | NEW |