Chromium Code Reviews| Index: third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp |
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a73ffb9622c5787a81ac64fac8f22d196187778f |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp |
| @@ -0,0 +1,42 @@ |
| +// 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. |
| + |
| +#include "modules/indexeddb/IDBObserverChanges.h" |
| + |
| +#include "bindings/core/v8/ExceptionState.h" |
| +#include "bindings/core/v8/ScriptState.h" |
| +#include "bindings/modules/v8/ToV8ForModules.h" |
| +#include "bindings/modules/v8/V8BindingForModules.h" |
| +#include "modules/indexeddb/IDBAny.h" |
| +#include <v8.h> |
|
dmurph
2016/06/15 13:10:48
Don't include v8
palakj1
2016/06/15 19:16:30
done
|
| + |
| +namespace blink { |
| + |
| +IDBObserverChanges::~IDBObserverChanges() {} |
| + |
| +ScriptValue IDBObserverChanges::records(ScriptState* scriptState) |
| +{ |
| + return ScriptValue::from(scriptState, m_records); |
| +} |
| + |
| +IDBObserverChanges* IDBObserverChanges::create(IDBDatabase* database, IDBTransaction* transaction, IDBAny* records) |
| +{ |
| + return new IDBObserverChanges(database, transaction, records); |
| +} |
| + |
| +IDBObserverChanges::IDBObserverChanges(IDBDatabase* database, IDBTransaction* transaction, IDBAny* records) |
| + : m_database(database) |
| + , m_transaction(transaction) |
| + , m_records(records) |
| +{ |
| +} |
| + |
| +DEFINE_TRACE(IDBObserverChanges) |
| +{ |
| + visitor->trace(m_database); |
| + visitor->trace(m_transaction); |
| + visitor->trace(m_records); |
| +} |
| + |
| +} // namespace blink |