Chromium Code Reviews| Index: chrome/browser/notifications/balloon_collection.h |
| =================================================================== |
| --- chrome/browser/notifications/balloon_collection.h (revision 65581) |
| +++ chrome/browser/notifications/balloon_collection.h (working copy) |
| @@ -9,11 +9,13 @@ |
| #pragma once |
| #include <deque> |
| +#include <string> |
| #include "base/callback.h" |
| #include "base/scoped_ptr.h" |
| class Balloon; |
| +class GURL; |
| class Notification; |
| class Profile; |
| @@ -44,10 +46,14 @@ |
| virtual void Add(const Notification& notification, |
| Profile* profile) = 0; |
| - // Removes a balloon from the collection if present. Returns |
| + // Removes any balloons that have this notification id. Returns |
| // true if anything was removed. |
| - virtual bool Remove(const Notification& notification) = 0; |
| + virtual bool RemoveById(const std::string& id) = 0; |
| + // Removes any balloons that have this source origin. Returns |
| + // true if anything was remove. |
|
Andrew T Wilson (Slow)
2010/11/11 21:09:50
nit: was remove -> was removed
John Gregg
2010/11/11 23:17:46
Done.
|
| + virtual bool RemoveBySourceOrigin(const GURL& source_origin) = 0; |
| + |
| // Is there room to add another notification? |
| virtual bool HasSpace() const = 0; |