assistant_alarm_timer_model_observer.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2018 The Chromium 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 ASH_ASSISTANT_MODEL_ASSISTANT_ALARM_TIMER_MODEL_OBSERVER_H_
  5. #define ASH_ASSISTANT_MODEL_ASSISTANT_ALARM_TIMER_MODEL_OBSERVER_H_
  6. #include "ash/public/cpp/assistant/controller/assistant_alarm_timer_controller.h"
  7. #include "base/component_export.h"
  8. #include "base/observer_list_types.h"
  9. namespace ash {
  10. // A checked observer which receives notification of changes to the Assistant
  11. // alarm/timer model.
  12. class COMPONENT_EXPORT(ASSISTANT_MODEL) AssistantAlarmTimerModelObserver
  13. : public base::CheckedObserver {
  14. public:
  15. // Invoked when the specified timer has been added.
  16. virtual void OnTimerAdded(const chromeos::assistant::AssistantTimer& timer) {}
  17. // Invoked when the specified timer has been updated.
  18. virtual void OnTimerUpdated(
  19. const chromeos::assistant::AssistantTimer& timer) {}
  20. // Invoked when the specified timer has been removed.
  21. virtual void OnTimerRemoved(
  22. const chromeos::assistant::AssistantTimer& timer) {}
  23. protected:
  24. ~AssistantAlarmTimerModelObserver() override = default;
  25. };
  26. } // namespace ash
  27. #endif // ASH_ASSISTANT_MODEL_ASSISTANT_ALARM_TIMER_MODEL_OBSERVER_H_