Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: content/common/service_worker/service_worker_event_dispatcher.mojom

Issue 2620333003: Reland of [ServiceWorker] Mojofy PushEvent of Service Worker. (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/service_worker_event_dispatcher.mojom
diff --git a/content/common/service_worker/service_worker_event_dispatcher.mojom b/content/common/service_worker/service_worker_event_dispatcher.mojom
index df445a8052fc7880244ed0318caa2feb7de6377c..00b20e1e1d2de96a395ebdb6a69e1e7f81e40ff2 100644
--- a/content/common/service_worker/service_worker_event_dispatcher.mojom
+++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
@@ -13,6 +13,9 @@ import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
import "url/mojo/origin.mojom";
[Native]
+struct PushEventPayload;
+
+[Native]
struct ServiceWorkerFetchRequest;
[Native]
@@ -40,6 +43,9 @@ interface ServiceWorkerEventDispatcher {
FetchEventPreloadHandle? preload_handle)
=> (blink.mojom.ServiceWorkerEventStatus status,
mojo.common.mojom.Time dispatch_event_time);
+ DispatchPushEvent(PushEventPayload payload)
+ => (blink.mojom.ServiceWorkerEventStatus status,
+ mojo.common.mojom.Time dispatch_event_time);
// Arguments are passed to the event handler as parameters of SyncEvent.
// Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event
DispatchSyncEvent(string tag,

Powered by Google App Engine
This is Rietveld 408576698