OLD | NEW |
---|---|
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 Loading... | |
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 // |force_ephemeral| specifies whether to force the session to be ephemeral. | 61 // |force_guest| specifies whether to force the session to use a guest mount. |
bartfab (slow)
2014/03/25 12:52:54
Nit: Specify what happens when this is |false|.
rkc
2014/03/26 21:30:40
Done.
| |
62 virtual void LoginAsKioskAccount( | 62 virtual void LoginAsKioskAccount(const std::string& app_user_id, |
63 const std::string& app_user_id, bool force_ephemeral) = 0; | 63 bool force_guest) = 0; |
64 | 64 |
65 // Completes retail mode login. | 65 // Completes retail mode login. |
66 virtual void OnRetailModeLoginSuccess() = 0; | 66 virtual void OnRetailModeLoginSuccess() = 0; |
67 | 67 |
68 // Notifies caller that login was successful. Must be called on the UI thread. | 68 // Notifies caller that login was successful. Must be called on the UI thread. |
69 virtual void OnLoginSuccess() = 0; | 69 virtual void OnLoginSuccess() = 0; |
70 | 70 |
71 // Must be called on the UI thread. | 71 // Must be called on the UI thread. |
72 virtual void OnLoginFailure(const LoginFailure& error) = 0; | 72 virtual void OnLoginFailure(const LoginFailure& error) = 0; |
73 | 73 |
(...skipping 26 matching lines...) Expand all Loading... | |
100 | 100 |
101 private: | 101 private: |
102 friend class base::RefCountedThreadSafe<Authenticator>; | 102 friend class base::RefCountedThreadSafe<Authenticator>; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(Authenticator); | 104 DISALLOW_COPY_AND_ASSIGN(Authenticator); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace chromeos | 107 } // namespace chromeos |
108 | 108 |
109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ | 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ |
OLD | NEW |