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

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

Issue 1406823002: Start of foreign fetch implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove blank line Created 5 years, 2 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/InstallEvent.idl
diff --git a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl
similarity index 53%
copy from third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl
copy to third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl
index 9806137beecf33a9f3df2bc86e9ee6ffba082db8..81edb82f6435eccddde32cf195c6ba78a2f8b723 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl
+++ b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl
@@ -4,12 +4,10 @@
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#fetch-event-interface
[
- Constructor(DOMString type, optional FetchEventInit eventInitDict),
+ Constructor(DOMString type, optional ExtendableEventInit eventInitDict),
Exposed=ServiceWorker,
TypeChecking=Interface,
-] interface FetchEvent : ExtendableEvent {
- readonly attribute Request request;
- readonly attribute boolean isReload;
-
- [CallWith=ScriptState, RaisesException] void respondWith(Promise<Response> r);
+ RuntimeEnabled=ForeignFetch,
+] interface InstallEvent : ExtendableEvent {
+ [CallWith=ExecutionContext, RaisesException] void registerForeignFetchScopes(sequence<USVString> subScopes);
};

Powered by Google App Engine
This is Rietveld 408576698