blob: d5d1ca07fd7c65c659836dd22866a4a53076946f [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2020 The Chromium Authors
Richard Knolle100fd22020-09-24 15:45:172// 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}