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

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

Issue 4635007: When an extension is uninstalled, close all desktop notifications from that e... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
===================================================================
--- chrome/browser/notifications/notification_ui_manager.h (revision 65581)
+++ chrome/browser/notifications/notification_ui_manager.h (working copy)
@@ -7,6 +7,7 @@
#pragma once
#include <deque>
+#include <string>
#include "base/id_map.h"
#include "base/scoped_ptr.h"
@@ -43,9 +44,13 @@
virtual void Add(const Notification& notification,
Profile* profile);
- // Removes a notification.
- virtual bool Cancel(const Notification& notification);
+ // Removes any notifications matching the supplied ID.
tfarina 2010/11/11 12:56:58 nit: maybe: the given |notification_id|?
John Gregg 2010/11/11 18:13:51 Thanks, but I think it's clear as-is.
+ virtual bool CancelById(const std::string& notification_id);
+ // Removes any notifications matching the supplied source origin
+ // (which could be an extension ID).
+ virtual bool CancelAllBySourceOrigin(const GURL& source_origin);
+
// Returns balloon collection.
BalloonCollection* balloon_collection() {
return balloon_collection_.get();

Powered by Google App Engine
This is Rietveld 408576698