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

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

Issue 2794493002: Add AuthPolicyLoginHelper (Closed)
Patch Set: Update after review 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
« no previous file with comments | « chromeos/dbus/fake_upstart_client.cc ('k') | chromeos/dbus/upstart_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 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_UPSTART_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_UPSTART_CLIENT_H_
6 #define CHROMEOS_DBUS_UPSTART_CLIENT_H_ 6 #define CHROMEOS_DBUS_UPSTART_CLIENT_H_
7 7
8 #include "chromeos/chromeos_export.h" 8 #include "chromeos/chromeos_export.h"
9 #include "chromeos/dbus/dbus_client.h" 9 #include "chromeos/dbus/dbus_client.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // UpstartClient is used to communicate with the com.ubuntu.Upstart 13 // UpstartClient is used to communicate with the com.ubuntu.Upstart
14 // sevice. All methods should be called from the origin thread (UI thread) which 14 // sevice. All methods should be called from the origin thread (UI thread) which
15 // initializes the DBusThreadManager instance. 15 // initializes the DBusThreadManager instance.
16 class CHROMEOS_EXPORT UpstartClient : public DBusClient { 16 class CHROMEOS_EXPORT UpstartClient : public DBusClient {
17 public: 17 public:
18 ~UpstartClient() override; 18 ~UpstartClient() override;
19 19
20 // Factory function, creates a new instance and returns ownership. 20 // Factory function, creates a new instance and returns ownership.
21 // For normal usage, access the singleton via DBusThreadManager::Get(). 21 // For normal usage, access the singleton via DBusThreadManager::Get().
22 static UpstartClient* Create(); 22 static UpstartClient* Create();
23 23
24 // Starts authpolicyd. 24 // Starts authpolicyd.
25 virtual void StartAuthPolicyService() = 0; 25 virtual void StartAuthPolicyService() = 0;
26 26
27 // Restarts authpolicyd.
28 virtual void RestartAuthPolicyService() = 0;
29
27 protected: 30 protected:
28 // Create() should be used instead. 31 // Create() should be used instead.
29 UpstartClient(); 32 UpstartClient();
30 33
31 private: 34 private:
32 DISALLOW_COPY_AND_ASSIGN(UpstartClient); 35 DISALLOW_COPY_AND_ASSIGN(UpstartClient);
33 }; 36 };
34 37
35 } // namespace chromeos 38 } // namespace chromeos
36 39
37 #endif // CHROMEOS_DBUS_UPSTART_CLIENT_H_ 40 #endif // CHROMEOS_DBUS_UPSTART_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_upstart_client.cc ('k') | chromeos/dbus/upstart_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698