Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: ui/message_center/message_center_impl.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/keyboard/keyboard_controller.h ('k') | ui/message_center/notification_blocker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_controller.h ('k') | ui/message_center/notification_blocker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698