| 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 // |use_guest_mount| specifies whether to force the session to use a |
| 62 virtual void LoginAsKioskAccount( | 62 // guest mount. If this is false, we use mount a public cryptohome. |
| 63 const std::string& app_user_id, bool force_ephemeral) = 0; | 63 virtual void LoginAsKioskAccount(const std::string& app_user_id, |
| 64 bool use_guest_mount) = 0; |
| 64 | 65 |
| 65 // Completes retail mode login. | 66 // Completes retail mode login. |
| 66 virtual void OnRetailModeLoginSuccess() = 0; | 67 virtual void OnRetailModeLoginSuccess() = 0; |
| 67 | 68 |
| 68 // Notifies caller that login was successful. Must be called on the UI thread. | 69 // Notifies caller that login was successful. Must be called on the UI thread. |
| 69 virtual void OnLoginSuccess() = 0; | 70 virtual void OnLoginSuccess() = 0; |
| 70 | 71 |
| 71 // Must be called on the UI thread. | 72 // Must be called on the UI thread. |
| 72 virtual void OnLoginFailure(const LoginFailure& error) = 0; | 73 virtual void OnLoginFailure(const LoginFailure& error) = 0; |
| 73 | 74 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 100 | 101 |
| 101 private: | 102 private: |
| 102 friend class base::RefCountedThreadSafe<Authenticator>; | 103 friend class base::RefCountedThreadSafe<Authenticator>; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(Authenticator); | 105 DISALLOW_COPY_AND_ASSIGN(Authenticator); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace chromeos | 108 } // namespace chromeos |
| 108 | 109 |
| 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ |
| OLD | NEW |