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

Unified Diff: chromeos/dbus/auth_policy_client.h

Issue 2841103002: Chromad: Add GetUserStatus call into AuthPolicyClient (Closed)
Patch Set: Fix test build 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/BUILD.gn ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chromeos/BUILD.gn ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698