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

Side by Side Diff: chromeos/login/auth/login_performer.h

Issue 2784273003: Implement a basic UI flow for cryptohome encryption migration. (Closed)
Patch Set: Address review comments. 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
« no previous file with comments | « chromeos/login/auth/cryptohome_authenticator.cc ('k') | chromeos/login/auth/login_performer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_
6 #define CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ 6 #define CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool use_guest_mount); 84 bool use_guest_mount);
85 85
86 // Performs a login into the ARC kiosk mode account with |arc_app_account_id|. 86 // Performs a login into the ARC kiosk mode account with |arc_app_account_id|.
87 void LoginAsArcKioskAccount(const AccountId& arc_app_account_id); 87 void LoginAsArcKioskAccount(const AccountId& arc_app_account_id);
88 88
89 // AuthStatusConsumer implementation: 89 // AuthStatusConsumer implementation:
90 void OnAuthFailure(const AuthFailure& error) override; 90 void OnAuthFailure(const AuthFailure& error) override;
91 void OnAuthSuccess(const UserContext& user_context) override; 91 void OnAuthSuccess(const UserContext& user_context) override;
92 void OnOffTheRecordAuthSuccess() override; 92 void OnOffTheRecordAuthSuccess() override;
93 void OnPasswordChangeDetected() override; 93 void OnPasswordChangeDetected() override;
94 void OnOldEncryptionDetected() override; 94 void OnOldEncryptionDetected(const UserContext& user_context) override;
95 95
96 // Migrates cryptohome using |old_password| specified. 96 // Migrates cryptohome using |old_password| specified.
97 void RecoverEncryptedData(const std::string& old_password); 97 void RecoverEncryptedData(const std::string& old_password);
98 98
99 // Reinitializes cryptohome with the new password. 99 // Reinitializes cryptohome with the new password.
100 void ResyncEncryptedData(); 100 void ResyncEncryptedData();
101 101
102 // Returns latest auth error. 102 // Returns latest auth error.
103 const GoogleServiceAuthError& error() const { 103 const GoogleServiceAuthError& error() const {
104 return last_login_failure_.error(); 104 return last_login_failure_.error();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Authorization mode type. 224 // Authorization mode type.
225 AuthorizationMode auth_mode_; 225 AuthorizationMode auth_mode_;
226 226
227 base::WeakPtrFactory<LoginPerformer> weak_factory_; 227 base::WeakPtrFactory<LoginPerformer> weak_factory_;
228 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); 228 DISALLOW_COPY_AND_ASSIGN(LoginPerformer);
229 }; 229 };
230 230
231 } // namespace chromeos 231 } // namespace chromeos
232 232
233 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ 233 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_
OLDNEW
« no previous file with comments | « chromeos/login/auth/cryptohome_authenticator.cc ('k') | chromeos/login/auth/login_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698