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

Side by Side Diff: chromeos/dbus/auth_policy_client.h

Issue 2607593002: Add fake implementation for AuthPolicyClient::RefreshUserPolicy() (Closed)
Patch Set: CHECK on serialization errors Created 3 years, 11 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
« no previous file with comments | « chromeos/BUILD.gn ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DBUS_AUTH_POLICY_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_AUTH_POLICY_CLIENT_H_
6 #define CHROMEOS_DBUS_AUTH_POLICY_CLIENT_H_ 6 #define CHROMEOS_DBUS_AUTH_POLICY_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chromeos/chromeos_export.h" 11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/dbus_client.h" 12 #include "chromeos/dbus/dbus_client.h"
13 #include "third_party/cros_system_api/dbus/service_constants.h" 13 #include "third_party/cros_system_api/dbus/service_constants.h"
14 14
15 class AccountId;
16
15 // TODO(rsorokin): Switch to service constants when it's landed. 17 // TODO(rsorokin): Switch to service constants when it's landed.
16 // (see crbug.com/659732) 18 // (see crbug.com/659732)
17 namespace authpolicy { 19 namespace authpolicy {
18 namespace types { 20 namespace types {
19 enum ADJoinErrorType { 21 enum ADJoinErrorType {
20 AD_JOIN_ERROR_NONE = 0, 22 AD_JOIN_ERROR_NONE = 0,
21 AD_JOIN_ERROR_UNKNOWN = 1, 23 AD_JOIN_ERROR_UNKNOWN = 1,
22 AD_JOIN_ERROR_DBUS_FAIL = 2, 24 AD_JOIN_ERROR_DBUS_FAIL = 2,
23 }; 25 };
24 } // namespace types 26 } // namespace types
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int password_fd, 66 int password_fd,
65 const AuthCallback& callback) = 0; 67 const AuthCallback& callback) = 0;
66 68
67 // Calls RefreshDevicePolicy - handle policy for the device. 69 // Calls RefreshDevicePolicy - handle policy for the device.
68 // Fetch GPO files from Active directory server, parse it, encode it into 70 // Fetch GPO files from Active directory server, parse it, encode it into
69 // protobuf and send to SessionManager. Callback is called after that. 71 // protobuf and send to SessionManager. Callback is called after that.
70 virtual void RefreshDevicePolicy(const RefreshPolicyCallback& callback) = 0; 72 virtual void RefreshDevicePolicy(const RefreshPolicyCallback& callback) = 0;
71 73
72 // Calls RefreshUserPolicy - handle policy for the user specified by 74 // Calls RefreshUserPolicy - handle policy for the user specified by
73 // |account_id|. Similar to RefreshDevicePolicy. 75 // |account_id|. Similar to RefreshDevicePolicy.
74 virtual void RefreshUserPolicy(const std::string& account_id, 76 virtual void RefreshUserPolicy(const AccountId& account_id,
75 const RefreshPolicyCallback& callback) = 0; 77 const RefreshPolicyCallback& callback) = 0;
76 78
77 protected: 79 protected:
78 // Create() should be used instead. 80 // Create() should be used instead.
79 AuthPolicyClient(); 81 AuthPolicyClient();
80 82
81 private: 83 private:
82 DISALLOW_COPY_AND_ASSIGN(AuthPolicyClient); 84 DISALLOW_COPY_AND_ASSIGN(AuthPolicyClient);
83 }; 85 };
84 86
85 } // namespace chromeos 87 } // namespace chromeos
86 88
87 #endif // CHROMEOS_DBUS_AUTH_POLICY_CLIENT_H_ 89 #endif // CHROMEOS_DBUS_AUTH_POLICY_CLIENT_H_
OLDNEW
« 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