| 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" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "modules/indexeddb/IDBDatabase.h" | 10 #include "modules/indexeddb/IDBDatabase.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const WebVector<WebIDBObservation>&, | 47 const WebVector<WebIDBObservation>&, |
| 48 const WebVector<int32_t>& observation_indices, | 48 const WebVector<int32_t>& observation_indices, |
| 49 v8::Isolate*); | 49 v8::Isolate*); |
| 50 | 50 |
| 51 void ExtractChanges(const WebVector<WebIDBObservation>&, | 51 void ExtractChanges(const WebVector<WebIDBObservation>&, |
| 52 const WebVector<int32_t>& observation_indices, | 52 const WebVector<int32_t>& observation_indices, |
| 53 v8::Isolate*); | 53 v8::Isolate*); |
| 54 | 54 |
| 55 Member<IDBDatabase> database_; | 55 Member<IDBDatabase> database_; |
| 56 Member<IDBTransaction> transaction_; | 56 Member<IDBTransaction> transaction_; |
| 57 // Map objectStoreId 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 |