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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl

Issue 1845463002: Start implementing ForeignFetchEvent for foreign fetch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl
diff --git a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl
similarity index 60%
copy from third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl
copy to third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl
index e8f4551dcbe0d43b6f28ab6ecae7cd06f0253697..c3a256d77e75a56fb4c7d869b8a18cbca8bbffa2 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.idl
@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#fetch-event-interface
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#foreign-fetch-event-section
[
- Constructor(DOMString type, FetchEventInit eventInitDict),
+ Constructor(DOMString type, ForeignFetchEventInit eventInitDict),
Exposed=ServiceWorker,
-] interface FetchEvent : ExtendableEvent {
+ RuntimeEnabled=ForeignFetch,
+] interface ForeignFetchEvent : ExtendableEvent {
[SameObject] readonly attribute Request request;
- readonly attribute DOMString? clientId;
- readonly attribute boolean isReload;
- [CallWith=ScriptState, RaisesException] void respondWith(Promise<Response> r);
+ [CallWith=ScriptState, RaisesException] void respondWith(Promise<ForeignFetchResponse> r);
};

Powered by Google App Engine
This is Rietveld 408576698