blob: 742d0e710ccb6bb6081faa54c7055e1debcc2fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Next MinVersion: 2
module arc.mojom;
interface PolicyHost {
// Get policies from Chrome OS, as JSON-encoded dictionary with the policies'
// names as keys and their values as values. The list of possible policies can
// be found in components/policy/resources/policy_templates.json
GetPolicies@0() => (string policies);
// Pass a JSON with policy compliance details that reference fields in
// CloudDps NonComplianceReason. Should return ChromeOS response to the report
// in JSON format as in CloudDps PolicyComplianceReportResponse.
// ChromeOS always returns that it's compliant with the report.
[MinVersion=1] ReportCompliance@1(string request) => (string response);
};
interface PolicyInstance {
// Establishes full-duplex communication with the host.
Init@0(PolicyHost host_ptr);
// Indicates some policies have changed
OnPolicyUpdated@1();
};
|