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

Unified Diff: Source/modules/cachestorage/DedicatedWorkerCacheStorage.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/DedicatedWorkerCacheStorage.idl
diff --git a/Source/modules/cachestorage/WindowCacheStorage.idl b/Source/modules/cachestorage/DedicatedWorkerCacheStorage.idl
similarity index 51%
copy from Source/modules/cachestorage/WindowCacheStorage.idl
copy to Source/modules/cachestorage/DedicatedWorkerCacheStorage.idl
index 7aadd81083018b278d1624eabf483d4e11ce9e59..49aff4b029796ef2bbed5f3762ce51816a83bbd5 100644
--- a/Source/modules/cachestorage/WindowCacheStorage.idl
+++ b/Source/modules/cachestorage/DedicatedWorkerCacheStorage.idl
@@ -6,6 +6,12 @@
[
RuntimeEnabled=GlobalCacheStorage,
ImplementedAs=GlobalCacheStorage,
-] partial interface Window {
+] partial interface DedicatedWorkerGlobalScope {
+ // 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;
};

Powered by Google App Engine
This is Rietveld 408576698