OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/ui/webui/options/options_ui.h" | 10 #include "chrome/browser/ui/webui/options/options_ui.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class UserCrosSettingsProvider; | |
15 | |
16 // ChromeOS accounts options page handler. | 14 // ChromeOS accounts options page handler. |
17 class AccountsOptionsHandler : public OptionsPageUIHandler { | 15 class AccountsOptionsHandler : public OptionsPageUIHandler { |
18 public: | 16 public: |
19 AccountsOptionsHandler(); | 17 AccountsOptionsHandler(); |
20 virtual ~AccountsOptionsHandler(); | 18 virtual ~AccountsOptionsHandler(); |
21 | 19 |
22 // WebUIMessageHandler implementation. | 20 // WebUIMessageHandler implementation. |
23 virtual void RegisterMessages() OVERRIDE; | 21 virtual void RegisterMessages() OVERRIDE; |
24 | 22 |
25 // OptionsPageUIHandler implementation. | 23 // OptionsPageUIHandler implementation. |
26 virtual void GetLocalizedValues( | 24 virtual void GetLocalizedValues( |
27 base::DictionaryValue* localized_strings) OVERRIDE; | 25 base::DictionaryValue* localized_strings) OVERRIDE; |
28 | 26 |
29 private: | 27 private: |
30 // Javascript callbacks to whitelist/unwhitelist user. | 28 // Javascript callbacks to whitelist/unwhitelist user. |
31 void WhitelistUser(const base::ListValue* args); | 29 void WhitelistUser(const base::ListValue* args); |
32 void UnwhitelistUser(const base::ListValue* args); | 30 void UnwhitelistUser(const base::ListValue* args); |
33 | 31 |
34 // Javascript callback to auto add existing users to white list. | 32 // Javascript callback to auto add existing users to white list. |
35 void WhitelistExistingUsers(const base::ListValue* args); | 33 void WhitelistExistingUsers(const base::ListValue* args); |
36 | 34 |
37 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); | 35 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); |
38 }; | 36 }; |
39 | 37 |
40 } // namespace chromeos | 38 } // namespace chromeos |
41 | 39 |
42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ | 40 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
OLD | NEW |