Index: third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.idl b/third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl |
similarity index 74% |
copy from third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.idl |
copy to third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl |
index 6c8d922d2cbe4ce9141943f701caf8d6a52a974a..59833ecc3dac80a5b5d2060871a1f9b719d15ebb 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.idl |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl |
@@ -4,9 +4,10 @@ |
// https://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md#records |
-enum IDBObserverChangesRecordType { |
+enum IDBObservationType { |
"add", |
"put", |
+ // TODO(palakj): Operation type being returned as kDelete instead of delete. |
"delete", |
"clear" |
}; |
@@ -14,8 +15,8 @@ enum IDBObserverChangesRecordType { |
Exposed=(Window,Worker), |
RuntimeEnabled=IDBObserver |
] |
- interface IDBObserverChangesRecord { |
- readonly attribute IDBObserverChangesRecordType type; |
+ interface IDBObservation { |
+ readonly attribute IDBObservationType type; |
// When the record is a "delete" type, this is an IDBKeyRange. |
[CallWith=ScriptState] readonly attribute any key; |
[CallWith=ScriptState] readonly attribute any value; |