| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool by_user); | 174 bool by_user); |
| 172 | 175 |
| 173 // Returns the ProfileNotification for the |id|, or NULL if no such | 176 // Returns the ProfileNotification for the |id|, or NULL if no such |
| 174 // notification is found. | 177 // notification is found. |
| 175 ProfileNotification* FindProfileNotification(const std::string& id) const; | 178 ProfileNotification* FindProfileNotification(const std::string& id) const; |
| 176 | 179 |
| 177 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 180 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
| 178 }; | 181 }; |
| 179 | 182 |
| 180 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 183 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |