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

Side by Side Diff: chrome/browser/chromeos/login/parallel_authenticator.h

Issue 156493004: Add the ability to show a demo app on OOBE if a machine is derelict. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PARALLEL_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Initiates incognito ("browse without signing in") login. 125 // Initiates incognito ("browse without signing in") login.
126 // Mounts tmpfs and notifies consumer on the success/failure. 126 // Mounts tmpfs and notifies consumer on the success/failure.
127 virtual void LoginOffTheRecord() OVERRIDE; 127 virtual void LoginOffTheRecord() OVERRIDE;
128 128
129 // Initiates login into the public account identified by |username|. 129 // Initiates login into the public account identified by |username|.
130 // Mounts an ephemeral cryptohome and notifies consumer on the 130 // Mounts an ephemeral cryptohome and notifies consumer on the
131 // success/failure. 131 // success/failure.
132 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; 132 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
133 133
134 // Initiates login into the kiosk mode account identified by |app_user_id|. 134 // Initiates login into the kiosk mode account identified by |app_user_id|.
135 // Mounts an public but non-ephemeral cryptohome and notifies consumer on the 135 // Mounts an public but non-ephemeral cryptohome and notifies consumer on the
bartfab (slow) 2014/02/13 19:51:53 This comment is no longer accurate. There is an ar
rkc 2014/02/13 23:22:01 Fixed the comment and added details about the forc
136 // success/failure. 136 // success/failure.
137 virtual void LoginAsKioskAccount(const std::string& app_user_id) OVERRIDE; 137 virtual void LoginAsKioskAccount(
138 const std::string& app_user_id, bool force_ephemeral) OVERRIDE;
bartfab (slow) 2014/02/13 19:51:53 This violates the style guide. Either the entire d
rkc 2014/02/13 23:22:01 Done.
138 139
139 // These methods must be called on the UI thread, as they make DBus calls 140 // These methods must be called on the UI thread, as they make DBus calls
140 // and also call back to the login UI. 141 // and also call back to the login UI.
141 virtual void OnRetailModeLoginSuccess() OVERRIDE; 142 virtual void OnRetailModeLoginSuccess() OVERRIDE;
142 virtual void OnLoginSuccess() OVERRIDE; 143 virtual void OnLoginSuccess() OVERRIDE;
143 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; 144 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE;
144 virtual void RecoverEncryptedData( 145 virtual void RecoverEncryptedData(
145 const std::string& old_password) OVERRIDE; 146 const std::string& old_password) OVERRIDE;
146 virtual void ResyncEncryptedData() OVERRIDE; 147 virtual void ResyncEncryptedData() OVERRIDE;
147 148
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // When |remove_user_data_on_failure_| is set, we delay calling 244 // When |remove_user_data_on_failure_| is set, we delay calling
244 // consumer_->OnLoginFailure() until we removed the user cryptohome. 245 // consumer_->OnLoginFailure() until we removed the user cryptohome.
245 const LoginFailure* delayed_login_failure_; 246 const LoginFailure* delayed_login_failure_;
246 247
247 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); 248 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator);
248 }; 249 };
249 250
250 } // namespace chromeos 251 } // namespace chromeos
251 252
252 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 253 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698