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 arc; | 5 module arc.mojom; |
6 | 6 |
7 interface PolicyHost { | 7 interface PolicyHost { |
8 // Get policies from Chrome OS, as JSON-encoded dictionary with the policies' | 8 // Get policies from Chrome OS, as JSON-encoded dictionary with the policies' |
9 // names as keys and their values as values. The list of possible policies can | 9 // names as keys and their values as values. The list of possible policies can |
10 // be found in components/policy/resources/policy_templates.json | 10 // be found in components/policy/resources/policy_templates.json |
11 GetPolicies@0() => (string policies); | 11 GetPolicies@0() => (string policies); |
12 }; | 12 }; |
13 | 13 |
14 interface PolicyInstance { | 14 interface PolicyInstance { |
15 // Establishes full-duplex communication with the host. | 15 // Establishes full-duplex communication with the host. |
16 Init@0(PolicyHost host_ptr); | 16 Init@0(PolicyHost host_ptr); |
17 | 17 |
18 // Indicates some policies have changed | 18 // Indicates some policies have changed |
19 OnPolicyUpdated@1(); | 19 OnPolicyUpdated@1(); |
20 }; | 20 }; |
OLD | NEW |