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

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

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: Replying to comments, disallowed observing from versionchange txn Created 3 years, 11 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: 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 e26ae2e8da851a61f9531757f26deef9fd2fe5f8..a8108a7538042d44cced88e8552003fcdbe31bc3 100644
--- a/third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
@@ -27,6 +27,7 @@
#include "core/dom/DOMException.h"
#include "wtf/PtrUtil.h"
+
#include <memory>
namespace blink {
@@ -73,9 +74,11 @@ void WebIDBDatabaseCallbacksImpl::onComplete(long long transactionId) {
void WebIDBDatabaseCallbacksImpl::onChanges(
const std::unordered_map<int32_t, std::vector<int32_t>>&
observation_index_map,
- const WebVector<WebIDBObservation>& observations) {
+ const WebVector<WebIDBObservation>& observations,
+ const std::unordered_map<int32_t, std::pair<int64_t, std::vector<int64_t>>>&
+ transactions) {
if (m_callbacks)
- m_callbacks->onChanges(observation_index_map, observations);
+ m_callbacks->onChanges(observation_index_map, observations, transactions);
}
void WebIDBDatabaseCallbacksImpl::detach() {

Powered by Google App Engine
This is Rietveld 408576698