123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef UPDATE_ENGINE_SHILL_PROXY_H_
- #define UPDATE_ENGINE_SHILL_PROXY_H_
- #include <memory>
- #include <string>
- #include <base/macros.h>
- #include <dbus/bus.h>
- #include <dbus/object_path.h>
- #include <shill/dbus-proxies.h>
- #include "update_engine/shill_proxy_interface.h"
- namespace chromeos_update_engine {
- class ShillProxy : public ShillProxyInterface {
- public:
- ShillProxy();
- ~ShillProxy() override = default;
-
- org::chromium::flimflam::ManagerProxyInterface* GetManagerProxy() override;
- std::unique_ptr<org::chromium::flimflam::ServiceProxyInterface>
- GetServiceForPath(const dbus::ObjectPath& path) override;
- private:
-
- scoped_refptr<dbus::Bus> bus_;
- std::unique_ptr<org::chromium::flimflam::ManagerProxyInterface>
- manager_proxy_;
- DISALLOW_COPY_AND_ASSIGN(ShillProxy);
- };
- }
- #endif
|