Index: chrome/common/extensions/api/users_private.idl |
diff --git a/chrome/common/extensions/api/users_private.idl b/chrome/common/extensions/api/users_private.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3086dab9103da399eebb86272d3bf20255eeed95 |
--- /dev/null |
+++ b/chrome/common/extensions/api/users_private.idl |
@@ -0,0 +1,25 @@ |
+// 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.usersPrivate</code> API to manage users. |
+namespace usersPrivate { |
+ |
+ interface Functions { |
+ // Gets a list of the canonicalized emails of the currently whitelisted |
+ // users. |
+ static void getWhitelistedUsers(DOMString[] emails); |
Dan Beam
2015/05/23 00:51:14
why not make this onWhiteListedUsersChanged and fi
Oren Blasberg
2015/05/26 17:04:07
Implementing that looks pretty challenging if we w
Dan Beam
2015/05/28 20:09:30
Yeah, this seems fine as long as you're cool with
Oren Blasberg
2015/05/29 23:48:07
Yep, I'm cool with that. In fact I'm currently add
|
+ |
+ // Adds a new user with the given email to the whitelist. |
+ static void addWhitelistedUser(DOMString email); |
+ |
+ // Removes the user with the given email from the whitelist. |
+ static void removeWhitelistedUser(DOMString email); |
+ |
+ // Whether the current user is the owner of the device. |
+ static void isCurrentUserOwner(boolean isOwner); |
+ |
+ // Whether the whitelist is managed by enterprise. |
+ static void isWhitelistManaged(boolean managed); |
+ }; |
+}; |