| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md#recor
ds | 5 // https://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md#recor
ds |
| 6 | 6 |
| 7 enum IDBObservationType { | 7 enum IDBObservationType { |
| 8 "add", | 8 "add", |
| 9 "put", | 9 "put", |
| 10 // TODO(palakj): Operation type being returned as kDelete instead of delete. | |
| 11 "delete", | 10 "delete", |
| 12 "clear" | 11 "clear" |
| 13 }; | 12 }; |
| 14 [ | 13 [ |
| 15 Exposed=(Window,Worker), | 14 Exposed=(Window,Worker), |
| 16 RuntimeEnabled=IDBObserver | 15 RuntimeEnabled=IDBObserver |
| 17 ] | 16 ] |
| 18 interface IDBObservation { | 17 interface IDBObservation { |
| 19 readonly attribute IDBObservationType type; | 18 readonly attribute IDBObservationType type; |
| 20 // When the record is a "delete" type, this is an IDBKeyRange. | 19 // When the record is a "delete" type, this is an IDBKeyRange. |
| 21 [CallWith=ScriptState] readonly attribute any key; | 20 [CallWith=ScriptState] readonly attribute any key; |
| 22 [CallWith=ScriptState] readonly attribute any value; | 21 [CallWith=ScriptState] readonly attribute any value; |
| 23 }; | 22 }; |
| OLD | NEW |