| // Copyright 2016 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://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md#changes-argument |
| |
| [ |
| Exposed=(Window, Worker), |
| RuntimeEnabled=IDBObserver |
| ] interface IDBObserverChanges { |
| readonly attribute IDBDatabase database; |
| // Transaction contains the same object stores as the transaction on which IDBTransaction.observe was called. |
| readonly attribute IDBTransaction transaction; |
| // Map object from String (object store name) to Array of IDBObservation. |
| [CallWith=ScriptState] readonly attribute any records; |
| }; |