Chromium Code Reviews| 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..28427694d7705d9e265a77fc85debc64cb063db9 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); |
|
dmurph
2016/07/13 23:29:13
Can you move this constructor back under private?
palakj1
2016/07/14 17:52:06
done.
|
| 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; |
| + // Map objectStoreId to IDBObservation list. |
| + HeapHashMap<int64_t, HeapVector<Member<IDBObservation>>> m_records; |
| }; |
| } // namespace blink |