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

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

Issue 2569993002: [ServiceWorker] Mojofy PushEvent of Service Worker. (Closed)
Patch Set: Rebase and address comments from Peter and Marijn Created 4 years 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 d878916e6a84a859cb0c0e560a43df803fd3596d..6d11ed8b035bd1e62e634f300ca76fb45c716559 100644
--- a/content/common/service_worker/service_worker_event_dispatcher.mojom
+++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
@@ -12,6 +12,9 @@ import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
import "url/mojo/origin.mojom";
[Native]
+struct PushEventPayload;
+
+[Native]
struct ServiceWorkerFetchRequest;
[Native]
@@ -39,6 +42,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