OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 service_manager.mojom; | 5 module service_manager.mojom; |
6 | 6 |
7 import "services/service_manager/public/interfaces/connector.mojom"; | 7 import "services/service_manager/public/interfaces/connector.mojom"; |
8 import "services/service_manager/public/interfaces/interface_provider.mojom"; | 8 import "services/service_manager/public/interfaces/interface_provider.mojom"; |
9 import "services/service_manager/public/interfaces/interface_provider_spec.mojom
"; | 9 import "services/service_manager/public/interfaces/interface_provider_spec.mojom
"; |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // | 52 // |
53 // Parameters: | 53 // Parameters: |
54 // | 54 // |
55 // source_info | 55 // source_info |
56 // Contains the source identity and interface provider specs. | 56 // Contains the source identity and interface provider specs. |
57 // | 57 // |
58 // interfaces | 58 // interfaces |
59 // A request for an InterfaceProvider by which the source service may | 59 // A request for an InterfaceProvider by which the source service may |
60 // seek to bind interface implementations exported by the target. | 60 // seek to bind interface implementations exported by the target. |
61 // | 61 // |
62 // required_interfaces | |
63 // A whitelist of interface names that should be made available to the | |
64 // source that initiated the connection, in accordance to policy described | |
65 // in the source & target's service manifests. Attempts to bind interfaces | |
66 // not in this whitelist must not be fulfilled. | |
67 // | |
68 // required_capabilities | |
69 // A set of the capability names required by the source initiating the | |
70 // connection. |required_interfaces| controls interface binding, so this | |
71 // is useful mostly if the target wishes to control behavior based on the | |
72 // presence of a value in this set. | |
73 // | |
74 OnConnect(ServiceInfo source_info, | 62 OnConnect(ServiceInfo source_info, |
75 InterfaceProvider&? interfaces, | 63 InterfaceProvider&? interfaces); |
76 InterfaceSet required_interfaces, | |
77 CapabilitySet required_capabilities); | |
78 }; | 64 }; |
OLD | NEW |