OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "chrome/browser/extensions/api/users_private/users_private_api.h" |
| 6 |
| 7 #include "base/values.h" |
| 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 9 #include "extensions/browser/extension_function_registry.h" |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 //////////////////////////////////////////////////////////////////////////////// |
| 14 // UsersPrivateGetWhitelistedUsersFunction |
| 15 |
| 16 UsersPrivateGetWhitelistedUsersFunction:: |
| 17 UsersPrivateGetWhitelistedUsersFunction() { |
| 18 } |
| 19 |
| 20 UsersPrivateGetWhitelistedUsersFunction:: |
| 21 ~UsersPrivateGetWhitelistedUsersFunction() { |
| 22 } |
| 23 |
| 24 ExtensionFunction::ResponseAction |
| 25 UsersPrivateGetWhitelistedUsersFunction::Run() { |
| 26 return RespondNow(OneArgument(new base::ListValue())); |
| 27 } |
| 28 |
| 29 //////////////////////////////////////////////////////////////////////////////// |
| 30 // UsersPrivateAddWhitelistedUserFunction |
| 31 |
| 32 UsersPrivateAddWhitelistedUserFunction:: |
| 33 UsersPrivateAddWhitelistedUserFunction() { |
| 34 } |
| 35 |
| 36 UsersPrivateAddWhitelistedUserFunction:: |
| 37 ~UsersPrivateAddWhitelistedUserFunction() { |
| 38 } |
| 39 |
| 40 ExtensionFunction::ResponseAction |
| 41 UsersPrivateAddWhitelistedUserFunction::Run() { |
| 42 return RespondNow(OneArgument(new base::FundamentalValue(true))); |
| 43 } |
| 44 |
| 45 //////////////////////////////////////////////////////////////////////////////// |
| 46 // UsersPrivateRemoveWhitelistedUserFunction |
| 47 |
| 48 UsersPrivateRemoveWhitelistedUserFunction:: |
| 49 UsersPrivateRemoveWhitelistedUserFunction() { |
| 50 } |
| 51 |
| 52 UsersPrivateRemoveWhitelistedUserFunction:: |
| 53 ~UsersPrivateRemoveWhitelistedUserFunction() { |
| 54 } |
| 55 |
| 56 ExtensionFunction::ResponseAction |
| 57 UsersPrivateRemoveWhitelistedUserFunction::Run() { |
| 58 return RespondNow(OneArgument(new base::FundamentalValue(true))); |
| 59 } |
| 60 |
| 61 //////////////////////////////////////////////////////////////////////////////// |
| 62 // UsersPrivateIsCurrentUserOwnerFunction |
| 63 |
| 64 UsersPrivateIsCurrentUserOwnerFunction:: |
| 65 UsersPrivateIsCurrentUserOwnerFunction() { |
| 66 } |
| 67 |
| 68 UsersPrivateIsCurrentUserOwnerFunction:: |
| 69 ~UsersPrivateIsCurrentUserOwnerFunction() { |
| 70 } |
| 71 |
| 72 ExtensionFunction::ResponseAction |
| 73 UsersPrivateIsCurrentUserOwnerFunction::Run() { |
| 74 return RespondNow(OneArgument(new base::FundamentalValue(true))); |
| 75 } |
| 76 |
| 77 //////////////////////////////////////////////////////////////////////////////// |
| 78 // UsersPrivateIsWhitelistManagedFunction |
| 79 |
| 80 UsersPrivateIsWhitelistManagedFunction:: |
| 81 UsersPrivateIsWhitelistManagedFunction() { |
| 82 } |
| 83 |
| 84 UsersPrivateIsWhitelistManagedFunction:: |
| 85 ~UsersPrivateIsWhitelistManagedFunction() { |
| 86 } |
| 87 |
| 88 ExtensionFunction::ResponseAction |
| 89 UsersPrivateIsWhitelistManagedFunction::Run() { |
| 90 return RespondNow(OneArgument(new base::FundamentalValue(true))); |
| 91 } |
| 92 |
| 93 } // namespace extensions |
OLD | NEW |