| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#self-caches | |
| 6 [ | |
| 7 RuntimeEnabled=GlobalCacheStorage, | |
| 8 ImplementedAs=GlobalCacheStorage, | |
| 9 ] partial interface SharedWorkerGlobalScope { | |
| 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. | |
| 16 [Unforgeable, MeasureAs=GlobalCacheStorage, RuntimeEnabled=GlobalCacheStorag
e, RaisesException] readonly attribute CacheStorage caches; | |
| 17 }; | |
| OLD | NEW |