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 "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" | 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class UserCrosSettingsProvider; | 13 class UserCrosSettingsProvider; |
14 | 14 |
15 // ChromeOS accounts options page handler. | 15 // ChromeOS accounts options page handler. |
16 class AccountsOptionsHandler : public CrosOptionsPageUIHandler { | 16 class AccountsOptionsHandler : public CrosOptionsPageUIHandler { |
17 public: | 17 public: |
18 AccountsOptionsHandler(); | 18 AccountsOptionsHandler(); |
19 virtual ~AccountsOptionsHandler(); | 19 virtual ~AccountsOptionsHandler(); |
20 | 20 |
21 // WebUIMessageHandler implementation. | 21 // WebUIMessageHandler implementation. |
22 virtual void RegisterMessages(); | 22 virtual void RegisterMessages(); |
23 | 23 |
24 // OptionsPageUIHandler implementation. | 24 // OptionsPageUIHandler implementation. |
25 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 25 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); |
26 | 26 |
27 private: | 27 private: |
28 UserCrosSettingsProvider* users_settings() const; | 28 UserCrosSettingsProvider* users_settings() const; |
29 | 29 |
30 // Javascript callbacks to whitelist/unwhitelist user. | 30 // Javascript callbacks to whitelist/unwhitelist user. |
31 void WhitelistUser(const ListValue* args); | 31 void WhitelistUser(const base::ListValue* args); |
32 void UnwhitelistUser(const ListValue* args); | 32 void UnwhitelistUser(const base::ListValue* args); |
33 | 33 |
34 // Javascript callback to auto add existing users to white list. | 34 // Javascript callback to auto add existing users to white list. |
35 void WhitelistExistingUsers(const ListValue* args); | 35 void WhitelistExistingUsers(const base::ListValue* args); |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); | 37 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace chromeos | 40 } // namespace chromeos |
41 | 41 |
42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ | 42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
OLD | NEW |