| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL
ER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL
ER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL
ER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL
ER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // WebUIMessageHandler implementation: | 60 // WebUIMessageHandler implementation: |
| 61 void RegisterMessages() override; | 61 void RegisterMessages() override; |
| 62 | 62 |
| 63 // PowerManagerClient::Observer implementation: | 63 // PowerManagerClient::Observer implementation: |
| 64 void PowerChanged(const power_manager::PowerSupplyProperties& proto) override; | 64 void PowerChanged(const power_manager::PowerSupplyProperties& proto) override; |
| 65 | 65 |
| 66 // Handlers for JS API callbacks. | 66 // Handlers for JS API callbacks. |
| 67 void HandleStartMigration(); | 67 void HandleStartMigration(); |
| 68 void HandleSkipMigration(); | 68 void HandleSkipMigration(); |
| 69 void HandleRequestRestart(); | 69 void HandleRequestRestart(); |
| 70 void HandleRequestRestartOnFailure(); |
| 70 void HandleOpenFeedbackDialog(); | 71 void HandleOpenFeedbackDialog(); |
| 71 | 72 |
| 72 // Updates UI state. | 73 // Updates UI state. |
| 73 void UpdateUIState(UIState state); | 74 void UpdateUIState(UIState state); |
| 74 | 75 |
| 75 void CheckAvailableStorage(); | 76 void CheckAvailableStorage(); |
| 76 void OnGetAvailableStorage(int64_t size); | 77 void OnGetAvailableStorage(int64_t size); |
| 77 void WaitBatteryAndMigrate(); | 78 void WaitBatteryAndMigrate(); |
| 78 void StartMigration(); | 79 void StartMigration(); |
| 79 void OnMountExistingVault(bool success, | 80 void OnMountExistingVault(bool success, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 std::unique_ptr<LoginFeedback> login_feedback_; | 126 std::unique_ptr<LoginFeedback> login_feedback_; |
| 126 | 127 |
| 127 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; | 128 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); | 130 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace chromeos | 133 } // namespace chromeos |
| 133 | 134 |
| 134 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA
NDLER_H_ | 135 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA
NDLER_H_ |
| OLD | NEW |