Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6483)

Unified Diff: chrome/browser/notifications/notification_ui_manager.h

Issue 14767029: Add API function chrome.notifications.getAll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge that caused test error. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698