1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef UPDATE_ENGINE_POWER_MANAGER_INTERFACE_H_
- #define UPDATE_ENGINE_POWER_MANAGER_INTERFACE_H_
- #include <memory>
- #include <base/macros.h>
- namespace chromeos_update_engine {
- class PowerManagerInterface {
- public:
- virtual ~PowerManagerInterface() = default;
-
- virtual bool RequestReboot() = 0;
- protected:
- PowerManagerInterface() = default;
- private:
- DISALLOW_COPY_AND_ASSIGN(PowerManagerInterface);
- };
- namespace power_manager {
- std::unique_ptr<PowerManagerInterface> CreatePowerManager();
- }
- }
- #endif
|