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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/interfaces-idls.js

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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 var idls = {}; 1 var idls = {};
2 idls.untested = ` 2 idls.untested = `
3 [Exposed=Worker] 3 [Exposed=Worker]
4 interface WorkerGlobalScope {}; 4 interface WorkerGlobalScope {};
5 5
6 [TreatNonObjectAsNull] 6 [TreatNonObjectAsNull]
7 callback EventHandlerNonNull = any (Event event); 7 callback EventHandlerNonNull = any (Event event);
8 typedef EventHandlerNonNull? EventHandler; 8 typedef EventHandlerNonNull? EventHandler;
9 9
10 [NoInterfaceObject, Exposed=(Window,Worker)] 10 [NoInterfaceObject, Exposed=(Window,Worker)]
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ServiceWorker implements AbstractWorker; 69 ServiceWorker implements AbstractWorker;
70 70
71 enum ServiceWorkerState { 71 enum ServiceWorkerState {
72 "installing", 72 "installing",
73 "installed", 73 "installed",
74 "activating", 74 "activating",
75 "activated", 75 "activated",
76 "redundant" 76 "redundant"
77 }; 77 };
78 78
79 enum ServiceWorkerUpdateViaCache {
80 "imports",
81 "all",
82 "none"
83 };
84
79 [SecureContext, Exposed=(Window,Worker)] 85 [SecureContext, Exposed=(Window,Worker)]
80 interface ServiceWorkerRegistration : EventTarget { 86 interface ServiceWorkerRegistration : EventTarget {
81 readonly attribute ServiceWorker? installing; 87 readonly attribute ServiceWorker? installing;
82 readonly attribute ServiceWorker? waiting; 88 readonly attribute ServiceWorker? waiting;
83 readonly attribute ServiceWorker? active; 89 readonly attribute ServiceWorker? active;
84 [SameObject] readonly attribute NavigationPreloadManager navigationPreload; 90 [SameObject] readonly attribute NavigationPreloadManager navigationPreload;
85 91
86 readonly attribute USVString scope; 92 readonly attribute USVString scope;
87 readonly attribute ServiceWorkerUpdateViaCache updateViaCache; 93 readonly attribute ServiceWorkerUpdateViaCache updateViaCache;
88 94
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 127
122 [SecureContext, Exposed=(Window,Worker)] 128 [SecureContext, Exposed=(Window,Worker)]
123 interface CacheStorage { 129 interface CacheStorage {
124 [NewObject] Promise<any> match(RequestInfo request, optional CacheQueryOptions options); 130 [NewObject] Promise<any> match(RequestInfo request, optional CacheQueryOptions options);
125 [NewObject] Promise<boolean> has(DOMString cacheName); 131 [NewObject] Promise<boolean> has(DOMString cacheName);
126 [NewObject] Promise<Cache> open(DOMString cacheName); 132 [NewObject] Promise<Cache> open(DOMString cacheName);
127 [NewObject] Promise<boolean> delete(DOMString cacheName); 133 [NewObject] Promise<boolean> delete(DOMString cacheName);
128 [NewObject] Promise<sequence<DOMString>> keys(); 134 [NewObject] Promise<sequence<DOMString>> keys();
129 }; 135 };
130 `; 136 `;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698