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 // Next MinVersion: 1 | 5 // Next MinVersion: 2 |
6 module arc.mojom; | 6 module arc.mojom; |
7 | 7 |
8 // Enumerates the states that management can be in for a user. | 8 // Enumerates the states that management can be in for a user. |
9 [Extensible] | 9 [Extensible] |
10 enum ManagementState { | 10 enum ManagementState { |
11 // The user is not managed. | 11 // The user is not managed. |
12 UNMANAGED = 0, | 12 UNMANAGED = 0, |
13 | 13 |
14 // The user is managed and the management infrastructure is working correctly. | 14 // The user is managed and the management infrastructure is working correctly. |
15 MANAGED_OK = 1, | 15 MANAGED_OK = 1, |
16 | 16 |
17 // The user is managed but managing app lost its Device Owner status and | 17 // The user is managed but managing app lost its Device Owner status and |
18 // cannot set policies. | 18 // cannot set policies. |
19 MANAGED_DO_LOST = 2 | 19 MANAGED_DO_LOST = 2 |
20 }; | 20 }; |
21 | 21 |
22 // Next method ID: 1 | 22 // Next method ID: 1 |
23 interface EnterpriseReportingHost { | 23 interface EnterpriseReportingHost { |
24 // Reports the management status for the user. | 24 // Reports the management status for the user. |
25 ReportManagementState@0(ManagementState state); | 25 ReportManagementState@0(ManagementState state); |
26 }; | 26 }; |
27 | 27 |
28 // Next method ID: 1 | 28 // Next method ID: 2 |
29 interface EnterpriseReportingInstance { | 29 interface EnterpriseReportingInstance { |
30 // Establishes full-duplex communication with the host. | 30 // Establishes full-duplex communication with the host. |
31 Init@0(EnterpriseReportingHost host_ptr); | 31 Init@0(EnterpriseReportingHost host_ptr); |
| 32 |
| 33 // Requests that a JSON status blob be generated and passed to the |
| 34 // host. |
| 35 [MinVersion=1] GetStatus@1() => (string status, string droid_guard_info); |
32 }; | 36 }; |
OLD | NEW |