blob: 258c4904246e73d5bbf68696062c5704c8fac893 [file] [log] [blame]
// 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/issues/24
callback IDBObserverCallback = void (IDBObserverChanges changes);
[
Exposed=(Window,Worker),
Constructor(IDBObserverCallback callback),
RuntimeEnabled=IDBObserver
] interface IDBObserver {
[RaisesException, Measure] void observe(IDBDatabase db, IDBTransaction tx, IDBObserverInit options);
[RaisesException, Measure] void unobserve(IDBDatabase db);
};