disable two ClientCertStoreChromeOSTest.* unit_tests on Valgrind bots
[chromium-blink-merge.git] / third_party / closure_compiler / externs / users_private.js
blob733ac6e3b2d0e5357450a5652b8ab02cb9d65135
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /** @fileoverview Externs generated from namespace: usersPrivate */
7 /**
8  * @const
9  */
10 chrome.usersPrivate = {};
12 /**
13  * @typedef {{
14  *   email: string,
15  *   isOwner: boolean
16  * }}
17  * @see https://developer.chrome.com/extensions/usersPrivate#type-User
18  */
19 var User;
21 /**
22  * Gets a list of the currently whitelisted users.
23  * @param {function(!Array<User>):void} callback
24  * @see https://developer.chrome.com/extensions/usersPrivate#method-getWhitelistedUsers
25  */
26 chrome.usersPrivate.getWhitelistedUsers = function(callback) {};
28 /**
29  * Adds a new user with the given email to the whitelist. The callback is called
30  * with true if the user was added succesfully, or with false if not (e.g.
31  * because the user was already present, or the current user isn't the owner).
32  * @param {string} email
33  * @param {function(boolean):void} callback
34  * @see https://developer.chrome.com/extensions/usersPrivate#method-addWhitelistedUser
35  */
36 chrome.usersPrivate.addWhitelistedUser = function(email, callback) {};
38 /**
39  * Removes the user with the given email from the whitelist. The callback is
40  * called with true if the user was removed succesfully, or with false if not
41  * (e.g. because the user was not already present, or the current user isn't the
42  * owner).
43  * @param {string} email
44  * @param {function(boolean):void} callback
45  * @see https://developer.chrome.com/extensions/usersPrivate#method-removeWhitelistedUser
46  */
47 chrome.usersPrivate.removeWhitelistedUser = function(email, callback) {};
49 /**
50  * Whether the current user is the owner of the device.
51  * @param {function(boolean):void} callback
52  * @see https://developer.chrome.com/extensions/usersPrivate#method-isCurrentUserOwner
53  */
54 chrome.usersPrivate.isCurrentUserOwner = function(callback) {};
56 /**
57  * Whether the whitelist is managed by enterprise.
58  * @param {function(boolean):void} callback
59  * @see https://developer.chrome.com/extensions/usersPrivate#method-isWhitelistManaged
60  */
61 chrome.usersPrivate.isWhitelistManaged = function(callback) {};