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; | |
40 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 37 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
41 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; | 38 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
42 virtual void CancelAll() OVERRIDE; | 39 virtual void CancelAll() OVERRIDE; |
43 | 40 |
44 // NotificationUIManagerImpl | 41 // NotificationUIManagerImpl |
45 virtual bool ShowNotification(const Notification& notification, | 42 virtual bool ShowNotification(const Notification& notification, |
46 Profile* profile) OVERRIDE; | 43 Profile* profile) OVERRIDE; |
47 virtual bool UpdateNotification(const Notification& notification, | 44 virtual bool UpdateNotification(const Notification& notification, |
48 Profile* profile) OVERRIDE; | 45 Profile* profile) OVERRIDE; |
49 | 46 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 bool by_user); | 171 bool by_user); |
175 | 172 |
176 // Returns the ProfileNotification for the |id|, or NULL if no such | 173 // Returns the ProfileNotification for the |id|, or NULL if no such |
177 // notification is found. | 174 // notification is found. |
178 ProfileNotification* FindProfileNotification(const std::string& id) const; | 175 ProfileNotification* FindProfileNotification(const std::string& id) const; |
179 | 176 |
180 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 177 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
181 }; | 178 }; |
182 | 179 |
183 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 180 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
OLD | NEW |