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

Unified Diff: chrome/browser/extensions/api/users_private/users_private_api.cc

Issue 1143303004: Add IDL and stub implementation for chrome.usersPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make isOwner a required field 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
Index: chrome/browser/extensions/api/users_private/users_private_api.cc
diff --git a/chrome/browser/extensions/api/users_private/users_private_api.cc b/chrome/browser/extensions/api/users_private/users_private_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b6c80d379763a6940fc46713a7d04b4129b478de
--- /dev/null
+++ b/chrome/browser/extensions/api/users_private/users_private_api.cc
@@ -0,0 +1,93 @@
+// 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.
+
+#include "chrome/browser/extensions/api/users_private/users_private_api.h"
+
+#include "base/values.h"
+#include "chrome/browser/extensions/chrome_extension_function.h"
+#include "extensions/browser/extension_function_registry.h"
+
+namespace extensions {
+
+////////////////////////////////////////////////////////////////////////////////
+// UsersPrivateGetWhitelistedUsersFunction
+
+UsersPrivateGetWhitelistedUsersFunction::
+ UsersPrivateGetWhitelistedUsersFunction() {
+}
+
+UsersPrivateGetWhitelistedUsersFunction::
+ ~UsersPrivateGetWhitelistedUsersFunction() {
+}
+
+ExtensionFunction::ResponseAction
+UsersPrivateGetWhitelistedUsersFunction::Run() {
+ return RespondNow(OneArgument(new base::ListValue()));
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// UsersPrivateAddWhitelistedUserFunction
+
+UsersPrivateAddWhitelistedUserFunction::
+ UsersPrivateAddWhitelistedUserFunction() {
+}
+
+UsersPrivateAddWhitelistedUserFunction::
+ ~UsersPrivateAddWhitelistedUserFunction() {
+}
+
+ExtensionFunction::ResponseAction
+UsersPrivateAddWhitelistedUserFunction::Run() {
+ return RespondNow(OneArgument(new base::FundamentalValue(true)));
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// UsersPrivateRemoveWhitelistedUserFunction
+
+UsersPrivateRemoveWhitelistedUserFunction::
+ UsersPrivateRemoveWhitelistedUserFunction() {
+}
+
+UsersPrivateRemoveWhitelistedUserFunction::
+ ~UsersPrivateRemoveWhitelistedUserFunction() {
+}
+
+ExtensionFunction::ResponseAction
+UsersPrivateRemoveWhitelistedUserFunction::Run() {
+ return RespondNow(OneArgument(new base::FundamentalValue(true)));
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// UsersPrivateIsCurrentUserOwnerFunction
+
+UsersPrivateIsCurrentUserOwnerFunction::
+ UsersPrivateIsCurrentUserOwnerFunction() {
+}
+
+UsersPrivateIsCurrentUserOwnerFunction::
+ ~UsersPrivateIsCurrentUserOwnerFunction() {
+}
+
+ExtensionFunction::ResponseAction
+UsersPrivateIsCurrentUserOwnerFunction::Run() {
+ return RespondNow(OneArgument(new base::FundamentalValue(true)));
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// UsersPrivateIsWhitelistManagedFunction
+
+UsersPrivateIsWhitelistManagedFunction::
+ UsersPrivateIsWhitelistManagedFunction() {
+}
+
+UsersPrivateIsWhitelistManagedFunction::
+ ~UsersPrivateIsWhitelistManagedFunction() {
+}
+
+ExtensionFunction::ResponseAction
+UsersPrivateIsWhitelistManagedFunction::Run() {
+ return RespondNow(OneArgument(new base::FundamentalValue(true)));
+}
+
+} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/users_private/users_private_api.h ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698