| 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 "chrome/browser/chromeos/login/screens/base_screen.h" | 8 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| 9 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view
.h" | 9 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view
.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 class UserContext; | 13 class UserContext; |
| 14 class LoginPerformer; |
| 14 | 15 |
| 15 class EncryptionMigrationScreen | 16 class EncryptionMigrationScreen |
| 16 : public BaseScreen, | 17 : public BaseScreen, |
| 17 public EncryptionMigrationScreenView::Delegate { | 18 public EncryptionMigrationScreenView::Delegate { |
| 18 public: | 19 public: |
| 19 EncryptionMigrationScreen(BaseScreenDelegate* base_screen_delegate, | 20 EncryptionMigrationScreen(BaseScreenDelegate* base_screen_delegate, |
| 20 EncryptionMigrationScreenView* view); | 21 EncryptionMigrationScreenView* view); |
| 21 ~EncryptionMigrationScreen() override; | 22 ~EncryptionMigrationScreen() override; |
| 22 | 23 |
| 23 // BaseScreen implementation: | 24 // BaseScreen implementation: |
| 24 void Show() override; | 25 void Show() override; |
| 25 void Hide() override; | 26 void Hide() override; |
| 26 | 27 |
| 27 // EncryptionMigrationScreenView::Delegate implementation: | 28 // EncryptionMigrationScreenView::Delegate implementation: |
| 28 void OnExit() override; | 29 void OnExit() override; |
| 29 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; | 30 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; |
| 30 | 31 |
| 31 // Sets the UserContext for a user whose cryptohome should be migrated. | 32 // Sets the UserContext for a user whose cryptohome should be migrated. |
| 32 void SetUserContext(const UserContext& user_context); | 33 void SetUserContext(const UserContext& user_context); |
| 33 | 34 |
| 35 // Sets the LoginPerformer which is used in the previous log-in attempt. |
| 36 void SetLoginPerformer(LoginPerformer* login_performer); |
| 37 |
| 34 private: | 38 private: |
| 35 EncryptionMigrationScreenView* view_; | 39 EncryptionMigrationScreenView* view_; |
| 36 | 40 |
| 37 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); | 41 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); |
| 38 }; | 42 }; |
| 39 | 43 |
| 40 } // namespace chromeos | 44 } // namespace chromeos |
| 41 | 45 |
| 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ | 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ |
| OLD | NEW |