| Index: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| index db4a1ea7763e34fa39c8f7a7bf1e0167f75c5878..72abc2db99fd80b41c8a1a43076e6506c8a1230d 100644
|
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "modules/indexeddb/IDBDatabase.h"
|
| #include "modules/indexeddb/IDBObserverCallback.h"
|
| +#include "modules/indexeddb/IDBObserverChanges.h"
|
| #include "modules/indexeddb/IDBObserverInit.h"
|
| #include "modules/indexeddb/IDBTransaction.h"
|
| #include "modules/indexeddb/WebIDBObserverImpl.h"
|
| @@ -78,6 +79,11 @@ void IDBObserver::removeObserver(int32_t id)
|
| m_observerIds.erase(id);
|
| }
|
|
|
| +void IDBObserver::onChange(const std::vector<WebIDBObservation>& observations, const std::vector<int32_t>& observationIndex)
|
| +{
|
| + m_callback->handleEvent(*IDBObserverChanges::create(observations, observationIndex), *this);
|
| +}
|
| +
|
| DEFINE_TRACE(IDBObserver)
|
| {
|
| visitor->trace(m_callback);
|
|
|