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

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: Bind |auth_mode| 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 "base/callback_forward.h"
8 #include "chrome/browser/chromeos/login/oobe_screen.h" 9 #include "chrome/browser/chromeos/login/oobe_screen.h"
9 10
10 namespace chromeos { 11 namespace chromeos {
11 12
12 class UserContext; 13 class UserContext;
13 14
14 class EncryptionMigrationScreenView { 15 class EncryptionMigrationScreenView {
15 public: 16 public:
17 using ContinueLoginCallback = base::OnceCallback<void(const UserContext&)>;
18
16 class Delegate { 19 class Delegate {
17 public: 20 public:
18 virtual ~Delegate() {} 21 virtual ~Delegate() {}
19 22
20 // Called when screen is exited. 23 // Called when screen is exited.
21 virtual void OnExit() = 0; 24 virtual void OnExit() = 0;
22 25
23 // This method is called, when view is being destroyed. Note, if Delegate is 26 // This method is called, when view is being destroyed. Note, if Delegate is
24 // destroyed earlier then it has to call SetDelegate(NULL). 27 // destroyed earlier then it has to call SetDelegate(NULL).
25 virtual void OnViewDestroyed(EncryptionMigrationScreenView* view) = 0; 28 virtual void OnViewDestroyed(EncryptionMigrationScreenView* view) = 0;
26 }; 29 };
27 30
28 constexpr static OobeScreen kScreenId = 31 constexpr static OobeScreen kScreenId =
29 OobeScreen::SCREEN_ENCRYPTION_MIGRATION; 32 OobeScreen::SCREEN_ENCRYPTION_MIGRATION;
30 33
31 virtual ~EncryptionMigrationScreenView() {} 34 virtual ~EncryptionMigrationScreenView() {}
32 35
33 virtual void Show() = 0; 36 virtual void Show() = 0;
34 virtual void Hide() = 0; 37 virtual void Hide() = 0;
35 virtual void SetDelegate(Delegate* delegate) = 0; 38 virtual void SetDelegate(Delegate* delegate) = 0;
36 virtual void SetUserContext(const UserContext& user_context) = 0; 39 virtual void SetUserContext(const UserContext& user_context) = 0;
40 virtual void SetContinueLoginCallback(ContinueLoginCallback callback) = 0;
37 }; 41 };
38 42
39 } // namespace chromeos 43 } // namespace chromeos
40 44
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIE W_H_ 45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIE W_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/encryption_migration_screen.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698