OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTOMATIC_SETTINGS_RESET_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/ui/webui/options/options_ui.h" | 9 #include "chrome/browser/ui/webui/options/options_ui.h" |
10 | 10 |
11 namespace options { | 11 namespace options { |
12 | 12 |
13 // Handler for the banner that displays a settings reset event at the top of the | 13 // Handler for the banner that displays a settings reset event at the top of the |
14 // settings page. | 14 // settings page. |
15 class AutomaticSettingsResetHandler : public OptionsPageUIHandler { | 15 class AutomaticSettingsResetHandler : public OptionsPageUIHandler { |
16 public: | 16 public: |
17 AutomaticSettingsResetHandler(); | 17 AutomaticSettingsResetHandler(); |
18 virtual ~AutomaticSettingsResetHandler(); | 18 ~AutomaticSettingsResetHandler() override; |
19 | 19 |
20 // OptionsPageUIHandler implementation. | 20 // OptionsPageUIHandler implementation. |
21 virtual void GetLocalizedValues( | 21 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; |
22 base::DictionaryValue* localized_strings) override; | 22 void InitializePage() override; |
23 virtual void InitializePage() override; | |
24 | 23 |
25 // WebUIMessageHandler implementation. | 24 // WebUIMessageHandler implementation. |
26 virtual void RegisterMessages() override; | 25 void RegisterMessages() override; |
27 | 26 |
28 private: | 27 private: |
29 DISALLOW_COPY_AND_ASSIGN(AutomaticSettingsResetHandler); | 28 DISALLOW_COPY_AND_ASSIGN(AutomaticSettingsResetHandler); |
30 }; | 29 }; |
31 | 30 |
32 } // namespace options | 31 } // namespace options |
33 | 32 |
34 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_ | 33 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_ |
OLD | NEW |