blob: 0a6d86c4f4c405ddae106114b2668ee3332cdb68 [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.
#include <string>
#include "base/optional.h"
class Profile;
namespace badging {
// BadgeManagerDelegate is responsible for dispatching badge events that should
// be handled and reflected in the UI.
class BadgeManagerDelegate {
explicit BadgeManagerDelegate(Profile* profile) : profile_(profile) {}
virtual ~BadgeManagerDelegate() {}
// Called when an app's badge has changed.
virtual void OnBadgeSet(const std::string& app_id,
base::Optional<uint64_t> contents) = 0;
// Called when a app's badge has been cleared.
virtual void OnBadgeCleared(const std::string& app_id) = 0;
// The profile the badge manager delegate is associated with.
Profile* profile_;
} // namespace badging