| Index: content/browser/indexed_db/indexed_db_transaction.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
|
| index 5de620da9bdbddf97f98f36f3b4703c6f583b6e2..4dcd756ce2c602f66e9c7c77f01bb91958aba6f4 100644
|
| --- a/content/browser/indexed_db/indexed_db_transaction.cc
|
| +++ b/content/browser/indexed_db/indexed_db_transaction.cc
|
| @@ -19,6 +19,7 @@
|
| #include "content/browser/indexed_db/indexed_db_observer.h"
|
| #include "content/browser/indexed_db/indexed_db_tracing.h"
|
| #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h"
|
| +#include "content/common/indexed_db/indexed_db_observation.h"
|
| #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseException.h"
|
| #include "third_party/leveldatabase/env_chromium.h"
|
|
|
| @@ -356,6 +357,7 @@ leveldb::Status IndexedDBTransaction::CommitPhaseTwo() {
|
| "txn.id", id());
|
| callbacks_->OnComplete(id_);
|
| }
|
| + database_->SendObservations(std::move(connection_changes_map_));
|
| database_->TransactionFinished(this, true);
|
| } else {
|
| while (!abort_task_stack_.empty())
|
| @@ -457,7 +459,7 @@ void IndexedDBTransaction::CloseOpenCursors() {
|
|
|
| void IndexedDBTransaction::AddPendingObserver(int32_t observer_id) {
|
| pending_observers_.push_back(
|
| - base::WrapUnique(new IndexedDBObserver(observer_id)));
|
| + base::WrapUnique(new IndexedDBObserver(observer_id, object_store_ids_)));
|
| }
|
|
|
| void IndexedDBTransaction::RemovePendingObservers(
|
| @@ -471,4 +473,16 @@ void IndexedDBTransaction::RemovePendingObservers(
|
| pending_observers_.erase(it, pending_observers_.end());
|
| }
|
|
|
| +void IndexedDBTransaction::AddObservation(
|
| + int32_t connection_id,
|
| + std::unique_ptr<IndexedDBObservation> observation) {
|
| + connection_changes_map_[connection_id]->AddObservation(
|
| + std::move(observation));
|
| +}
|
| +
|
| +void IndexedDBTransaction::AddObservationIndex(int32_t observer_id,
|
| + int32_t connection_id) {
|
| + connection_changes_map_[connection_id]->AddObservationIndex(observer_id);
|
| +}
|
| +
|
| } // namespace content
|
|
|