| Index: chromeos/dbus/auth_policy_client.h
|
| diff --git a/chromeos/dbus/auth_policy_client.h b/chromeos/dbus/auth_policy_client.h
|
| index 9e0bb1f5cb3baeb8a969cdce286e43f62a6549e3..94f3e0e95f7eeb6735473ca76bc7054a1a6e6b1e 100644
|
| --- a/chromeos/dbus/auth_policy_client.h
|
| +++ b/chromeos/dbus/auth_policy_client.h
|
| @@ -9,7 +9,7 @@
|
|
|
| #include "base/callback.h"
|
| #include "chromeos/chromeos_export.h"
|
| -#include "chromeos/dbus/authpolicy/active_directory_account_data.pb.h"
|
| +#include "chromeos/dbus/authpolicy/active_directory_info.pb.h"
|
| #include "chromeos/dbus/dbus_client.h"
|
| #include "third_party/cros_system_api/dbus/service_constants.h"
|
|
|
| @@ -22,11 +22,12 @@ namespace chromeos {
|
| // initializes the DBusThreadManager instance.
|
| class CHROMEOS_EXPORT AuthPolicyClient : public DBusClient {
|
| public:
|
| - // |user_id| is a unique id for the users. Using objectGUID from Active
|
| - // Directory server.
|
| using AuthCallback = base::OnceCallback<void(
|
| authpolicy::ErrorType error,
|
| - const authpolicy::ActiveDirectoryAccountData& account_data)>;
|
| + const authpolicy::ActiveDirectoryAccountInfo& account_info)>;
|
| + using GetUserStatusCallback = base::OnceCallback<void(
|
| + authpolicy::ErrorType error,
|
| + const authpolicy::ActiveDirectoryUserStatus& user_status)>;
|
| using JoinCallback = base::OnceCallback<void(authpolicy::ErrorType error)>;
|
| using RefreshPolicyCallback = base::OnceCallback<void(bool success)>;
|
|
|
| @@ -59,6 +60,12 @@ class CHROMEOS_EXPORT AuthPolicyClient : public DBusClient {
|
| int password_fd,
|
| AuthCallback callback) = 0;
|
|
|
| + // Calls GetUserStatus. If Active Directory server is online it fetches
|
| + // ActiveDirectoryUserStatus for the user specified by |object_guid|.
|
| + // |callback| is called after getting (or failing to get) D-Bus response.
|
| + virtual void GetUserStatus(const std::string& object_guid,
|
| + GetUserStatusCallback callback) = 0;
|
| +
|
| // Calls RefreshDevicePolicy - handle policy for the device.
|
| // Fetch GPO files from Active directory server, parse it, encode it into
|
| // protobuf and send to SessionManager. Callback is called after that.
|
|
|