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

Side by Side Diff: chrome/browser/chromeos/login/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_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void LoginRetailMode() = 0; 51 virtual void LoginRetailMode() = 0;
52 52
53 // Initiates incognito ("browse without signing in") login. 53 // Initiates incognito ("browse without signing in") login.
54 virtual void LoginOffTheRecord() = 0; 54 virtual void LoginOffTheRecord() = 0;
55 55
56 // Initiates login into the public account identified by |username|. 56 // Initiates login into the public account identified by |username|.
57 virtual void LoginAsPublicAccount(const std::string& username) = 0; 57 virtual void LoginAsPublicAccount(const std::string& username) = 0;
58 58
59 // Initiates login into kiosk mode account identified by |app_user_id|. 59 // Initiates login into kiosk mode account identified by |app_user_id|.
60 // The |app_user_id| is a generated username for the account. 60 // The |app_user_id| is a generated username for the account.
61 virtual void LoginAsKioskAccount(const std::string& app_user_id) = 0; 61 virtual void LoginAsKioskAccount(
62 const std::string& app_user_id, bool force_ephemeral) = 0;
xiyuan 2014/02/12 00:03:22 nit: Document the new arg.
rkc 2014/02/12 00:08:07 Done.
62 63
63 // Completes retail mode login. 64 // Completes retail mode login.
64 virtual void OnRetailModeLoginSuccess() = 0; 65 virtual void OnRetailModeLoginSuccess() = 0;
65 66
66 // Notifies caller that login was successful. Must be called on the UI thread. 67 // Notifies caller that login was successful. Must be called on the UI thread.
67 virtual void OnLoginSuccess() = 0; 68 virtual void OnLoginSuccess() = 0;
68 69
69 // Must be called on the UI thread. 70 // Must be called on the UI thread.
70 virtual void OnLoginFailure(const LoginFailure& error) = 0; 71 virtual void OnLoginFailure(const LoginFailure& error) = 0;
71 72
(...skipping 26 matching lines...) Expand all
98 99
99 private: 100 private:
100 friend class base::RefCountedThreadSafe<Authenticator>; 101 friend class base::RefCountedThreadSafe<Authenticator>;
101 102
102 DISALLOW_COPY_AND_ASSIGN(Authenticator); 103 DISALLOW_COPY_AND_ASSIGN(Authenticator);
103 }; 104 };
104 105
105 } // namespace chromeos 106 } // namespace chromeos
106 107
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698