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

Unified Diff: Source/modules/cachestorage/SharedWorkerCacheStorage.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/SharedWorkerCacheStorage.idl
diff --git a/Source/modules/cachestorage/WindowCacheStorage.idl b/Source/modules/cachestorage/SharedWorkerCacheStorage.idl
similarity index 51%
copy from Source/modules/cachestorage/WindowCacheStorage.idl
copy to Source/modules/cachestorage/SharedWorkerCacheStorage.idl
index 7aadd81083018b278d1624eabf483d4e11ce9e59..93027c33485e07dc679ae32887a0503776b52d3f 100644
--- a/Source/modules/cachestorage/WindowCacheStorage.idl
+++ b/Source/modules/cachestorage/SharedWorkerCacheStorage.idl
@@ -6,6 +6,12 @@
[
RuntimeEnabled=GlobalCacheStorage,
ImplementedAs=GlobalCacheStorage,
-] partial interface Window {
+] partial interface SharedWorkerGlobalScope {
+ // 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/ServiceWorkerCacheStorage.idl ('k') | Source/modules/cachestorage/WorkerCacheStorage.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698