chromium/chrome/browser/ash/child_accounts/time_limits/app_time_notification_delegate.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_ASH_CHILD_ACCOUNTS_TIME_LIMITS_APP_TIME_NOTIFICATION_DELEGATE_H_
#define CHROME_BROWSER_ASH_CHILD_ACCOUNTS_TIME_LIMITS_APP_TIME_NOTIFICATION_DELEGATE_H_

#include <optional>

namespace base {
class TimeDelta;
}  // namespace base

namespace ash {
namespace app_time {

class AppId;
enum class AppNotification;

// Called when the application time limit is reaching.
class AppTimeNotificationDelegate {
 public:
  AppTimeNotificationDelegate() = default;
  AppTimeNotificationDelegate(const AppTimeNotificationDelegate&) = delete;
  AppTimeNotificationDelegate& operator=(const AppTimeNotificationDelegate&) =
      delete;

  virtual ~AppTimeNotificationDelegate() = default;

  virtual void ShowAppTimeLimitNotification(
      const AppId& app_id,
      const std::optional<base::TimeDelta>& time_limit,
      AppNotification notification) = 0;
};

}  // namespace app_time
}  // namespace ash

#endif  // CHROME_BROWSER_ASH_CHILD_ACCOUNTS_TIME_LIMITS_APP_TIME_NOTIFICATION_DELEGATE_H_