| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_DBUS_UPSTART_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_UPSTART_CLIENT_H_ |
| 7 |
| 8 #include "chromeos/chromeos_export.h" |
| 9 #include "chromeos/dbus/dbus_client.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 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 |
| 15 // initializes the DBusThreadManager instance. |
| 16 class CHROMEOS_EXPORT UpstartClient : public DBusClient { |
| 17 public: |
| 18 ~UpstartClient() override; |
| 19 |
| 20 // Factory function, creates a new instance and returns ownership. |
| 21 // For normal usage, access the singleton via DBusThreadManager::Get(). |
| 22 static UpstartClient* Create(); |
| 23 |
| 24 // Starts authpolicyd. |
| 25 virtual void StartAuthPolicyService() = 0; |
| 26 |
| 27 protected: |
| 28 // Create() should be used instead. |
| 29 UpstartClient(); |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(UpstartClient); |
| 33 }; |
| 34 |
| 35 } // namespace chromeos |
| 36 |
| 37 #endif // CHROMEOS_DBUS_UPSTART_CLIENT_H_ |
| OLD | NEW |