| 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; |
| 14 |
| 13 class EncryptionMigrationScreen | 15 class EncryptionMigrationScreen |
| 14 : public BaseScreen, | 16 : public BaseScreen, |
| 15 public EncryptionMigrationScreenView::Delegate { | 17 public EncryptionMigrationScreenView::Delegate { |
| 16 public: | 18 public: |
| 17 EncryptionMigrationScreen(BaseScreenDelegate* base_screen_delegate, | 19 EncryptionMigrationScreen(BaseScreenDelegate* base_screen_delegate, |
| 18 EncryptionMigrationScreenView* view); | 20 EncryptionMigrationScreenView* view); |
| 19 ~EncryptionMigrationScreen() override; | 21 ~EncryptionMigrationScreen() override; |
| 20 | 22 |
| 21 // BaseScreen: | 23 // BaseScreen implementation: |
| 22 void Show() override; | 24 void Show() override; |
| 23 void Hide() override; | 25 void Hide() override; |
| 24 | 26 |
| 25 // EncryptionMigrationScreenView::Delegate: | 27 // EncryptionMigrationScreenView::Delegate implementation: |
| 26 void OnExit() override; | 28 void OnExit() override; |
| 27 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; | 29 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; |
| 28 | 30 |
| 31 // Sets the UserContext for a user whose cryptohome should be migrated. |
| 32 void SetUserContext(const UserContext& user_context); |
| 33 |
| 29 private: | 34 private: |
| 30 EncryptionMigrationScreenView* view_; | 35 EncryptionMigrationScreenView* view_; |
| 31 | 36 |
| 32 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); | 37 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); |
| 33 }; | 38 }; |
| 34 | 39 |
| 35 } // namespace chromeos | 40 } // namespace chromeos |
| 36 | 41 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ |
| OLD | NEW |