| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "base/values.h" | |
| 11 #include "chrome/browser/ui/webui/options/options_ui.h" | |
| 12 | |
| 13 namespace policy { | |
| 14 class ConsumerManagementService; | |
| 15 } | |
| 16 | |
| 17 namespace chromeos { | |
| 18 namespace options { | |
| 19 | |
| 20 // Consumer management overlay page UI handler. | |
| 21 class ConsumerManagementHandler : public ::options::OptionsPageUIHandler { | |
| 22 public: | |
| 23 explicit ConsumerManagementHandler( | |
| 24 policy::ConsumerManagementService* management_service); | |
| 25 ~ConsumerManagementHandler() override; | |
| 26 | |
| 27 // OptionsPageUIHandler implementation. | |
| 28 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; | |
| 29 void RegisterMessages() override; | |
| 30 | |
| 31 private: | |
| 32 // Handles the button click events from the browser options page. | |
| 33 void HandleEnrollConsumerManagement(const base::ListValue* args); | |
| 34 void HandleUnenrollConsumerManagement(const base::ListValue* args); | |
| 35 | |
| 36 policy::ConsumerManagementService* management_service_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementHandler); | |
| 39 }; | |
| 40 | |
| 41 } // namespace options | |
| 42 } // namespace chromeos | |
| 43 | |
| 44 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_
H_ | |
| OLD | NEW |