Index: chrome/browser/notifications/notification_ui_manager.h |
diff --git a/chrome/browser/notifications/notification_ui_manager.h b/chrome/browser/notifications/notification_ui_manager.h |
index 92dfe6ee7fc3e1df5793b99e790fd12d7acb5e75..6c1c19b4ef38561255ba9cd075c5221a95799286 100644 |
--- a/chrome/browser/notifications/notification_ui_manager.h |
+++ b/chrome/browser/notifications/notification_ui_manager.h |
@@ -5,6 +5,7 @@ |
#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
+#include <set> |
#include <string> |
#include <vector> |
@@ -36,6 +37,13 @@ class NotificationUIManager { |
// displayed or in the queue. Returns true if anything was removed. |
virtual bool CancelById(const std::string& notification_id) = 0; |
+ // Adds the notification_id for each outstanding notification to the set |
+ // |notification_ids| (must not be NULL). |
+ virtual void GetAllIdsByProfileAndSourceOrigin( |
+ Profile* profile, |
+ const GURL& source, |
+ std::set<std::string>* notification_ids) = 0; |
Dmitry Titov
2013/05/16 20:39:15
This can just return a set, this is ok (fast) with
dewittj
2013/05/16 23:40:34
Done.
|
+ |
// Removes notifications matching the |source_origin| (which could be an |
// extension ID). Returns true if anything was removed. |
virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0; |