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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years, 1 month 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: third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp b/third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
index a79fff198ca1d49a2efc3f94151ac5c1e33d1a61..89906727995d7932dd7fa48bfd7a1198690c155d 100644
--- a/third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
@@ -70,6 +70,14 @@ void WebIDBDatabaseCallbacksImpl::onComplete(long long transactionId) {
m_callbacks->onComplete(transactionId);
}
+void WebIDBDatabaseCallbacksImpl::onChanges(
+ const std::unordered_map<int32_t, std::vector<int32_t>>&
+ observation_index_map,
+ const WebVector<WebIDBObservation>& observations) {
+ if (m_callbacks)
+ m_callbacks->onChanges(observation_index_map, observations);
+}
+
void WebIDBDatabaseCallbacksImpl::detach() {
m_callbacks.clear();
}

Powered by Google App Engine
This is Rietveld 408576698