OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTH_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // this method attempts to authenticate to login. | 36 // this method attempts to authenticate to login. |
37 // Must be called on the UI thread. | 37 // Must be called on the UI thread. |
38 virtual void AuthenticateToLogin(Profile* profile, | 38 virtual void AuthenticateToLogin(Profile* profile, |
39 const UserContext& user_context) = 0; | 39 const UserContext& user_context) = 0; |
40 | 40 |
41 // Given a user credentials in |user_context|, this method attempts to | 41 // Given a user credentials in |user_context|, this method attempts to |
42 // authenticate to unlock the computer. | 42 // authenticate to unlock the computer. |
43 // Must be called on the UI thread. | 43 // Must be called on the UI thread. |
44 virtual void AuthenticateToUnlock(const UserContext& user_context) = 0; | 44 virtual void AuthenticateToUnlock(const UserContext& user_context) = 0; |
45 | 45 |
46 // Initiates locally managed user login. | 46 // Initiates supervised user login. |
47 virtual void LoginAsLocallyManagedUser( | 47 virtual void LoginAsSupervisedUser( |
48 const UserContext& user_context) = 0; | 48 const UserContext& user_context) = 0; |
49 | 49 |
50 // Initiates retail mode login. | 50 // Initiates retail mode login. |
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; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 private: | 102 private: |
103 friend class base::RefCountedThreadSafe<Authenticator>; | 103 friend class base::RefCountedThreadSafe<Authenticator>; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(Authenticator); | 105 DISALLOW_COPY_AND_ASSIGN(Authenticator); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace chromeos | 108 } // namespace chromeos |
109 | 109 |
110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ |
OLD | NEW |