blob: ef40e9cd7cbee91d3f5710247c6413eb8c8f6ff0 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYSTEM_PROXY_SYSTEM_PROXY_DAEMON_H_
#define SYSTEM_PROXY_SYSTEM_PROXY_DAEMON_H_
#include <memory>
#include <brillo/daemons/dbus_daemon.h>
namespace brillo {
namespace dbus_utils {
class AsyncEventSequencer;
}
} // namespace brillo
namespace system_proxy {
class SystemProxyAdaptor;
class SystemProxyDaemon : public brillo::DBusServiceDaemon {
public:
SystemProxyDaemon();
SystemProxyDaemon(const SystemProxyDaemon&) = delete;
SystemProxyDaemon& operator=(const SystemProxyDaemon&) = delete;
~SystemProxyDaemon();
protected:
void RegisterDBusObjectsAsync(
brillo::dbus_utils::AsyncEventSequencer* sequencer) override;
private:
std::unique_ptr<SystemProxyAdaptor> adaptor_;
};
} // namespace system_proxy
#endif // SYSTEM_PROXY_SYSTEM_PROXY_DAEMON_H_