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 module shell.mojom; | 5 module shell.mojom; |
6 | 6 |
7 // Mojo Capabilities ----------------------------------------------------------- | 7 // Capabilities ---------------------------------------------------------------- |
8 // | 8 // |
9 // Mojo applications expose interfaces and capability classes to one another. | 9 // Services expose interfaces and capability classes to one another. |
10 // | 10 // |
11 // An interface is just a Mojo interface, defined in a mojom file like this one. | 11 // An interface is just a Mojo interface, defined in a mojom file like this one. |
12 // In a CapabilitySpec, an interface is represented by its fully qualified name, | 12 // In a CapabilitySpec, an interface is represented by its fully qualified name, |
13 // which is serialized based on the interface name and module: | 13 // which is serialized based on the interface name and module: |
14 // module::path::InterfaceName. | 14 // module::path::InterfaceName. |
15 // | 15 // |
16 // A class is an alias to something, either a set of interface names granted | 16 // A class is an alias to something, either a set of interface names granted |
17 // with that class, or some behavior specific to the application that provides | 17 // with that class, or some behavior specific to the application that provides |
18 // it. | 18 // it. |
19 | 19 |
(...skipping 18 matching lines...) Expand all Loading... |
38 // non-empty, or ["*"], which means allow access to all interfaces. | 38 // non-empty, or ["*"], which means allow access to all interfaces. |
39 map<string, array<string>> provided; | 39 map<string, array<string>> provided; |
40 | 40 |
41 // The applications this application needs to speak to, and the classes and | 41 // The applications this application needs to speak to, and the classes and |
42 // interfaces it requests. | 42 // interfaces it requests. |
43 // A map of application name -> spec. "*" is also supported as the key, which | 43 // A map of application name -> spec. "*" is also supported as the key, which |
44 // supplies a CapabilityRequest for all applications in addition to specific | 44 // supplies a CapabilityRequest for all applications in addition to specific |
45 // ones specified. | 45 // ones specified. |
46 map<string, CapabilityRequest> required; | 46 map<string, CapabilityRequest> required; |
47 }; | 47 }; |
OLD | NEW |