Chromium Code Reviews| 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 IDBObserverChangesRecord_h | |
| 6 #define IDBObserverChangesRecord_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptValue.h" | |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 #include "public/platform/modules/indexeddb/WebIDBTypes.h" | |
| 12 #include "wtf/PassRefPtr.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 class ScriptState; | |
| 17 class IDBKey; | |
| 18 class IDBValue; | |
| 19 | |
| 20 class IDBObserverChangesRecord final : public GarbageCollectedFinalized<IDBObser verChangesRecord>, public ScriptWrappable { | |
| 21 DEFINE_WRAPPERTYPEINFO(); | |
| 22 | |
| 23 public: | |
| 24 static WebIDBOperationType stringToOperationType(const String&); | |
| 25 static IDBObserverChangesRecord* create(IDBKey*, IDBValue*, WebIDBOperationT ype); | |
| 26 virtual ~IDBObserverChangesRecord(); | |
| 27 | |
| 28 DECLARE_TRACE(); | |
| 29 | |
| 30 // Implement the IDL | |
| 31 ScriptValue key(ScriptState*); | |
| 32 ScriptValue value(ScriptState*); | |
| 33 const String& type() const; | |
| 34 | |
| 35 private: | |
| 36 IDBObserverChangesRecord(IDBKey*, IDBValue*, WebIDBOperationType); | |
| 37 Member<IDBKey> m_key; | |
| 38 PassRefPtr<IDBValue> m_value; | |
|
Marijn Kruisselbrink
2016/06/16 07:09:30
No, this isn't what I mean. You should of course s
palakj1
2016/06/16 17:05:24
Oh okay. Changed
| |
| 39 const WebIDBOperationType m_operationType; | |
| 40 }; | |
| 41 | |
| 42 } // namespace blink | |
| 43 | |
| 44 #endif // IDBObserverChangesRecord_h | |
| OLD | NEW |