Andreea Costinas | 942284d | 2020-01-28 16:28:40 +0100 | [diff] [blame^] | 1 | // Copyright 2020 The Chromium OS 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 | #ifndef SYSTEM_PROXY_SYSTEM_PROXY_DAEMON_H_ |
| 5 | #define SYSTEM_PROXY_SYSTEM_PROXY_DAEMON_H_ |
| 6 | |
| 7 | #include <memory> |
| 8 | |
| 9 | #include <brillo/daemons/dbus_daemon.h> |
| 10 | |
| 11 | namespace brillo { |
| 12 | namespace dbus_utils { |
| 13 | class AsyncEventSequencer; |
| 14 | } |
| 15 | } // namespace brillo |
| 16 | |
| 17 | namespace system_proxy { |
| 18 | |
| 19 | class SystemProxyAdaptor; |
| 20 | |
| 21 | class SystemProxyDaemon : public brillo::DBusServiceDaemon { |
| 22 | public: |
| 23 | SystemProxyDaemon(); |
| 24 | SystemProxyDaemon(const SystemProxyDaemon&) = delete; |
| 25 | SystemProxyDaemon& operator=(const SystemProxyDaemon&) = delete; |
| 26 | ~SystemProxyDaemon(); |
| 27 | |
| 28 | protected: |
| 29 | void RegisterDBusObjectsAsync( |
| 30 | brillo::dbus_utils::AsyncEventSequencer* sequencer) override; |
| 31 | |
| 32 | private: |
| 33 | std::unique_ptr<SystemProxyAdaptor> adaptor_; |
| 34 | }; |
| 35 | } // namespace system_proxy |
| 36 | #endif // SYSTEM_PROXY_SYSTEM_PROXY_DAEMON_H_ |