Chromium Code Reviews| Index: third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h |
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4516521bc289646a30b85e65a8850369de66acb3 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file.+ |
| + |
| +#ifndef IDBObserverChangesRecord_h |
| +#define IDBObserverChangesRecord_h |
| + |
| +#include "bindings/core/v8/ScriptValue.h" |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "platform/heap/Handle.h" |
| +#include "public/platform/modules/indexeddb/WebIDBTypes.h" |
| +#include "wtf/PassRefPtr.h" |
| + |
| +namespace blink { |
| + |
| +class ScriptState; |
| +class IDBKey; |
| +class IDBValue; |
| + |
| +class IDBObserverChangesRecord final : public GarbageCollectedFinalized<IDBObserverChangesRecord>, public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| +public: |
| + static WebIDBOperationType stringToOperationType(const String&); |
| + static IDBObserverChangesRecord* create(IDBKey*, IDBValue*, WebIDBOperationType); |
| + virtual ~IDBObserverChangesRecord(); |
| + |
| + DECLARE_TRACE(); |
| + |
| + // Implement the IDL |
| + ScriptValue key(ScriptState*); |
| + ScriptValue value(ScriptState*); |
| + const String& type() const; |
| + |
| +private: |
| + IDBObserverChangesRecord(IDBKey*, IDBValue*, WebIDBOperationType); |
| + Member<IDBKey> m_key; |
| + 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
|
| + const WebIDBOperationType m_operationType; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // IDBObserverChangesRecord_h |