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

Unified Diff: content/common/indexed_db/indexed_db.mojom

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: Moved transaction creation to SendObservations Created 3 years, 11 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: content/common/indexed_db/indexed_db.mojom
diff --git a/content/common/indexed_db/indexed_db.mojom b/content/common/indexed_db/indexed_db.mojom
index 89f3bdac31dd8c29889d2bfb85dde7f6f69c9e0b..60d02d97b9a5311095a1a3f31f009a5b6f2af0c5 100644
--- a/content/common/indexed_db/indexed_db.mojom
+++ b/content/common/indexed_db/indexed_db.mojom
@@ -148,10 +148,17 @@ struct Observation {
int64 object_store_id;
OperationType type;
KeyRange key_range;
+ Value? value;
+};
+
+struct ObserverTransaction {
+ int64 id;
+ array<int64> scope;
};
struct ObserverChanges {
map<int32, array<int32>> observation_index_map;
+ map<int32, ObserverTransaction> transaction_map;
array<Observation> observations;
};

Powered by Google App Engine
This is Rietveld 408576698