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

Side by Side Diff: chrome/browser/notifications/message_center_notification_manager.h

Issue 23902057: Stats collector for message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Histograms.xml nit Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_notification_manager.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) 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/message_center_stats_collector.h"
17 #include "chrome/browser/notifications/notification.h" 18 #include "chrome/browser/notifications/notification.h"
18 #include "chrome/browser/notifications/notification_system_observer.h" 19 #include "chrome/browser/notifications/notification_system_observer.h"
19 #include "chrome/browser/notifications/notification_ui_manager.h" 20 #include "chrome/browser/notifications/notification_ui_manager.h"
20 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
22 #include "ui/message_center/message_center.h" 23 #include "ui/message_center/message_center.h"
23 #include "ui/message_center/message_center_observer.h" 24 #include "ui/message_center/message_center_observer.h"
24 #include "ui/message_center/message_center_tray_delegate.h" 25 #include "ui/message_center/message_center_tray_delegate.h"
25 #include "ui/message_center/message_center_types.h" 26 #include "ui/message_center/message_center_types.h"
26 27
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 scoped_ptr<message_center::NotifierSettingsProvider> settings_provider_; 221 scoped_ptr<message_center::NotifierSettingsProvider> settings_provider_;
221 222
222 // To own the blockers. 223 // To own the blockers.
223 ScopedVector<message_center::NotificationBlocker> blockers_; 224 ScopedVector<message_center::NotificationBlocker> blockers_;
224 225
225 // Registrar for the other kind of notifications (event signaling). 226 // Registrar for the other kind of notifications (event signaling).
226 content::NotificationRegistrar registrar_; 227 content::NotificationRegistrar registrar_;
227 228
228 NotificationSystemObserver system_observer_; 229 NotificationSystemObserver system_observer_;
229 230
231 // Keeps track of all notification statistics for UMA purposes.
232 MessageCenterStatsCollector stats_collector_;
233
230 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 234 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
231 }; 235 };
232 236
233 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 237 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698