Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: chrome/common/extensions/api/users_private.idl

Issue 1143303004: Add IDL and stub implementation for chrome.usersPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ };
+};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698