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

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)
@@ -20,6 +20,9 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+namespace notification_manager_constants {
Munjal (Google) 2011/11/17 19:45:32 Add one empty line before namespace.
elvin 2011/11/17 22:28:17 Done.
+ const unsigned int kMaxNotificationPerApp = 5;
Munjal (Google) 2011/11/17 19:45:32 Actually this constant is not used in header, and
elvin 2011/11/17 22:28:17 It's used in the test file? On 2011/11/17 19:45:32
+}
class Profile;
@@ -130,6 +133,10 @@
// 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,
+ bool shouldProcessSyncerChanges);
Munjal (Google) 2011/11/17 19:45:32 This method is an instance method and it can acces
elvin 2011/11/17 22:28:17 REmoved On 2011/11/17 19:45:32, munjal wrote:
+
// 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