summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/enterprise_device_attributes.idl
blob: 1960c4dfcaa28e80b199e5890a9dadc331f56cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2015 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.

// Use the <code>chrome.enterprise.deviceAttributes</code> API to read device
// attributes.
namespace enterprise.deviceAttributes {
  callback GetDirectoryDeviceIdCallback = void (DOMString deviceId);

  interface Functions {
    // Fetches the value of
    // <a href="https://developers.google.com/admin-sdk/directory/v1/guides/manage-chrome-devices">the device identifier of the directory API</a>,
    // that is generated by the server and identifies the cloud record of the
    // device for querying in the cloud directory API.
    // |callback| : Called with the device identifier of the directory API when
    // received.
    void getDirectoryDeviceId(GetDirectoryDeviceIdCallback callback);
  };

};