| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/message_center/notification_blocker.h" | 5 #include "ui/message_center/notification_blocker.h" |
| 6 | 6 |
| 7 #include "ui/message_center/message_center.h" | 7 #include "ui/message_center/message_center.h" |
| 8 | 8 |
| 9 namespace message_center { | 9 namespace message_center { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 void NotificationBlocker::AddObserver(NotificationBlocker::Observer* observer) { | 22 void NotificationBlocker::AddObserver(NotificationBlocker::Observer* observer) { |
| 23 observers_.AddObserver(observer); | 23 observers_.AddObserver(observer); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void NotificationBlocker::RemoveObserver( | 26 void NotificationBlocker::RemoveObserver( |
| 27 NotificationBlocker::Observer* observer) { | 27 NotificationBlocker::Observer* observer) { |
| 28 observers_.RemoveObserver(observer); | 28 observers_.RemoveObserver(observer); |
| 29 } | 29 } |
| 30 | 30 |
| 31 bool NotificationBlocker::ShouldShowNotification( | 31 bool NotificationBlocker::ShouldShowNotification( |
| 32 const NotifierId& notifier_id) const { | 32 const Notification& notification) const { |
| 33 return true; | 33 return true; |
| 34 } | 34 } |
| 35 | 35 |
| 36 void NotificationBlocker::NotifyBlockingStateChanged() { | 36 void NotificationBlocker::NotifyBlockingStateChanged() { |
| 37 FOR_EACH_OBSERVER( | 37 FOR_EACH_OBSERVER( |
| 38 NotificationBlocker::Observer, observers_, OnBlockingStateChanged(this)); | 38 NotificationBlocker::Observer, observers_, OnBlockingStateChanged(this)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace message_center | 41 } // namespace message_center |
| OLD | NEW |