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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module content.mojom; 5 module content.mojom;
6 6
7 import "components/payments/content/payment_app.mojom"; 7 import "components/payments/content/payment_app.mojom";
8 import "content/common/url_loader.mojom"; 8 import "content/common/url_loader.mojom";
9 import "mojo/common/string16.mojom"; 9 import "mojo/common/string16.mojom";
10 import "mojo/common/time.mojom"; 10 import "mojo/common/time.mojom";
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 DispatchSyncEvent(string tag, 66 DispatchSyncEvent(string tag,
67 blink.mojom.BackgroundSyncEventLastChance last_chance) 67 blink.mojom.BackgroundSyncEventLastChance last_chance)
68 => (blink.mojom.ServiceWorkerEventStatus status, 68 => (blink.mojom.ServiceWorkerEventStatus status,
69 mojo.common.mojom.Time dispatch_event_time); 69 mojo.common.mojom.Time dispatch_event_time);
70 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 70 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
71 => (blink.mojom.ServiceWorkerEventStatus status, 71 => (blink.mojom.ServiceWorkerEventStatus status,
72 mojo.common.mojom.Time dispatch_event_time); 72 mojo.common.mojom.Time dispatch_event_time);
73 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 73 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
74 => (blink.mojom.ServiceWorkerEventStatus status, 74 => (blink.mojom.ServiceWorkerEventStatus status,
75 mojo.common.mojom.Time dispatch_event_time); 75 mojo.common.mojom.Time dispatch_event_time);
76
77 // Pings the service worker to check if it is responsive. If the callback is
78 // not called within a certain period of time, the browser will terminate the
79 // worker. Unlike the other functions in this interface, Ping() does not
80 // dispatch an event.
81 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
76 }; 82 };
OLDNEW
« 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