blob: 46e5e5e6cfd3584a667d859a45af80fb02a75911 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#self-caches
[
RuntimeEnabled=GlobalCacheStorage,
ImplementedAs=GlobalCacheStorage,
] 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;
};