12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef UPDATE_ENGINE_DAEMON_STATE_INTERFACE_H_
- #define UPDATE_ENGINE_DAEMON_STATE_INTERFACE_H_
- #include "update_engine/service_observer_interface.h"
- #include <memory>
- #include <set>
- namespace chromeos_update_engine {
- class DaemonStateInterface {
- public:
- virtual ~DaemonStateInterface() = default;
-
-
- virtual bool StartUpdater() = 0;
-
-
- virtual void AddObserver(ServiceObserverInterface* observer) = 0;
- virtual void RemoveObserver(ServiceObserverInterface* observer) = 0;
-
- virtual const std::set<ServiceObserverInterface*>& service_observers() = 0;
- protected:
- DaemonStateInterface() = default;
- };
- }
- #endif
|