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

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

Issue 2160163002: [IndexedDB] Propogating Changes to Observer : Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expected tests updated 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..ab09e9074deda5ce5b92e1d4084bb428b06468af 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,12 @@ void IndexedDBDatabaseCallbacks::OnComplete(int64_t host_transaction_id) {
dispatcher_host_->RendererTransactionId(host_transaction_id)));
}
+void IndexedDBDatabaseCallbacks::OnDatabaseChange(
+ int32_t ipc_database_id,
+ std::unique_ptr<IndexedDBObserverChanges> changes) {
+ dispatcher_host_->Send(new IndexedDBMsg_DatabaseCallbacksChanges(
+ ipc_thread_id_, ipc_database_id,
+ IndexedDBDispatcherHost::ConvertObserverChanges(std::move(changes))));
+}
+
} // namespace content
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_callbacks.h ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698