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

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

Issue 20136004: Allow partial update for notification update API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more tests per feedback Created 7 years, 5 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 625793917a68a33c645d5b196e742acabf71f90d..a86f1d2308cb7f3fed0d2637acb318de97aa759f 100644
--- a/chrome/browser/notifications/notification_ui_manager.h
+++ b/chrome/browser/notifications/notification_ui_manager.h
@@ -29,9 +29,10 @@ class NotificationUIManager {
virtual void Add(const Notification& notification,
Profile* profile) = 0;
- // Returns true if any notifications match the supplied ID, either currently
- // displayed or in the queue.
- virtual bool DoesIdExist(const std::string& notification_id) = 0;
+ // Returns the pointer to a notification if it match the supplied ID, either
+ // currently displayed or in the queue.
+ virtual const Notification* FindById(
+ const std::string& notification_id) const = 0;
// Removes any notifications matching the supplied ID, either currently
// displayed or in the queue. Returns true if anything was removed.

Powered by Google App Engine
This is Rietveld 408576698