| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_MANAGED_USER_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/time.h" |
| 9 #include "base/values.h" |
| 8 #include "chrome/browser/ui/webui/options/options_ui.h" | 10 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 9 | 11 |
| 10 namespace options { | 12 namespace options { |
| 11 | 13 |
| 12 class ManagedUserSettingsHandler : public OptionsPageUIHandler { | 14 class ManagedUserSettingsHandler : public OptionsPageUIHandler { |
| 13 public: | 15 public: |
| 14 ManagedUserSettingsHandler(); | 16 ManagedUserSettingsHandler(); |
| 15 virtual ~ManagedUserSettingsHandler(); | 17 virtual ~ManagedUserSettingsHandler(); |
| 16 | 18 |
| 17 // OptionsPageUIHandler implementation. | 19 // OptionsPageUIHandler implementation. |
| 18 virtual void GetLocalizedValues( | 20 virtual void GetLocalizedValues( |
| 19 base::DictionaryValue* localized_strings) OVERRIDE; | 21 base::DictionaryValue* localized_strings) OVERRIDE; |
| 20 | 22 |
| 23 virtual void InitializePage() OVERRIDE; |
| 24 virtual void RegisterMessages() OVERRIDE; |
| 25 |
| 21 private: | 26 private: |
| 27 // Save user metrics. Called from WebUI. |
| 28 void ConfirmChanges(const base::ListValue* args); |
| 29 void CancelChanges(const base::ListValue* args); |
| 30 |
| 31 // For tracking how long the user spends on this page. |
| 32 base::TimeTicks start_time_; |
| 33 |
| 22 DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler); | 34 DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler); |
| 23 }; | 35 }; |
| 24 | 36 |
| 25 } // namespace options | 37 } // namespace options |
| 26 | 38 |
| 27 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ | 39 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
| OLD | NEW |