Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / chromeos / accounts_options_handler.h
blob8b814d2dadffc88d8b294d7b9d3658fec4151fe3
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/webui/options/options_ui.h"
11 namespace chromeos {
12 namespace options {
14 // ChromeOS accounts options page handler.
15 class AccountsOptionsHandler : public ::options::OptionsPageUIHandler {
16 public:
17 AccountsOptionsHandler();
18 ~AccountsOptionsHandler() override;
20 // WebUIMessageHandler implementation.
21 void RegisterMessages() override;
23 // OptionsPageUIHandler implementation.
24 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
26 private:
27 // Javascript callbacks to update whitelist/unwhitelist user.
28 void HandleWhitelistUser(const base::ListValue* args);
29 void HandleUnwhitelistUser(const base::ListValue* args);
31 // Javascript callback to update the white list: auto add existing users,
32 // remove not present supervised users.
33 void HandleUpdateWhitelist(const base::ListValue* args);
35 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler);
38 } // namespace options
39 } // namespace chromeos
41 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_