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

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

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Post cmumford review 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: content/browser/indexed_db/indexed_db_database_callbacks.cc
diff --git a/content/browser/indexed_db/indexed_db_database_callbacks.cc b/content/browser/indexed_db/indexed_db_database_callbacks.cc
index 69f9b16221307a6747f6052df4ea18898f9ad7f8..a6a4be86c6390c6d4ee7baac4f4126f4bb73fd71 100644
--- a/content/browser/indexed_db/indexed_db_database_callbacks.cc
+++ b/content/browser/indexed_db/indexed_db_database_callbacks.cc
@@ -6,6 +6,7 @@
#include "content/browser/indexed_db/indexed_db_database_error.h"
#include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
+#include "content/browser/indexed_db/indexed_db_observer_changes.h"
#include "content/common/indexed_db/indexed_db_messages.h"
namespace content {
@@ -64,4 +65,11 @@ void IndexedDBDatabaseCallbacks::OnComplete(int64_t host_transaction_id) {
dispatcher_host_->RendererTransactionId(host_transaction_id)));
}
+void IndexedDBDatabaseCallbacks::OnDatabaseChange(
+ std::unique_ptr<IndexedDBObserverChanges> changes) {
+ dispatcher_host_->Send(new IndexedDBMsg_DatabaseCallbacksChanges(
+ ipc_thread_id_, ipc_database_callbacks_id_,
+ IndexedDBDispatcherHost::ConvertObserverChanges(changes.release())));
dmurph 2016/07/08 18:40:44 make this function accept a unique ptr. Then move
palakj1 2016/07/08 22:17:53 Done.
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698