| 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 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; |
| 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 Loading... |
| 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_ |
| OLD | NEW |