summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/notification_ui_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/notifications/notification_ui_manager.h')
-rw-r--r--chrome/browser/notifications/notification_ui_manager.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/notifications/notification_ui_manager.h b/chrome/browser/notifications/notification_ui_manager.h
index 10687a9..6d46198 100644
--- a/chrome/browser/notifications/notification_ui_manager.h
+++ b/chrome/browser/notifications/notification_ui_manager.h
@@ -7,6 +7,7 @@
#pragma once
#include <deque>
+#include <string>
#include "base/id_map.h"
#include "base/scoped_ptr.h"
@@ -43,8 +44,14 @@ class NotificationUIManager
virtual void Add(const Notification& notification,
Profile* profile);
- // Removes a notification.
- virtual bool Cancel(const Notification& notification);
+ // Removes any notifications matching the supplied ID, either currently
+ // displayed or in the queue. Returns true if anything was removed.
+ virtual bool CancelById(const std::string& notification_id);
+
+ // Removes any notifications matching the supplied source origin
+ // (which could be an extension ID), either currently displayed or in the
+ // queue. Returns true if anything was removed.
+ virtual bool CancelAllBySourceOrigin(const GURL& source_origin);
// Returns balloon collection.
BalloonCollection* balloon_collection() {