| Index: third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.h
|
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.h b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.h
|
| index c93d66d7d5b3d32f7cc40acf222f9e484800ad0e..9f4b2f87c8dbc53ec5c1a553afce2b72d4335805 100644
|
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.h
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.h
|
| @@ -8,19 +8,20 @@
|
| #include "bindings/core/v8/ScriptValue.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "modules/indexeddb/IDBDatabase.h"
|
| +#include "modules/indexeddb/IDBObservation.h"
|
| #include "modules/indexeddb/IDBTransaction.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| class ScriptState;
|
| -class IDBObserverChangesRecord;
|
|
|
| -class IDBObserverChanges final : public GarbageCollected<IDBObserverChanges>, public ScriptWrappable {
|
| +class IDBObserverChanges final : public GarbageCollectedFinalized<IDBObserverChanges>, public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
|
|
| public:
|
| - static IDBObserverChanges* create(IDBDatabase*, IDBTransaction*, IDBAny* records);
|
| + static IDBObserverChanges* create(IDBDatabase*, const std::vector<WebIDBObservation>&, const std::vector<int32_t>& observationIndex);
|
| + IDBObserverChanges(IDBDatabase*, const std::vector<WebIDBObservation>&, const std::vector<int32_t>& observationIndex);
|
|
|
| DECLARE_TRACE();
|
|
|
| @@ -30,12 +31,12 @@ public:
|
| ScriptValue records(ScriptState*);
|
|
|
| private:
|
| - IDBObserverChanges(IDBDatabase*, IDBTransaction*, IDBAny* records);
|
| + void createMap(const std::vector<WebIDBObservation>& observations, const std::vector<int32_t>& observationIndex);
|
|
|
| Member<IDBDatabase> m_database;
|
| Member<IDBTransaction> m_transaction;
|
| - // TODO(palakj) : change to appropriate type Map<String, sequence<IDBObserverChangesRecord>>.
|
| - Member<IDBAny> m_records;
|
| + // Exposed to javascript as map from objectstore to array of IDBObservation.
|
| + HeapVector<std::pair<String, HeapVector<Member<IDBObservation>>>> m_records;
|
| };
|
|
|
| } // namespace blink
|
|
|