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

Side by Side Diff: chrome/browser/notifications/message_center_notification_manager.h

Issue 11896085: Adding implementation for MessageCenter::Delegate on MessageCeneterNotificationManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I should stop using try bots as compile test on other platfroms... Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // Use a map by notification_id since this mapping is the most often used. 83 // Use a map by notification_id since this mapping is the most often used.
84 typedef std::map<std::string, ProfileNotification*> NotificationMap; 84 typedef std::map<std::string, ProfileNotification*> NotificationMap;
85 NotificationMap profile_notifications_; 85 NotificationMap profile_notifications_;
86 86
87 // Helpers that add/remove the notification from local map and MessageCenter. 87 // Helpers that add/remove the notification from local map and MessageCenter.
88 // They take ownership of profile_notification object. 88 // They take ownership of profile_notification object.
89 void AddProfileNotification(ProfileNotification* profile_notification); 89 void AddProfileNotification(ProfileNotification* profile_notification);
90 void RemoveProfileNotification(ProfileNotification* profile_notification); 90 void RemoveProfileNotification(ProfileNotification* profile_notification);
91 91
92 ProfileNotification* FindProfileNotification(const std::string& id) const;
93
92 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 94 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
93 }; 95 };
94 96
95 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 97 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
96 98
97 99
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698