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

Unified Diff: chrome/browser/extensions/app_notification_manager.h

Issue 8567018: Limit number of notifications that can be received by the client. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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/extensions/app_notification_manager.h
===================================================================
--- chrome/browser/extensions/app_notification_manager.h (revision 109957)
+++ chrome/browser/extensions/app_notification_manager.h (working copy)
@@ -29,6 +29,7 @@
public content::NotificationObserver,
public SyncableService {
public:
+ static const unsigned int kMaxNotificationPerApp;
explicit AppNotificationManager(Profile* profile);
virtual ~AppNotificationManager();
@@ -130,6 +131,9 @@
// Sends a change to syncer to add the given notification.
void SyncAddChange(const AppNotification& notif);
+ // Sends a change to syncer to remove the given notification.
+ void SyncRemoveChange(const AppNotification& notif);
+
// Sends changes to syncer to remove all notifications in the given list.
void SyncClearAllChange(const AppNotificationList& list);
« no previous file with comments | « chrome/browser/extensions/app_notification.cc ('k') | chrome/browser/extensions/app_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698