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

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

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Performs a login for |user_context|. 67 // Performs a login for |user_context|.
68 // If auth_mode is AUTH_MODE_EXTENSION, there are no further auth checks, 68 // If auth_mode is AUTH_MODE_EXTENSION, there are no further auth checks,
69 // AUTH_MODE_INTERNAL will perform auth checks. 69 // AUTH_MODE_INTERNAL will perform auth checks.
70 void PerformLogin(const UserContext& user_context, 70 void PerformLogin(const UserContext& user_context,
71 AuthorizationMode auth_mode); 71 AuthorizationMode auth_mode);
72 72
73 // Performs supervised user login with a given |user_context|. 73 // Performs supervised user login with a given |user_context|.
74 void LoginAsSupervisedUser(const UserContext& user_context); 74 void LoginAsSupervisedUser(const UserContext& user_context);
75 75
76 // Performs retail mode login.
77 void LoginRetailMode();
78
79 // Performs actions to prepare guest mode login. 76 // Performs actions to prepare guest mode login.
80 void LoginOffTheRecord(); 77 void LoginOffTheRecord();
81 78
82 // Performs public session login with a given |user_context|. 79 // Performs public session login with a given |user_context|.
83 void LoginAsPublicSession(const UserContext& user_context); 80 void LoginAsPublicSession(const UserContext& user_context);
84 81
85 // Performs a login into the kiosk mode account with |app_user_id|. 82 // Performs a login into the kiosk mode account with |app_user_id|.
86 void LoginAsKioskAccount(const std::string& app_user_id, 83 void LoginAsKioskAccount(const std::string& app_user_id,
87 bool use_guest_mount); 84 bool use_guest_mount);
88 85
89 // AuthStatusConsumer implementation: 86 // AuthStatusConsumer implementation:
90 virtual void OnAuthFailure(const AuthFailure& error) override; 87 virtual void OnAuthFailure(const AuthFailure& error) override;
91 virtual void OnRetailModeAuthSuccess(
92 const UserContext& user_context) override;
93 virtual void OnAuthSuccess(const UserContext& user_context) override; 88 virtual void OnAuthSuccess(const UserContext& user_context) override;
94 virtual void OnOffTheRecordAuthSuccess() override; 89 virtual void OnOffTheRecordAuthSuccess() override;
95 virtual void OnPasswordChangeDetected() override; 90 virtual void OnPasswordChangeDetected() override;
96 91
97 // Migrates cryptohome using |old_password| specified. 92 // Migrates cryptohome using |old_password| specified.
98 void RecoverEncryptedData(const std::string& old_password); 93 void RecoverEncryptedData(const std::string& old_password);
99 94
100 // Reinitializes cryptohome with the new password. 95 // Reinitializes cryptohome with the new password.
101 void ResyncEncryptedData(); 96 void ResyncEncryptedData();
102 97
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Authorization mode type. 225 // Authorization mode type.
231 AuthorizationMode auth_mode_; 226 AuthorizationMode auth_mode_;
232 227
233 base::WeakPtrFactory<LoginPerformer> weak_factory_; 228 base::WeakPtrFactory<LoginPerformer> weak_factory_;
234 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); 229 DISALLOW_COPY_AND_ASSIGN(LoginPerformer);
235 }; 230 };
236 231
237 } // namespace chromeos 232 } // namespace chromeos
238 233
239 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ 234 #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