Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Side by Side Diff: chrome/browser/chromeos/login/screens/encryption_migration_screen_view.h

Issue 2798023005: Force encryption migration if the device supports ARC. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_VIEW_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIEW_H _
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIEW_H _ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIEW_H _
7 7
8 #include "chrome/browser/chromeos/login/oobe_screen.h" 8 #include "chrome/browser/chromeos/login/oobe_screen.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 class UserContext; 12 class UserContext;
13 class LoginPerformer;
13 14
14 class EncryptionMigrationScreenView { 15 class EncryptionMigrationScreenView {
15 public: 16 public:
16 class Delegate { 17 class Delegate {
17 public: 18 public:
18 virtual ~Delegate() {} 19 virtual ~Delegate() {}
19 20
20 // Called when screen is exited. 21 // Called when screen is exited.
21 virtual void OnExit() = 0; 22 virtual void OnExit() = 0;
22 23
23 // This method is called, when view is being destroyed. Note, if Delegate is 24 // This method is called, when view is being destroyed. Note, if Delegate is
24 // destroyed earlier then it has to call SetDelegate(NULL). 25 // destroyed earlier then it has to call SetDelegate(NULL).
25 virtual void OnViewDestroyed(EncryptionMigrationScreenView* view) = 0; 26 virtual void OnViewDestroyed(EncryptionMigrationScreenView* view) = 0;
26 }; 27 };
27 28
28 constexpr static OobeScreen kScreenId = 29 constexpr static OobeScreen kScreenId =
29 OobeScreen::SCREEN_ENCRYPTION_MIGRATION; 30 OobeScreen::SCREEN_ENCRYPTION_MIGRATION;
30 31
31 virtual ~EncryptionMigrationScreenView() {} 32 virtual ~EncryptionMigrationScreenView() {}
32 33
33 virtual void Show() = 0; 34 virtual void Show() = 0;
34 virtual void Hide() = 0; 35 virtual void Hide() = 0;
35 virtual void SetDelegate(Delegate* delegate) = 0; 36 virtual void SetDelegate(Delegate* delegate) = 0;
36 virtual void SetUserContext(const UserContext& user_context) = 0; 37 virtual void SetUserContext(const UserContext& user_context) = 0;
38 virtual void SetLoginPerformer(LoginPerformer* login_performer) = 0;
37 }; 39 };
38 40
39 } // namespace chromeos 41 } // namespace chromeos
40 42
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIE W_H_ 43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIE W_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698