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

Side by Side Diff: services/shell/public/cpp/capabilities.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « services/shell/public/cpp/OWNERS ('k') | services/shell/public/cpp/capabilities.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_H_
6 #define SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_H_
7
8 #include <map>
9 #include <set>
10 #include <string>
11
12 namespace shell {
13
14 using Class = std::string;
15 using Classes = std::set<std::string>;
16 using Interface = std::string;
17 using Interfaces = std::set<std::string>;
18 using Name = std::string;
19
20 // See comments in services/shell/public/interfaces/capabilities.mojom for a
21 // description of CapabilitySpec.
22
23 struct CapabilitySpec {
24 CapabilitySpec();
25 CapabilitySpec(const CapabilitySpec& other);
26 ~CapabilitySpec();
27 bool operator==(const CapabilitySpec& other) const;
28 bool operator<(const CapabilitySpec& other) const;
29 std::map<Class, Interfaces> provided;
30 std::map<Name, Classes> required;
31 };
32
33 } // namespace shell
34
35 #endif // SERVICES_SHELL_PUBLIC_CPP_CAPABILITIES_H_
OLDNEW
« no previous file with comments | « services/shell/public/cpp/OWNERS ('k') | services/shell/public/cpp/capabilities.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698