blob: a8d0234fba5f349536e1ff08b0660780b10aaf92 [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
7NotificationBlocker::NotificationBlocker() = default;
8
9NotificationBlocker::~NotificationBlocker() = default;
10
11void NotificationBlocker::NotifyBlockingStateChanged() {
12 for (auto& observer : observers_)
13 observer.OnBlockingStateChanged();
14}
15
16void NotificationBlocker::AddObserver(Observer* observer) {
17 observers_.AddObserver(observer);
18}
19
20void NotificationBlocker::RemoveObserver(Observer* observer) {
21 observers_.RemoveObserver(observer);
22}