| 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_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/chromeos/login/screens/base_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| 10 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view
.h" | 10 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view
.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void Show() override; | 27 void Show() override; |
| 28 void Hide() override; | 28 void Hide() override; |
| 29 | 29 |
| 30 // EncryptionMigrationScreenView::Delegate implementation: | 30 // EncryptionMigrationScreenView::Delegate implementation: |
| 31 void OnExit() override; | 31 void OnExit() override; |
| 32 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; | 32 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; |
| 33 | 33 |
| 34 // Sets the UserContext for a user whose cryptohome should be migrated. | 34 // Sets the UserContext for a user whose cryptohome should be migrated. |
| 35 void SetUserContext(const UserContext& user_context); | 35 void SetUserContext(const UserContext& user_context); |
| 36 | 36 |
| 37 // Sets whether the migration process should resume the previous one or not. |
| 38 void SetShouldResume(bool should_resume); |
| 39 |
| 37 // Sets a callback, which should be called when the user want to log in to the | 40 // Sets a callback, which should be called when the user want to log in to the |
| 38 // session from the migration UI. | 41 // session from the migration UI. |
| 39 void SetContinueLoginCallback(ContinueLoginCallback callback); | 42 void SetContinueLoginCallback(ContinueLoginCallback callback); |
| 40 | 43 |
| 41 private: | 44 private: |
| 42 EncryptionMigrationScreenView* view_; | 45 EncryptionMigrationScreenView* view_; |
| 43 | 46 |
| 44 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); | 47 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); |
| 45 }; | 48 }; |
| 46 | 49 |
| 47 } // namespace chromeos | 50 } // namespace chromeos |
| 48 | 51 |
| 49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ |
| OLD | NEW |