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

Side by Side 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 unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698