Chromium Code Reviews| Index: content/public/browser/notification_event_dispatcher.h |
| diff --git a/content/public/browser/notification_event_dispatcher.h b/content/public/browser/notification_event_dispatcher.h |
| index bb3df945e2364e89cf3eb712087fe24ffe35b635..ada6c133fe5866d726cfa29063b001a1d2262ed7 100644 |
| --- a/content/public/browser/notification_event_dispatcher.h |
| +++ b/content/public/browser/notification_event_dispatcher.h |
| @@ -27,7 +27,7 @@ class CONTENT_EXPORT NotificationEventDispatcher { |
| public: |
| static NotificationEventDispatcher* GetInstance(); |
| - using NotificationClickDispatchCompleteCallback = |
| + using NotificationDispatchCompleteCallback = |
| base::Callback<void(PersistentNotificationStatus)>; |
| // Dispatches the "notificationclick" event on the Service Worker associated |
| @@ -38,7 +38,18 @@ class CONTENT_EXPORT NotificationEventDispatcher { |
| int64_t persistent_notification_id, |
| const GURL& origin, |
| int action_index, |
| - const NotificationClickDispatchCompleteCallback& |
| + const NotificationDispatchCompleteCallback& |
| + dispatch_complete_callback) = 0; |
| + |
| + // Dispatches the "notificationclose" event on the Service Worker associated |
| + // with |persistent_notification_id| belonging to |origin|. The |callback| |
|
Peter Beverloo
2016/02/03 00:00:21
s/callback/dispatch_complete_callback/
Nina
2016/02/03 12:15:13
Done.
|
| + // will be invoked when it's known whether the event successfully executed. |
| + virtual void DispatchNotificationCloseEvent( |
| + BrowserContext* browser_context, |
| + int64_t persistent_notification_id, |
| + const GURL& origin, |
| + bool by_user, |
| + const NotificationDispatchCompleteCallback& |
| dispatch_complete_callback) = 0; |
| protected: |