OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const GURL& origin, | 71 const GURL& origin, |
72 const PlatformNotificationData& notification_data, | 72 const PlatformNotificationData& notification_data, |
73 const NotificationResources& notification_resources) = 0; | 73 const NotificationResources& notification_resources) = 0; |
74 | 74 |
75 // Closes the persistent notification identified by | 75 // Closes the persistent notification identified by |
76 // |persistent_notification_id|. This method must be called on the UI thread. | 76 // |persistent_notification_id|. This method must be called on the UI thread. |
77 virtual void ClosePersistentNotification( | 77 virtual void ClosePersistentNotification( |
78 BrowserContext* browser_context, | 78 BrowserContext* browser_context, |
79 const std::string& notification_id) = 0; | 79 const std::string& notification_id) = 0; |
80 | 80 |
81 // Writes the ids of all currently displaying persistent notifications for the | 81 // Writes the ids of all currently displaying notifications for the |
82 // given |browser_context| to |displayed_notifications|. Returns whether the | 82 // given |browser_context| to |displayed_notifications|. Returns whether the |
83 // platform is able to provide such a set. | 83 // platform is able to provide such a set. |
84 virtual bool GetDisplayedPersistentNotifications( | 84 virtual bool GetDisplayedNotifications( |
85 BrowserContext* browser_context, | 85 BrowserContext* browser_context, |
86 std::set<std::string>* displayed_notifications) = 0; | 86 std::set<std::string>* displayed_notifications) = 0; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace content | 89 } // namespace content |
90 | 90 |
91 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ | 91 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ |
OLD | NEW |