Chromium Code Reviews| 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: 2 |
| 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 | |
| 27 // Passes a JSON status blob to the host. | |
| 28 [MinVersion=1] OnStatusRetrieved@1(string status, string droidGuardInfo); | |
|
Luis Héctor Chávez
2016/09/06 16:09:54
Is this supposed to be the asynchronous response t
| |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 // Next method ID: 1 | 31 // Next method ID: 2 |
| 29 interface EnterpriseReportingInstance { | 32 interface EnterpriseReportingInstance { |
| 30 // Establishes full-duplex communication with the host. | 33 // Establishes full-duplex communication with the host. |
| 31 Init@0(EnterpriseReportingHost host_ptr); | 34 Init@0(EnterpriseReportingHost host_ptr); |
| 35 | |
| 36 // Requests that a JSON status blob be generated and passed to the | |
| 37 // host. | |
| 38 [MinVersion=1] GetStatus@1(); | |
| 32 }; | 39 }; |
| OLD | NEW |