blob: d6314f1486084ec9dfa75952e4ee8b8c704f3928 [file] [log] [blame]
Richard Knolle100fd22020-09-24 15:45:171// Copyright 2020 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
5#include "chrome/browser/notifications/notification_blocker.h"
6
David Sanders97aac0de2022-02-07 14:33:537#include "base/observer_list.h"
8
Richard Knolle100fd22020-09-24 15:45:179NotificationBlocker::NotificationBlocker() = default;
10
11NotificationBlocker::~NotificationBlocker() = default;
12
13void NotificationBlocker::NotifyBlockingStateChanged() {
14 for (auto& observer : observers_)
15 observer.OnBlockingStateChanged();
16}
17
18void NotificationBlocker::AddObserver(Observer* observer) {
19 observers_.AddObserver(observer);
20}
21
22void NotificationBlocker::RemoveObserver(Observer* observer) {
23 observers_.RemoveObserver(observer);
24}