OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#self-caches | 5 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#self-caches |
6 [ | 6 [ |
7 RuntimeEnabled=GlobalCacheStorage, | 7 RuntimeEnabled=GlobalCacheStorage, |
8 ImplementedAs=GlobalCacheStorage, | 8 ImplementedAs=GlobalCacheStorage, |
9 ] partial interface Window { | 9 ] partial interface DedicatedWorkerGlobalScope { |
| 10 // Inheritance of [Unforgeable] attributes is not supported. So we have to |
| 11 // define the same unforgeable attributes in derived interfaces as well. |
| 12 // See that {,Dedicated,Shared,Compositor,Service}WorkerGlobalScope redefine |
| 13 // 'caches' attribute. |
| 14 // Keep all the definitions consistent. |
| 15 // TODO(yukishiino): Support inheritance of attributes defined on instance. |
10 [Unforgeable, MeasureAs=GlobalCacheStorage, RuntimeEnabled=GlobalCacheStorag
e, RaisesException] readonly attribute CacheStorage caches; | 16 [Unforgeable, MeasureAs=GlobalCacheStorage, RuntimeEnabled=GlobalCacheStorag
e, RaisesException] readonly attribute CacheStorage caches; |
11 }; | 17 }; |
OLD | NEW |