OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/prefs/pref_member.h" | 14 #include "base/prefs/pref_member.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 17 #include "chrome/browser/notifications/google_now_notification_stats_collector.h
" |
17 #include "chrome/browser/notifications/message_center_stats_collector.h" | 18 #include "chrome/browser/notifications/message_center_stats_collector.h" |
18 #include "chrome/browser/notifications/notification.h" | 19 #include "chrome/browser/notifications/notification.h" |
19 #include "chrome/browser/notifications/notification_system_observer.h" | 20 #include "chrome/browser/notifications/notification_system_observer.h" |
20 #include "chrome/browser/notifications/notification_ui_manager.h" | 21 #include "chrome/browser/notifications/notification_ui_manager.h" |
21 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
22 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
23 #include "ui/message_center/message_center.h" | 24 #include "ui/message_center/message_center.h" |
24 #include "ui/message_center/message_center_observer.h" | 25 #include "ui/message_center/message_center_observer.h" |
25 #include "ui/message_center/message_center_tray_delegate.h" | 26 #include "ui/message_center/message_center_tray_delegate.h" |
26 #include "ui/message_center/message_center_types.h" | 27 #include "ui/message_center/message_center_types.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 ScopedVector<message_center::NotificationBlocker> blockers_; | 234 ScopedVector<message_center::NotificationBlocker> blockers_; |
234 | 235 |
235 // Registrar for the other kind of notifications (event signaling). | 236 // Registrar for the other kind of notifications (event signaling). |
236 content::NotificationRegistrar registrar_; | 237 content::NotificationRegistrar registrar_; |
237 | 238 |
238 NotificationSystemObserver system_observer_; | 239 NotificationSystemObserver system_observer_; |
239 | 240 |
240 // Keeps track of all notification statistics for UMA purposes. | 241 // Keeps track of all notification statistics for UMA purposes. |
241 MessageCenterStatsCollector stats_collector_; | 242 MessageCenterStatsCollector stats_collector_; |
242 | 243 |
| 244 // Keeps track of notifications specific to Google Now for UMA purposes. |
| 245 GoogleNowNotificationStatsCollector google_now_stats_collector_; |
| 246 |
243 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 247 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
244 }; | 248 }; |
245 | 249 |
246 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 250 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
OLD | NEW |