Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl

Issue 2160163002: [IndexedDB] Propogating Changes to Observer : Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Working Observer Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698