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_CHROME_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 ~ChromeLoginPerformer() override; | 35 ~ChromeLoginPerformer() override; |
36 | 36 |
37 protected: | 37 protected: |
38 bool RunTrustedCheck(const base::Closure& callback) override; | 38 bool RunTrustedCheck(const base::Closure& callback) override; |
39 void DidRunTrustedCheck(const base::Closure& callback); | 39 void DidRunTrustedCheck(const base::Closure& callback); |
40 bool IsUserWhitelisted(const std::string& user_id, | 40 bool IsUserWhitelisted(const std::string& user_id, |
41 bool* wildcard_match) override; | 41 bool* wildcard_match) override; |
42 | 42 |
43 void RunOnlineWhitelistCheck(const std::string& user_id, | 43 void RunOnlineWhitelistCheck(const std::string& user_id, |
44 bool wildcard_match, | 44 bool wildcard_match, |
| 45 const std::string& refresh_token, |
45 const base::Closure& success_callback, | 46 const base::Closure& success_callback, |
46 const base::Closure& failure_callback) override; | 47 const base::Closure& failure_callback) override; |
47 bool AreSupervisedUsersAllowed() override; | 48 bool AreSupervisedUsersAllowed() override; |
48 | 49 |
49 bool UseExtendedAuthenticatorForSupervisedUser( | 50 bool UseExtendedAuthenticatorForSupervisedUser( |
50 const UserContext& user_context) override; | 51 const UserContext& user_context) override; |
51 | 52 |
52 UserContext TransformSupervisedKey(const UserContext& context) override; | 53 UserContext TransformSupervisedKey(const UserContext& context) override; |
53 | 54 |
54 void SetupSupervisedUserFlow(const std::string& user_id) override; | 55 void SetupSupervisedUserFlow(const std::string& user_id) override; |
(...skipping 14 matching lines...) Expand all Loading... |
69 // Used to verify logins that matched wildcard on the login whitelist. | 70 // Used to verify logins that matched wildcard on the login whitelist. |
70 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; | 71 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; |
71 base::WeakPtrFactory<ChromeLoginPerformer> weak_factory_; | 72 base::WeakPtrFactory<ChromeLoginPerformer> weak_factory_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(ChromeLoginPerformer); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeLoginPerformer); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace chromeos | 77 } // namespace chromeos |
77 | 78 |
78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ | 79 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ |
OLD | NEW |