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

Unified Diff: Source/modules/cachestorage/ServiceWorkerCacheStorage.idl

Issue 1193793003: bindings: Makes almost all attributes accessor-type properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 5 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: Source/modules/cachestorage/ServiceWorkerCacheStorage.idl
diff --git a/Source/modules/cachestorage/WindowCacheStorage.idl b/Source/modules/cachestorage/ServiceWorkerCacheStorage.idl
similarity index 51%
copy from Source/modules/cachestorage/WindowCacheStorage.idl
copy to Source/modules/cachestorage/ServiceWorkerCacheStorage.idl
index 7aadd81083018b278d1624eabf483d4e11ce9e59..46e5e5e6cfd3584a667d859a45af80fb02a75911 100644
--- a/Source/modules/cachestorage/WindowCacheStorage.idl
+++ b/Source/modules/cachestorage/ServiceWorkerCacheStorage.idl
@@ -6,6 +6,12 @@
[
RuntimeEnabled=GlobalCacheStorage,
ImplementedAs=GlobalCacheStorage,
-] partial interface Window {
+] partial interface ServiceWorkerGlobalScope {
+ // Inheritance of [Unforgeable] attributes is not supported. So we have to
+ // define the same unforgeable attributes in derived interfaces as well.
+ // See that {,Dedicated,Shared,Compositor,Service}WorkerGlobalScope redefine
+ // 'caches' attribute.
+ // Keep all the definitions consistent.
+ // TODO(yukishiino): Support inheritance of attributes defined on instance.
[Unforgeable, MeasureAs=GlobalCacheStorage, RuntimeEnabled=GlobalCacheStorage, RaisesException] readonly attribute CacheStorage caches;
};
« no previous file with comments | « Source/modules/cachestorage/DedicatedWorkerCacheStorage.idl ('k') | Source/modules/cachestorage/SharedWorkerCacheStorage.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698