Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: chromeos/login/auth/authpolicy_login_helper.h

Issue 2835473002: Chromad: Allow offline login. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 17 matching lines...) Expand all
28 ~AuthPolicyLoginHelper(); 28 ~AuthPolicyLoginHelper();
29 29
30 // See AuthPolicyClient::JoinAdDomain. 30 // See AuthPolicyClient::JoinAdDomain.
31 void JoinAdDomain(const std::string& machine_name, 31 void JoinAdDomain(const std::string& machine_name,
32 const std::string& username, 32 const std::string& username,
33 const std::string& password, 33 const std::string& password,
34 JoinCallback callback); 34 JoinCallback callback);
35 35
36 // See AuthPolicyClient::AuthenticateUser. 36 // See AuthPolicyClient::AuthenticateUser.
37 void AuthenticateUser(const std::string& username, 37 void AuthenticateUser(const std::string& username,
38 const std::string& object_guid,
38 const std::string& password, 39 const std::string& password,
39 AuthCallback callback); 40 AuthCallback callback);
40 41
41 // Cancel pending requests and restarts AuthPolicy service. 42 // Cancel pending requests and restarts AuthPolicy service.
42 void CancelRequestsAndRestart(); 43 void CancelRequestsAndRestart();
43 44
44 private: 45 private:
45 // Called from AuthPolicyClient::JoinAdDomain. 46 // Called from AuthPolicyClient::JoinAdDomain.
46 void OnJoinCallback(JoinCallback callback, authpolicy::ErrorType error); 47 void OnJoinCallback(JoinCallback callback, authpolicy::ErrorType error);
47 48
48 // Called from AuthPolicyClient::AuthenticateUser. 49 // Called from AuthPolicyClient::AuthenticateUser.
49 void OnAuthCallback( 50 void OnAuthCallback(
50 AuthCallback callback, 51 AuthCallback callback,
51 authpolicy::ErrorType error, 52 authpolicy::ErrorType error,
52 const authpolicy::ActiveDirectoryAccountData& account_data); 53 const authpolicy::ActiveDirectoryAccountData& account_data);
53 54
54 base::WeakPtrFactory<AuthPolicyLoginHelper> weak_factory_; 55 base::WeakPtrFactory<AuthPolicyLoginHelper> weak_factory_;
55 DISALLOW_COPY_AND_ASSIGN(AuthPolicyLoginHelper); 56 DISALLOW_COPY_AND_ASSIGN(AuthPolicyLoginHelper);
56 }; 57 };
57 58
58 } // namespace chromeos 59 } // namespace chromeos
59 60
60 #endif // CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_ 61 #endif // CHROMEOS_LOGIN_AUTH_AUTHPOLICY_LOGIN_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698