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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Just delete a useless line Created 3 years, 8 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 446cda0c87ab279e78e4b0a4e81df85f2e0d8234..1c926e8bba923aaf60436067ff48368930f4d60a 100644
--- a/content/common/service_worker/service_worker_event_dispatcher.mojom
+++ b/content/common/service_worker/service_worker_event_dispatcher.mojom
@@ -13,6 +13,7 @@ import "third_party/WebKit/public/platform/modules/fetch/fetch_api_request.mojom
import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_event_status.mojom";
import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_stream_handle.mojom";
import "url/mojo/origin.mojom";
+import "url/mojo/url.mojom";
[Native]
struct PlatformNotificationData;
@@ -78,6 +79,10 @@ interface ServiceWorkerFetchResponseCallback {
// 'simple events'. ServiceWorkerVersion::CreateSimpleEventCallback can be used
// to create the callback for these.
interface ServiceWorkerEventDispatcher {
+ DispatchInstallEvent(associated ServiceWorkerInstallEventMethods method)
+ => (blink.mojom.ServiceWorkerEventStatus status,
+ bool has_fetch_handler,
+ mojo.common.mojom.Time dispatch_event_time);
DispatchActivateEvent()
=> (blink.mojom.ServiceWorkerEventStatus status,
mojo.common.mojom.Time dispatch_event_time);
@@ -141,3 +146,11 @@ interface ServiceWorkerEventDispatcher {
// dispatch an event.
Ping() => ();
};
+
+// This interface is passed from the browser to the renderer with
+// DispatchInstallEvent. The ordering between RegisterForeignFetchScopes and the
+// callback of DispatchInstallEvent should be preserved.
+interface ServiceWorkerInstallEventMethods {
+ RegisterForeignFetchScopes(array<url.mojom.Url> sub_scopes,
+ array<url.mojom.Origin> origins);
+};

Powered by Google App Engine
This is Rietveld 408576698