OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_AUTHPOLICY_LOGIN_HELPER_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ |
6 #define CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ | 6 #define CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void CancelRequestsAndRestart(); | 49 void CancelRequestsAndRestart(); |
50 | 50 |
51 private: | 51 private: |
52 // Called from AuthPolicyClient::JoinAdDomain. | 52 // Called from AuthPolicyClient::JoinAdDomain. |
53 void OnJoinCallback(JoinCallback callback, authpolicy::ErrorType error); | 53 void OnJoinCallback(JoinCallback callback, authpolicy::ErrorType error); |
54 | 54 |
55 // Called from AuthPolicyClient::AuthenticateUser. | 55 // Called from AuthPolicyClient::AuthenticateUser. |
56 void OnAuthCallback( | 56 void OnAuthCallback( |
57 AuthCallback callback, | 57 AuthCallback callback, |
58 authpolicy::ErrorType error, | 58 authpolicy::ErrorType error, |
59 const authpolicy::ActiveDirectoryAccountData& account_data); | 59 const authpolicy::ActiveDirectoryAccountInfo& account_info); |
60 | 60 |
61 base::WeakPtrFactory<AuthPolicyLoginHelper> weak_factory_; | 61 base::WeakPtrFactory<AuthPolicyLoginHelper> weak_factory_; |
62 DISALLOW_COPY_AND_ASSIGN(AuthPolicyLoginHelper); | 62 DISALLOW_COPY_AND_ASSIGN(AuthPolicyLoginHelper); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace chromeos | 65 } // namespace chromeos |
66 | 66 |
67 #endif // CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ | 67 #endif // CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ |
OLD | NEW |