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

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

Issue 2763453002: [ServiceWorker] Convert ping-pong IPC into mojo interface ServiceWorkerEventDispatcher (Closed)
Patch Set: Add a comment into mojom file Created 3 years, 9 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 e47c085b9d9a8c9588cff6af96e73398ec7e75e2..6162b1d8ca0d6a474b82cd3aaf1573815e1f0300 100644
--- a/content/common/service_worker/service_worker_event_dispatcher.mojom
+++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
@@ -73,4 +73,10 @@ interface ServiceWorkerEventDispatcher {
DispatchExtendableMessageEvent(ExtendableMessageEvent event)
=> (blink.mojom.ServiceWorkerEventStatus status,
mojo.common.mojom.Time dispatch_event_time);
+
+ // Pings the service worker to check if it is responsive. If the callback is
+ // not called within a certain period of time, the browser will terminate the
+ // worker. Unlike the other functions in this interface, Ping() does not
+ // dispatch an event.
+ Ping() => ();
falken 2017/03/22 05:46:30 Just to be sure, we are guaranteed Ping() is calle
leonhsl(Using Gerrit) 2017/03/22 06:45:59 From my current knowledge, in browser side SWVersi
shimazu 2017/03/22 06:46:26 Yeah, ServiceWorkerEventDispather is bound after t
};
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698