Chromium Code Reviews| 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_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/ui/webui/options/options_ui.h" | 11 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 12 | 12 |
| 13 namespace policy { | |
| 14 class ConsumerManagementService; | |
| 15 } | |
| 16 | |
| 13 namespace chromeos { | 17 namespace chromeos { |
| 14 namespace options { | 18 namespace options { |
| 15 | 19 |
| 16 // Consumer management overlay page UI handler. | 20 // Consumer management overlay page UI handler. |
| 17 class ConsumerManagementHandler : public ::options::OptionsPageUIHandler { | 21 class ConsumerManagementHandler : public ::options::OptionsPageUIHandler { |
| 18 public: | 22 public: |
| 19 ConsumerManagementHandler(); | 23 explicit ConsumerManagementHandler( |
| 24 policy::ConsumerManagementService* consumer_management); | |
| 20 virtual ~ConsumerManagementHandler(); | 25 virtual ~ConsumerManagementHandler(); |
| 21 | 26 |
| 22 // OptionsPageUIHandler implementation. | 27 // OptionsPageUIHandler implementation. |
| 23 virtual void GetLocalizedValues( | 28 virtual void GetLocalizedValues( |
| 24 base::DictionaryValue* localized_strings) OVERRIDE; | 29 base::DictionaryValue* localized_strings) OVERRIDE; |
| 25 virtual void RegisterMessages() OVERRIDE; | 30 virtual void RegisterMessages() OVERRIDE; |
| 26 | 31 |
| 27 private: | 32 private: |
| 28 // Handles the button click events from the browser options page. | 33 // Handles the button click events from the browser options page. |
| 29 void HandleEnrollConsumerManagement(const base::ListValue* args); | 34 void HandleEnrollConsumerManagement(const base::ListValue* args); |
| 30 void HandleUnenrollConsumerManagement(const base::ListValue* args); | 35 void HandleUnenrollConsumerManagement(const base::ListValue* args); |
| 31 | 36 |
| 37 policy::ConsumerManagementService* consumer_management_; | |
|
bartfab (slow)
2014/08/05 18:07:14
Nit: Here and in the constructor argument: Consume
davidyu
2014/08/06 03:04:32
Done.
| |
| 38 | |
| 32 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementHandler); | 39 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementHandler); |
| 33 }; | 40 }; |
| 34 | 41 |
| 35 } // namespace options | 42 } // namespace options |
| 36 } // namespace chromeos | 43 } // namespace chromeos |
| 37 | 44 |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_ H_ | 45 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_ H_ |
| OLD | NEW |