OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // NotificationUIManager | 54 // NotificationUIManager |
55 void Add(const Notification& notification, Profile* profile) override; | 55 void Add(const Notification& notification, Profile* profile) override; |
56 bool Update(const Notification& notification, Profile* profile) override; | 56 bool Update(const Notification& notification, Profile* profile) override; |
57 const Notification* FindById(const std::string& delegate_id, | 57 const Notification* FindById(const std::string& delegate_id, |
58 ProfileID profile_id) const override; | 58 ProfileID profile_id) const override; |
59 bool CancelById(const std::string& delegate_id, | 59 bool CancelById(const std::string& delegate_id, |
60 ProfileID profile_id) override; | 60 ProfileID profile_id) override; |
61 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( | 61 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( |
62 Profile* profile, | 62 Profile* profile, |
63 const GURL& source) override; | 63 const GURL& source) override; |
| 64 std::set<std::string> GetAllIdsByProfile(Profile* profile) override; |
64 bool CancelAllBySourceOrigin(const GURL& source_origin) override; | 65 bool CancelAllBySourceOrigin(const GURL& source_origin) override; |
65 bool CancelAllByProfile(ProfileID profile_id) override; | 66 bool CancelAllByProfile(ProfileID profile_id) override; |
66 void CancelAll() override; | 67 void CancelAll() override; |
67 | 68 |
68 // MessageCenterObserver | 69 // MessageCenterObserver |
69 void OnNotificationRemoved(const std::string& notification_id, | 70 void OnNotificationRemoved(const std::string& notification_id, |
70 bool by_user) override; | 71 bool by_user) override; |
71 void OnCenterVisibilityChanged(message_center::Visibility) override; | 72 void OnCenterVisibilityChanged(message_center::Visibility) override; |
72 void OnNotificationUpdated(const std::string& notification_id) override; | 73 void OnNotificationUpdated(const std::string& notification_id) override; |
73 | 74 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 156 |
156 #if defined(OS_WIN) | 157 #if defined(OS_WIN) |
157 // Provides weak pointers for the purpose of the first run timer. | 158 // Provides weak pointers for the purpose of the first run timer. |
158 base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_; | 159 base::WeakPtrFactory<MessageCenterNotificationManager> weak_factory_; |
159 #endif | 160 #endif |
160 | 161 |
161 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 162 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
162 }; | 163 }; |
163 | 164 |
164 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 165 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
OLD | NEW |