| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IDBObserverChanges_h |
| 6 #define IDBObserverChanges_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "modules/indexeddb/IDBDatabase.h" |
| 11 #include "modules/indexeddb/IDBTransaction.h" |
| 12 #include "platform/heap/Handle.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class ScriptState; |
| 17 class IDBObserverChangesRecord; |
| 18 |
| 19 class IDBObserverChanges final : public GarbageCollectedFinalized<IDBObserverCha
nges>, public ScriptWrappable { |
| 20 DEFINE_WRAPPERTYPEINFO(); |
| 21 |
| 22 public: |
| 23 static IDBObserverChanges* create(IDBDatabase*, IDBTransaction*, IDBAny* rec
ords); |
| 24 ~IDBObserverChanges(); |
| 25 |
| 26 DECLARE_TRACE(); |
| 27 |
| 28 // Implement IDL |
| 29 IDBTransaction* transaction() const { return m_transaction.get(); } |
| 30 IDBDatabase* database() const { return m_database.get(); } |
| 31 ScriptValue records(ScriptState*); |
| 32 |
| 33 private: |
| 34 IDBObserverChanges(IDBDatabase*, IDBTransaction*, IDBAny* records); |
| 35 |
| 36 Member<IDBDatabase> m_database; |
| 37 Member<IDBTransaction> m_transaction; |
| 38 // TODO(palakj) : change to appropriate type Map<String, sequence<IDBObserve
rChangesRecord>>. |
| 39 Member<IDBAny> m_records; |
| 40 }; |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif // IDBObserverChanges_h |
| OLD | NEW |