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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.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/IDBDatabaseCallbacks.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.cpp
index 4883a8630f424312a63b95c3fa5fb21499ecb4cd..885bbbbf8681369d069f13131157e227661306df 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.cpp
@@ -63,6 +63,14 @@ void IDBDatabaseCallbacks::onComplete(int64_t transactionId) {
m_database->onComplete(transactionId);
}
+void IDBDatabaseCallbacks::onChanges(
+ const std::unordered_map<int32_t, std::vector<int32_t>>&
+ observation_index_map,
+ const WebVector<WebIDBObservation>& observations) {
+ if (m_database)
+ m_database->onChanges(observation_index_map, observations);
+}
+
void IDBDatabaseCallbacks::connect(IDBDatabase* database) {
DCHECK(!m_database);
DCHECK(database);

Powered by Google App Engine
This is Rietveld 408576698