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

Unified Diff: content/browser/indexed_db/indexed_db_transaction_coordinator.cc

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: Transactions working 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/browser/indexed_db/indexed_db_transaction_coordinator.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction_coordinator.cc b/content/browser/indexed_db/indexed_db_transaction_coordinator.cc
index 68e01728813500240ba1625873519d9073cc87ea..c4c69a2a3c0aa45d6bf66d26d671f7b45d401f27 100644
--- a/content/browser/indexed_db/indexed_db_transaction_coordinator.cc
+++ b/content/browser/indexed_db/indexed_db_transaction_coordinator.cc
@@ -27,6 +27,16 @@ void IndexedDBTransactionCoordinator::DidCreateTransaction(
ProcessQueuedTransactions();
}
+void IndexedDBTransactionCoordinator::DidCreateObserverTransaction(
+ IndexedDBTransaction* transaction) {
+ DCHECK(!queued_transactions_.count(transaction));
+ DCHECK(!started_transactions_.count(transaction));
+ DCHECK_EQ(IndexedDBTransaction::CREATED, transaction->state());
+
+ started_transactions_.insert_front(transaction);
+ ProcessQueuedTransactions();
+}
+
void IndexedDBTransactionCoordinator::DidFinishTransaction(
IndexedDBTransaction* transaction) {
if (queued_transactions_.count(transaction)) {

Powered by Google App Engine
This is Rietveld 408576698