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 CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_ |
6 #define CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_ | 6 #define CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 void CompleteLogin(content::BrowserContext* context, | 32 void CompleteLogin(content::BrowserContext* context, |
33 const UserContext& user_context) override; | 33 const UserContext& user_context) override; |
34 void AuthenticateToLogin(content::BrowserContext* context, | 34 void AuthenticateToLogin(content::BrowserContext* context, |
35 const UserContext& user_context) override; | 35 const UserContext& user_context) override; |
36 void AuthenticateToUnlock(const UserContext& user_context) override; | 36 void AuthenticateToUnlock(const UserContext& user_context) override; |
37 void LoginAsSupervisedUser(const UserContext& user_context) override; | 37 void LoginAsSupervisedUser(const UserContext& user_context) override; |
38 void LoginOffTheRecord() override; | 38 void LoginOffTheRecord() override; |
39 void LoginAsPublicSession(const UserContext& user_context) override; | 39 void LoginAsPublicSession(const UserContext& user_context) override; |
40 void LoginAsKioskAccount(const AccountId& app_account_id, | 40 void LoginAsKioskAccount(const AccountId& app_account_id, |
41 bool use_guest_mount) override; | 41 bool use_guest_mount) override; |
| 42 void LoginAsArcKioskAccount(const AccountId& app_account_id) override; |
42 void OnAuthSuccess() override; | 43 void OnAuthSuccess() override; |
43 void OnAuthFailure(const AuthFailure& failure) override; | 44 void OnAuthFailure(const AuthFailure& failure) override; |
44 void RecoverEncryptedData(const std::string& old_password) override; | 45 void RecoverEncryptedData(const std::string& old_password) override; |
45 void ResyncEncryptedData() override; | 46 void ResyncEncryptedData() override; |
46 | 47 |
47 virtual void SetExpectedCredentials(const UserContext& user_context); | 48 virtual void SetExpectedCredentials(const UserContext& user_context); |
48 | 49 |
49 protected: | 50 protected: |
50 ~StubAuthenticator() override; | 51 ~StubAuthenticator() override; |
51 | 52 |
52 private: | 53 private: |
53 UserContext expected_user_context_; | 54 UserContext expected_user_context_; |
54 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 55 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(StubAuthenticator); | 57 DISALLOW_COPY_AND_ASSIGN(StubAuthenticator); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace chromeos | 60 } // namespace chromeos |
60 | 61 |
61 #endif // CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_ | 62 #endif // CHROMEOS_LOGIN_AUTH_STUB_AUTHENTICATOR_H_ |
OLD | NEW |