diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/notifications/notification_manager.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/notifications/notification_manager.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/chromium/third_party/blink/renderer/modules/notifications/notification_manager.h b/chromium/third_party/blink/renderer/modules/notifications/notification_manager.h index 988715534ee..09bbbf888c4 100644 --- a/chromium/third_party/blink/renderer/modules/notifications/notification_manager.h +++ b/chromium/third_party/blink/renderer/modules/notifications/notification_manager.h @@ -18,7 +18,6 @@ namespace blink { class ScriptPromise; class ScriptPromiseResolver; class ScriptState; -class WebServiceWorkerRegistration; // The notification manager, unique to the execution context, is responsible for // connecting and communicating with the Mojo notification service. @@ -35,6 +34,7 @@ class NotificationManager final static NotificationManager* From(ExecutionContext* context); + explicit NotificationManager(ExecutionContext& context); ~NotificationManager(); // Returns the notification permission status of the current origin. This @@ -61,7 +61,7 @@ class NotificationManager final // Shows a notification from a service worker. void DisplayPersistentNotification( - blink::WebServiceWorkerRegistration* service_worker_registration, + int64_t service_worker_registration_id, mojom::blink::NotificationDataPtr notification_data, mojom::blink::NotificationResourcesPtr notification_resources, ScriptPromiseResolver* resolver); @@ -72,16 +72,13 @@ class NotificationManager final // Asynchronously gets the persistent notifications belonging to the Service // Worker Registration. If |filter_tag| is not an empty string, only the // notification with the given tag will be considered. - void GetNotifications( - WebServiceWorkerRegistration* service_worker_registration, - const WebString& filter_tag, - ScriptPromiseResolver* resolver); + void GetNotifications(int64_t service_worker_registration_id, + const WebString& filter_tag, + ScriptPromiseResolver* resolver); void Trace(blink::Visitor* visitor) override; private: - explicit NotificationManager(ExecutionContext& context); - void DidDisplayPersistentNotification( ScriptPromiseResolver* resolver, mojom::blink::PersistentNotificationError error); |