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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 public message_center::MessageCenter::Delegate, | 27 public message_center::MessageCenter::Delegate, |
28 public message_center::MessageCenterObserver { | 28 public message_center::MessageCenterObserver { |
29 public: | 29 public: |
30 explicit MessageCenterNotificationManager( | 30 explicit MessageCenterNotificationManager( |
31 message_center::MessageCenter* message_center); | 31 message_center::MessageCenter* message_center); |
32 virtual ~MessageCenterNotificationManager(); | 32 virtual ~MessageCenterNotificationManager(); |
33 | 33 |
34 // NotificationUIManager | 34 // NotificationUIManager |
35 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; | 35 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; |
36 virtual bool CancelById(const std::string& notification_id) OVERRIDE; | 36 virtual bool CancelById(const std::string& notification_id) OVERRIDE; |
| 37 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( |
| 38 Profile* profile, |
| 39 const GURL& source) OVERRIDE; |
37 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 40 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
38 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; | 41 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
39 virtual void CancelAll() OVERRIDE; | 42 virtual void CancelAll() OVERRIDE; |
40 | 43 |
41 // NotificationUIManagerImpl | 44 // NotificationUIManagerImpl |
42 virtual bool ShowNotification(const Notification& notification, | 45 virtual bool ShowNotification(const Notification& notification, |
43 Profile* profile) OVERRIDE; | 46 Profile* profile) OVERRIDE; |
44 virtual bool UpdateNotification(const Notification& notification, | 47 virtual bool UpdateNotification(const Notification& notification, |
45 Profile* profile) OVERRIDE; | 48 Profile* profile) OVERRIDE; |
46 | 49 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 bool by_user); | 173 bool by_user); |
171 | 174 |
172 // Returns the ProfileNotification for the |id|, or NULL if no such | 175 // Returns the ProfileNotification for the |id|, or NULL if no such |
173 // notification is found. | 176 // notification is found. |
174 ProfileNotification* FindProfileNotification(const std::string& id) const; | 177 ProfileNotification* FindProfileNotification(const std::string& id) const; |
175 | 178 |
176 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 179 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
177 }; | 180 }; |
178 | 181 |
179 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 182 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
OLD | NEW |