OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ |
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 NotificationList::Notifications visible_notifications; | 209 NotificationList::Notifications visible_notifications; |
210 size_t unread_count; | 210 size_t unread_count; |
211 }; | 211 }; |
212 | 212 |
213 void RemoveNotifications(bool by_user, const NotificationBlockers& blockers); | 213 void RemoveNotifications(bool by_user, const NotificationBlockers& blockers); |
214 void RemoveNotificationsForNotifierId(const NotifierId& notifier_id); | 214 void RemoveNotificationsForNotifierId(const NotifierId& notifier_id); |
215 | 215 |
216 scoped_ptr<NotificationList> notification_list_; | 216 scoped_ptr<NotificationList> notification_list_; |
217 NotificationCache notification_cache_; | 217 NotificationCache notification_cache_; |
218 ObserverList<MessageCenterObserver> observer_list_; | 218 base::ObserverList<MessageCenterObserver> observer_list_; |
219 scoped_ptr<internal::PopupTimersController> popup_timers_controller_; | 219 scoped_ptr<internal::PopupTimersController> popup_timers_controller_; |
220 scoped_ptr<base::OneShotTimer<MessageCenterImpl> > quiet_mode_timer_; | 220 scoped_ptr<base::OneShotTimer<MessageCenterImpl> > quiet_mode_timer_; |
221 NotifierSettingsProvider* settings_provider_; | 221 NotifierSettingsProvider* settings_provider_; |
222 std::vector<NotificationBlocker*> blockers_; | 222 std::vector<NotificationBlocker*> blockers_; |
223 | 223 |
224 // Queue for the notifications to delay the addition/updates when the message | 224 // Queue for the notifications to delay the addition/updates when the message |
225 // center is visible. | 225 // center is visible. |
226 scoped_ptr<internal::ChangeQueue> notification_queue_; | 226 scoped_ptr<internal::ChangeQueue> notification_queue_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); | 228 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace message_center | 231 } // namespace message_center |
232 | 232 |
233 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 233 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
OLD | NEW |