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

Unified Diff: Source/modules/serviceworkers/FetchEvent.idl

Issue 180843003: Start to implement FetchEvent for ServiceWorker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing Created 6 years, 10 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
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.cpp ('k') | Source/modules/serviceworkers/RespondWithObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/FetchEvent.idl
diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.idl b/Source/modules/serviceworkers/FetchEvent.idl
similarity index 65%
copy from Source/modules/serviceworkers/NavigatorServiceWorker.idl
copy to Source/modules/serviceworkers/FetchEvent.idl
index 1f5335479cf79598fd1ce37f85c492eca124fe71..240957229cda92fba2cb38aa75cec83b9f8cfc74 100644
--- a/Source/modules/serviceworkers/NavigatorServiceWorker.idl
+++ b/Source/modules/serviceworkers/FetchEvent.idl
@@ -4,6 +4,7 @@
[
RuntimeEnabled=ServiceWorker,
-] partial interface Navigator {
- readonly attribute ServiceWorkerContainer serviceWorker;
+ GlobalContext=ServiceWorkerGlobalScope,
+] interface FetchEvent : Event {
+ void respondWith(any value);
};
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.cpp ('k') | Source/modules/serviceworkers/RespondWithObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698