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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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/gfx/screen_mac.mm ('k') | ui/message_center/message_center_impl.cc » ('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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 size_t unread_count; 112 size_t unread_count;
113 }; 113 };
114 114
115 void RemoveNotifications(bool by_user, const NotificationBlockers& blockers); 115 void RemoveNotifications(bool by_user, const NotificationBlockers& blockers);
116 void RemoveNotificationsForNotifierId(const NotifierId& notifier_id); 116 void RemoveNotificationsForNotifierId(const NotifierId& notifier_id);
117 117
118 scoped_ptr<NotificationList> notification_list_; 118 scoped_ptr<NotificationList> notification_list_;
119 NotificationCache notification_cache_; 119 NotificationCache notification_cache_;
120 base::ObserverList<MessageCenterObserver> observer_list_; 120 base::ObserverList<MessageCenterObserver> observer_list_;
121 scoped_ptr<PopupTimersController> popup_timers_controller_; 121 scoped_ptr<PopupTimersController> popup_timers_controller_;
122 scoped_ptr<base::OneShotTimer<MessageCenterImpl> > quiet_mode_timer_; 122 scoped_ptr<base::OneShotTimer> quiet_mode_timer_;
123 NotifierSettingsProvider* settings_provider_; 123 NotifierSettingsProvider* settings_provider_;
124 std::vector<NotificationBlocker*> blockers_; 124 std::vector<NotificationBlocker*> blockers_;
125 125
126 // Queue for the notifications to delay the addition/updates when the message 126 // Queue for the notifications to delay the addition/updates when the message
127 // center is visible. 127 // center is visible.
128 scoped_ptr<internal::ChangeQueue> notification_queue_; 128 scoped_ptr<internal::ChangeQueue> notification_queue_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); 130 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl);
131 }; 131 };
132 132
133 } // namespace message_center 133 } // namespace message_center
134 134
135 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 135 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « ui/gfx/screen_mac.mm ('k') | ui/message_center/message_center_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698