OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NOTIFICATION_DISPLAY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 24 matching lines...) Expand all Loading... | |
35 virtual void Display(NotificationCommon::Type notification_type, | 35 virtual void Display(NotificationCommon::Type notification_type, |
36 const std::string& notification_id, | 36 const std::string& notification_id, |
37 const Notification& notification) = 0; | 37 const Notification& notification) = 0; |
38 | 38 |
39 // Closes the notification identified by |notification_id|. | 39 // Closes the notification identified by |notification_id|. |
40 virtual void Close(NotificationCommon::Type notification_type, | 40 virtual void Close(NotificationCommon::Type notification_type, |
41 const std::string& notification_id) = 0; | 41 const std::string& notification_id) = 0; |
42 | 42 |
43 // Writes the ids of all currently displaying notifications and | 43 // Writes the ids of all currently displaying notifications and |
44 // invokes |callback| with the result once known. | 44 // invokes |callback| with the result once known. |
45 virtual void GetDisplayed( | 45 virtual void GetDisplayed(const DisplayedNotificationsCallback& callback) = 0; |
Peter Beverloo
2017/04/19 13:26:41
You probably have to rebase at some point - the `c
Tom (Use chromium acct)
2017/04/20 01:43:46
Rebased.
| |
46 const DisplayedNotificationsCallback& callback) const = 0; | |
47 | 46 |
48 private: | 47 private: |
49 DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); | 48 DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); |
50 }; | 49 }; |
51 | 50 |
52 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ | 51 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |
OLD | NEW |