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

Unified Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_service.h

Issue 22470006: Process incoming updates and deletes properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/sync_notifier/chrome_notifier_service.h
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_service.h b/chrome/browser/notifications/sync_notifier/chrome_notifier_service.h
index 13a21f0ec7542502424054b5036143581faa8510..5fd885879e16a0a039e0992581c1931adfaae091 100644
--- a/chrome/browser/notifications/sync_notifier/chrome_notifier_service.h
+++ b/chrome/browser/notifications/sync_notifier/chrome_notifier_service.h
@@ -91,9 +91,15 @@ class ChromeNotifierService : public syncer::SyncableService,
// Add a notification to our list. This takes ownership of the pointer.
void Add(scoped_ptr<notifier::SyncedNotification> notification);
+ // Display this notification in the notification center, or remove it.
+ void UpdateInMessageCenter(notifier::SyncedNotification* notification);
+
// Display a notification in the notification center (eventually).
void Display(notifier::SyncedNotification* notification);
+ // Remove a notification from our store.
+ void FreeNotificationById(const std::string& notification_id);
+
// Back pointer to the owning profile.
Profile* const profile_;
NotificationUIManager* const notification_manager_;

Powered by Google App Engine
This is Rietveld 408576698