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

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

Issue 11414215: Add CloseAllByProfile to NotificationUIManager and call before destroyng a Profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac Created 8 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/balloon_collection_base.h
diff --git a/chrome/browser/notifications/balloon_collection_base.h b/chrome/browser/notifications/balloon_collection_base.h
index e25e8afa7434b2837c23187e73da770b6b010172..b113d02976197df0cca327ca834ae245c05b7373 100644
--- a/chrome/browser/notifications/balloon_collection_base.h
+++ b/chrome/browser/notifications/balloon_collection_base.h
@@ -15,6 +15,7 @@
class Balloon;
class GURL;
class Notification;
+class Profile;
// This class provides support for implementing a BalloonCollection
// including the parts common between Chrome UI and ChromeOS UI.
@@ -42,6 +43,10 @@ class BalloonCollectionBase {
// was found.
virtual bool CloseAllBySourceOrigin(const GURL& source_origin);
+ // Finds all balloons matching the given profile and calls CloseByScript
+ // on them. Returns true if anything was found.
+ virtual bool CloseAllByProfile(Profile* profile);
+
// Calls CloseByScript on all balloons.
virtual void CloseAll();
« no previous file with comments | « chrome/browser/notifications/balloon_collection.h ('k') | chrome/browser/notifications/balloon_collection_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698