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

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)
@@ -21,6 +21,10 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+namespace notification_manager_constants {
+ static const unsigned int kMaxNotificationPerApp = 5;
asargent_no_longer_on_chrome 2011/11/17 23:40:14 nit: We typically use int's instead of unsigned in
elvin 2011/11/18 00:10:18 Done, kept it unsigned as size() is unsigned? On 2
+}
+
class Profile;
// This class keeps track of notifications for installed apps.
@@ -130,6 +134,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);

Powered by Google App Engine
This is Rietveld 408576698