| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IDBObserverChanges_h | 5 #ifndef IDBObserverChanges_h |
| 6 #define IDBObserverChanges_h | 6 #define IDBObserverChanges_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | |
| 10 #include "modules/indexeddb/IDBDatabase.h" | 9 #include "modules/indexeddb/IDBDatabase.h" |
| 11 #include "modules/indexeddb/IDBObservation.h" | 10 #include "modules/indexeddb/IDBObservation.h" |
| 12 #include "modules/indexeddb/IDBTransaction.h" | 11 #include "modules/indexeddb/IDBTransaction.h" |
| 12 #include "platform/bindings/ScriptWrappable.h" |
| 13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 #include "public/platform/WebVector.h" | 14 #include "public/platform/WebVector.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class ScriptState; | 18 class ScriptState; |
| 19 | 19 |
| 20 class IDBObserverChanges final : public GarbageCollected<IDBObserverChanges>, | 20 class IDBObserverChanges final : public GarbageCollected<IDBObserverChanges>, |
| 21 public ScriptWrappable { | 21 public ScriptWrappable { |
| 22 DEFINE_WRAPPERTYPEINFO(); | 22 DEFINE_WRAPPERTYPEINFO(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 Member<IDBDatabase> database_; | 55 Member<IDBDatabase> database_; |
| 56 Member<IDBTransaction> transaction_; | 56 Member<IDBTransaction> transaction_; |
| 57 // Map object_store_id to IDBObservation list. | 57 // Map object_store_id to IDBObservation list. |
| 58 HeapHashMap<int64_t, HeapVector<Member<IDBObservation>>> records_; | 58 HeapHashMap<int64_t, HeapVector<Member<IDBObservation>>> records_; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // IDBObserverChanges_h | 63 #endif // IDBObserverChanges_h |
| OLD | NEW |