blob: ccecb8e6292cc42322179d73e0e9321a0f75a390 [file] [log] [blame]
// Copyright 2018 The Chromium 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 ASH_ASSISTANT_MODEL_ASSISTANT_ALARM_TIMER_MODEL_OBSERVER_H_
#define ASH_ASSISTANT_MODEL_ASSISTANT_ALARM_TIMER_MODEL_OBSERVER_H_
#include <map>
#include <string>
#include "ash/public/cpp/assistant/controller/assistant_alarm_timer_controller.h"
#include "base/component_export.h"
#include "base/observer_list_types.h"
namespace ash {
// A checked observer which receives notification of changes to the Assistant
// alarm/timer model.
class COMPONENT_EXPORT(ASSISTANT_MODEL) AssistantAlarmTimerModelObserver
: public base::CheckedObserver {
public:
// Invoked when the specified timer has been added.
virtual void OnTimerAdded(const AssistantTimer& timer) {}
// Invoked when the specified timer has been updated.
virtual void OnTimerUpdated(const AssistantTimer& timer) {}
// Invoked when the specified timer has been removed.
virtual void OnTimerRemoved(const AssistantTimer& timer) {}
// Invoked when all timers have been removed.
virtual void OnAllTimersRemoved() {}
protected:
~AssistantAlarmTimerModelObserver() override = default;
};
} // namespace ash
#endif // ASH_ASSISTANT_MODEL_ASSISTANT_ALARM_TIMER_MODEL_OBSERVER_H_