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

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

Issue 2433363004: Chromad: added AD Join ui, authpolicy_client (Closed)
Patch Set: Created 4 years, 2 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
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_DBUS_AUTHPOLICY_CLIENT_H_
6 #define CHROMEOS_DBUS_AUTHPOLICY_CLIENT_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "chromeos/chromeos_export.h"
13 #include "chromeos/dbus/dbus_client.h"
14 #include "chromeos/dbus/dbus_method_call_status.h"
hashimoto 2016/10/24 03:01:18 Remove unused include.
Roman Sorokin (ftl) 2016/10/24 16:50:34 Done.
15
16 namespace base {
17 class DictionaryValue;
hashimoto 2016/10/24 03:01:18 Remove unused forward declarations.
Roman Sorokin (ftl) 2016/10/24 16:50:34 Done.
18 }
19
20 namespace dbus {
21 class ObjectPath;
22 }
23
24 namespace chromeos {
25
hashimoto 2016/10/24 03:01:18 Add a comment to describe what this class is.
Roman Sorokin (ftl) 2016/10/24 16:50:34 Done.
26 class CHROMEOS_EXPORT AuthpolicyClient : public DBusClient {
hashimoto 2016/10/24 03:01:18 Is "authpolicy" a word? Isn't AuthPolicy better?
Roman Sorokin (ftl) 2016/10/24 16:50:34 Done.
27 public:
28 typedef base::Callback<void(int)> JoinCallback;
hashimoto 2016/10/24 03:01:18 Please give the int parameter a name. Like: base:
Roman Sorokin (ftl) 2016/10/24 16:50:34 Done.
29
30 ~AuthpolicyClient() override;
31
32 // Factory function, creates a new instance and returns ownership.
33 // For normal usage, access the singleton via DBusThreadManager::Get().
34 static AuthpolicyClient* Create();
35
36 virtual void Join(const std::string& machine_name,
hashimoto 2016/10/24 03:01:18 Please add a comment about this method.
Roman Sorokin (ftl) 2016/10/24 16:50:34 Done.
37 const std::string& user,
38 const std::string& password,
39 const JoinCallback& callback) = 0;
40
41 protected:
42 // Create() should be used instead.
43 AuthpolicyClient();
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(AuthpolicyClient);
47 };
48
49 } // namespace chromeos
50
51 #endif // CHROMEOS_DBUS_AUTHPOLICY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698