| 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 "base/macros.h" | 8 #include "base/macros.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 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 11 #include "chromeos/login/auth/user_context.h" | 11 #include "chromeos/login/auth/user_context.h" |
| 12 #include "third_party/cros_system_api/dbus/cryptohome/dbus-constants.h" | 12 #include "third_party/cros_system_api/dbus/cryptohome/dbus-constants.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 // WebUI implementation of EncryptionMigrationScreenView | 16 // WebUI implementation of EncryptionMigrationScreenView |
| 17 class EncryptionMigrationScreenHandler : public EncryptionMigrationScreenView, | 17 class EncryptionMigrationScreenHandler : public EncryptionMigrationScreenView, |
| 18 public BaseScreenHandler { | 18 public BaseScreenHandler { |
| 19 public: | 19 public: |
| 20 EncryptionMigrationScreenHandler(); | 20 EncryptionMigrationScreenHandler(); |
| 21 ~EncryptionMigrationScreenHandler() override; | 21 ~EncryptionMigrationScreenHandler() override; |
| 22 | 22 |
| 23 // EncryptionMigrationScreenView implementation: | 23 // EncryptionMigrationScreenView implementation: |
| 24 void Show() override; | 24 void Show() override; |
| 25 void Hide() override; | 25 void Hide() override; |
| 26 void SetDelegate(Delegate* delegate) override; | 26 void SetDelegate(Delegate* delegate) override; |
| 27 void SetUserContext(const UserContext& user_context) override; | 27 void SetUserContext(const UserContext& user_context) override; |
| 28 void SetShouldResume(bool should_resume) override; |
| 28 void SetContinueLoginCallback(ContinueLoginCallback callback) override; | 29 void SetContinueLoginCallback(ContinueLoginCallback callback) override; |
| 29 | 30 |
| 30 // BaseScreenHandler implementation: | 31 // BaseScreenHandler implementation: |
| 31 void DeclareLocalizedValues( | 32 void DeclareLocalizedValues( |
| 32 ::login::LocalizedValuesBuilder* builder) override; | 33 ::login::LocalizedValuesBuilder* builder) override; |
| 33 void Initialize() override; | 34 void Initialize() override; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 // Enumeration for the migration state. These values must be kept in sync with | 37 // Enumeration for the migration state. These values must be kept in sync with |
| 37 // EncryptionMigrationUIState in JS code. | 38 // EncryptionMigrationUIState in JS code. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ContinueLoginCallback continue_login_callback_; | 77 ContinueLoginCallback continue_login_callback_; |
| 77 | 78 |
| 78 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; | 79 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); | 81 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace chromeos | 84 } // namespace chromeos |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA
NDLER_H_ | 86 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA
NDLER_H_ |
| OLD | NEW |