OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_ | |
7 #pragma once | |
8 | |
9 #include "base/compiler_specific.h" | |
10 #include "chrome/browser/ui/webui/options2/options_ui2.h" | |
11 | |
12 namespace chromeos { | |
13 namespace options2 { | |
14 | |
15 // ChromeOS handler for "Stats/crash reporting to Google" option of the Advanced | |
16 // settings page. This handler does only ChromeOS-specific actions while default | |
17 // code is in Chrome's AdvancedOptionsHandler | |
18 // (chrome/browser/webui/advanced_options_handler.cc). | |
19 class StatsOptionsHandler : public ::options2::OptionsPageUIHandler { | |
20 public: | |
21 StatsOptionsHandler(); | |
22 | |
23 // OptionsPageUIHandler implementation. | |
24 virtual void GetLocalizedValues( | |
25 base::DictionaryValue* localized_strings) OVERRIDE; | |
26 | |
27 // WebUIMessageHandler implementation. | |
28 virtual void RegisterMessages() OVERRIDE; | |
29 | |
30 private: | |
31 void HandleMetricsReportingCheckbox(const base::ListValue* args); | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler); | |
34 }; | |
35 | |
36 } // namespace options2 | |
37 } // namespace chromeos | |
38 | |
39 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_ | |
OLD | NEW |