| 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/prefs/pref_change_registrar.h" | 8 #include "base/prefs/pref_change_registrar.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void RemoveManualException(const base::ListValue* args); | 51 void RemoveManualException(const base::ListValue* args); |
| 52 | 52 |
| 53 // Changes the value of an exception. Called after the user is done editing an | 53 // Changes the value of an exception. Called after the user is done editing an |
| 54 // exception. | 54 // exception. |
| 55 void SetManualException(const base::ListValue* args); | 55 void SetManualException(const base::ListValue* args); |
| 56 | 56 |
| 57 // Updates the current view by reading the entries from the managed mode | 57 // Updates the current view by reading the entries from the managed mode |
| 58 // service and updating the WebUI model. | 58 // service and updating the WebUI model. |
| 59 void UpdateViewFromModel(); | 59 void UpdateViewFromModel(); |
| 60 | 60 |
| 61 // Stores if the user has already seen the managed user settings dialog. Is |
| 62 // true unless explicitly set to false in HandlePageOpened. |
| 63 bool has_seen_settings_dialog_; |
| 64 |
| 61 // For tracking how long the user spends on this page. | 65 // For tracking how long the user spends on this page. |
| 62 base::TimeTicks start_time_; | 66 base::TimeTicks start_time_; |
| 63 | 67 |
| 64 PrefChangeRegistrar pref_change_registrar_; | 68 PrefChangeRegistrar pref_change_registrar_; |
| 65 | 69 |
| 66 DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler); | 70 DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler); |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 } // namespace options | 73 } // namespace options |
| 70 | 74 |
| 71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ | 75 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
| OLD | NEW |