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

Unified Diff: ui/message_center/message_center_impl.h

Issue 15582004: Move NotificationDelegate into message_center. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win browsertests. Created 7 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
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 3e3672dc77e2540b548197fcac448832eb3b3399..cc660aee32b4c44e157f3a5583b334d03c00d9f9 100644
--- a/ui/message_center/message_center_impl.h
+++ b/ui/message_center/message_center_impl.h
@@ -11,6 +11,8 @@
namespace message_center {
+class NotificationDelegate;
+
// The default implementation of MessageCenter.
class MessageCenterImpl : public MessageCenter {
public:
@@ -29,20 +31,20 @@ class MessageCenterImpl : public MessageCenter {
virtual bool IsQuietMode() const OVERRIDE;
virtual const NotificationList::Notifications& GetNotifications() OVERRIDE;
virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE;
- virtual void AddNotification(
- NotificationType type,
- const std::string& id,
- const string16& title,
- const string16& message,
- const string16& display_source,
- const std::string& extension_id,
- const base::DictionaryValue* optional_fields) OVERRIDE;
- virtual void UpdateNotification(
- const std::string& old_id,
- const std::string& new_id,
- const string16& title,
- const string16& message,
- const base::DictionaryValue* optional_fields) OVERRIDE;
+ virtual void AddNotification(NotificationType type,
+ const std::string& id,
+ const string16& title,
+ const string16& message,
+ const string16& display_source,
+ const std::string& extension_id,
+ const base::DictionaryValue* optional_fields,
+ NotificationDelegate* delegate) OVERRIDE;
+ virtual void UpdateNotification(const std::string& old_id,
+ const std::string& new_id,
+ const string16& title,
+ const string16& message,
+ const base::DictionaryValue* optional_fields)
+ OVERRIDE;
virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE;
virtual void RemoveAllNotifications(bool by_user) OVERRIDE;
virtual void SetNotificationIcon(const std::string& notification_id,

Powered by Google App Engine
This is Rietveld 408576698