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

Unified Diff: ui/message_center/message_center_impl.h

Issue 288033014: Remove Notifications Associated with an Extension When the Extension is Unchecked from the Message … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Unit Test That Left Dangling Pointer Created 6 years, 7 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
« no previous file with comments | « ui/message_center/cocoa/tray_view_controller_unittest.mm ('k') | ui/message_center/message_center_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_impl.h
diff --git a/ui/message_center/message_center_impl.h b/ui/message_center/message_center_impl.h
index 765f5ac48fe8a59b6af9ff5c064e81125e844bdd..050e4c72bdbb11e43c7b0376481b902e118fb354 100644
--- a/ui/message_center/message_center_impl.h
+++ b/ui/message_center/message_center_impl.h
@@ -17,6 +17,7 @@
#include "ui/message_center/message_center_observer.h"
#include "ui/message_center/message_center_types.h"
#include "ui/message_center/notification_blocker.h"
+#include "ui/message_center/notifier_settings.h"
namespace message_center {
class NotificationDelegate;
@@ -137,7 +138,8 @@ class MESSAGE_CENTER_EXPORT PopupTimersController
// The default implementation of MessageCenter.
class MessageCenterImpl : public MessageCenter,
- public NotificationBlocker::Observer {
+ public NotificationBlocker::Observer,
+ public message_center::NotifierSettingsObserver {
public:
MessageCenterImpl();
virtual ~MessageCenterImpl();
@@ -194,6 +196,13 @@ class MessageCenterImpl : public MessageCenter,
// NotificationBlocker::Observer overrides:
virtual void OnBlockingStateChanged(NotificationBlocker* blocker) OVERRIDE;
+ // message_center::NotifierSettingsObserver overrides:
+ virtual void UpdateIconImage(const NotifierId& notifier_id,
+ const gfx::Image& icon) OVERRIDE;
+ virtual void NotifierGroupChanged() OVERRIDE;
+ virtual void NotifierEnabledChanged(const NotifierId& notifier_id,
+ bool enabled) OVERRIDE;
+
protected:
virtual void DisableTimersForTest() OVERRIDE;
@@ -209,6 +218,7 @@ class MessageCenterImpl : public MessageCenter,
};
void RemoveNotifications(bool by_user, const NotificationBlockers& blockers);
+ void RemoveNotificationsForNotifierId(const NotifierId& notifier_id);
scoped_ptr<NotificationList> notification_list_;
NotificationCache notification_cache_;
« no previous file with comments | « ui/message_center/cocoa/tray_view_controller_unittest.mm ('k') | ui/message_center/message_center_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698