| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const Notification& notification) = 0; | 34 const Notification& notification) = 0; |
| 35 | 35 |
| 36 // Closes the notification identified by |notification_id|. | 36 // Closes the notification identified by |notification_id|. |
| 37 virtual void Close(NotificationCommon::Type notification_type, | 37 virtual void Close(NotificationCommon::Type notification_type, |
| 38 const std::string& notification_id) = 0; | 38 const std::string& notification_id) = 0; |
| 39 | 39 |
| 40 // Returns whether the implementation can retrieve a list of currently visible | 40 // Returns whether the implementation can retrieve a list of currently visible |
| 41 // notifications and stores them in |*notification_ids| when possible. | 41 // notifications and stores them in |*notification_ids| when possible. |
| 42 virtual bool GetDisplayed(std::set<std::string>* notifications) const = 0; | 42 virtual bool GetDisplayed(std::set<std::string>* notifications) const = 0; |
| 43 | 43 |
| 44 // Temporary method while we finish the refactor. Returns whether there is | |
| 45 // a native notification center backing up notifications. | |
| 46 virtual bool SupportsNotificationCenter() const = 0; | |
| 47 | |
| 48 private: | 44 private: |
| 49 DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); | 45 DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); |
| 50 }; | 46 }; |
| 51 | 47 |
| 52 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ | 48 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |
| OLD | NEW |