Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / chromeos / stats_options_handler.h
blobbe2a719d7e98876dea71bec185876dd80950c606
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_STATS_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_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 handler for "Stats/crash reporting to Google" option of the Advanced
15 // settings page. This handler does only ChromeOS-specific actions while default
16 // code is in Chrome's AdvancedOptionsHandler
17 // (chrome/browser/webui/advanced_options_handler.cc).
18 class StatsOptionsHandler : public ::options::OptionsPageUIHandler {
19 public:
20 StatsOptionsHandler();
22 // OptionsPageUIHandler implementation.
23 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
25 // WebUIMessageHandler implementation.
26 void RegisterMessages() override;
28 private:
29 void HandleMetricsReportingCheckbox(const base::ListValue* args);
31 DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler);
34 } // namespace options
35 } // namespace chromeos
37 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_