Chromium Code Reviews| 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( |
|
jsbell
2017/01/13 00:14:12
Maybe comment here that observer txs jump to the h
dmurph
2017/01/13 01:50:43
Done.
|
| + 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)) { |