| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SETTINGS_CHROMEOS_EASY_UNLOCK_SETTINGS_HANDLER_H
_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_EASY_UNLOCK_SETTINGS_HANDLER_H
_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_EASY_UNLOCK_SETTINGS_HANDLER_H
_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_EASY_UNLOCK_SETTINGS_HANDLER_H
_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/signin/easy_unlock_service_observer.h" | 9 #include "chrome/browser/signin/easy_unlock_service_observer.h" |
| 10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 FRIEND_TEST_ALL_PREFIXES(EasyUnlockSettingsHandlerTest, EnabledStatus); | 43 FRIEND_TEST_ALL_PREFIXES(EasyUnlockSettingsHandlerTest, EnabledStatus); |
| 44 FRIEND_TEST_ALL_PREFIXES(EasyUnlockSettingsHandlerTest, TurnOffStatus); | 44 FRIEND_TEST_ALL_PREFIXES(EasyUnlockSettingsHandlerTest, TurnOffStatus); |
| 45 | 45 |
| 46 void SendEnabledStatus(); | 46 void SendEnabledStatus(); |
| 47 void SendTurnOffOperationStatus(); | 47 void SendTurnOffOperationStatus(); |
| 48 | 48 |
| 49 // JS callbacks. | 49 // JS callbacks. |
| 50 void HandleGetEnabledStatus(const base::ListValue* args); | 50 void HandleGetEnabledStatus(const base::ListValue* args); |
| 51 void HandleLaunchSetup(const base::ListValue* args); |
| 51 void HandleGetTurnOffFlowStatus(const base::ListValue* args); | 52 void HandleGetTurnOffFlowStatus(const base::ListValue* args); |
| 52 void HandleRequestTurnOff(const base::ListValue* args); | 53 void HandleRequestTurnOff(const base::ListValue* args); |
| 53 void HandlePageDismissed(const base::ListValue* args); | 54 void HandlePageDismissed(const base::ListValue* args); |
| 54 | 55 |
| 55 Profile* const profile_; | 56 Profile* const profile_; |
| 56 | 57 |
| 57 PrefChangeRegistrar profile_pref_registrar_; | 58 PrefChangeRegistrar profile_pref_registrar_; |
| 58 | 59 |
| 59 bool observers_registered_; | 60 bool observers_registered_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(EasyUnlockSettingsHandler); | 62 DISALLOW_COPY_AND_ASSIGN(EasyUnlockSettingsHandler); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace settings | 65 } // namespace settings |
| 65 } // namespace chromeos | 66 } // namespace chromeos |
| 66 | 67 |
| 67 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_EASY_UNLOCK_SETTINGS_HANDLE
R_H_ | 68 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_EASY_UNLOCK_SETTINGS_HANDLE
R_H_ |
| OLD | NEW |