| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_STATS_COLLECTOR_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_STATS_COLLECTOR_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_STATS_COLLECTOR_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_STATS_COLLECTOR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual void OnNotificationAdded(const std::string& notification_id) OVERRIDE; | 66 virtual void OnNotificationAdded(const std::string& notification_id) OVERRIDE; |
| 67 virtual void OnNotificationRemoved(const std::string& notification_id, | 67 virtual void OnNotificationRemoved(const std::string& notification_id, |
| 68 bool by_user) OVERRIDE; | 68 bool by_user) OVERRIDE; |
| 69 virtual void OnNotificationUpdated( | 69 virtual void OnNotificationUpdated( |
| 70 const std::string& notification_id) OVERRIDE; | 70 const std::string& notification_id) OVERRIDE; |
| 71 virtual void OnNotificationClicked( | 71 virtual void OnNotificationClicked( |
| 72 const std::string& notification_id) OVERRIDE; | 72 const std::string& notification_id) OVERRIDE; |
| 73 virtual void OnNotificationButtonClicked(const std::string& notification_id, | 73 virtual void OnNotificationButtonClicked(const std::string& notification_id, |
| 74 int button_index) OVERRIDE; | 74 int button_index) OVERRIDE; |
| 75 virtual void OnNotificationDisplayed( | 75 virtual void OnNotificationDisplayed( |
| 76 const std::string& notification_id) OVERRIDE; | 76 const std::string& notification_id, |
| 77 const message_center::DisplaySource source) OVERRIDE; |
| 77 virtual void OnCenterVisibilityChanged( | 78 virtual void OnCenterVisibilityChanged( |
| 78 message_center::Visibility visibility) OVERRIDE; | 79 message_center::Visibility visibility) OVERRIDE; |
| 79 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; | 80 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; |
| 80 | 81 |
| 81 // Weak, global. | 82 // Weak, global. |
| 82 message_center::MessageCenter* message_center_; | 83 message_center::MessageCenter* message_center_; |
| 83 | 84 |
| 84 typedef std::map<std::string,NotificationStats> StatsCollection; | 85 typedef std::map<std::string,NotificationStats> StatsCollection; |
| 85 StatsCollection stats_; | 86 StatsCollection stats_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(MessageCenterStatsCollector); | 88 DISALLOW_COPY_AND_ASSIGN(MessageCenterStatsCollector); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_STATS_COLLECTOR_H_ | 91 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_STATS_COLLECTOR_H_ |
| OLD | NEW |