Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp

Issue 2031113002: IndexedDB Observers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: expected files updated Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..17e8494068c422100ba2844d5735abde6a19ae48
--- /dev/null
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp
@@ -0,0 +1,40 @@
+// 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/IDBObserver.h"
+
+#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/modules/v8/ToV8ForModules.h"
+#include "bindings/modules/v8/V8BindingForModules.h"
+#include "modules/indexeddb/IDBObserverCallback.h"
+#include "modules/indexeddb/IDBObserverInit.h"
+
+namespace blink {
+
+IDBObserver* IDBObserver::create(IDBObserverCallback& callback, const IDBObserverInit& options)
+{
+ return new IDBObserver(callback, options);
+}
+
+IDBObserver::IDBObserver(IDBObserverCallback& callback, const IDBObserverInit& options)
+ : m_callback(&callback)
+ , m_transaction(options.transaction())
+ , m_values(options.values())
+ , m_noRecords(options.noRecords())
+{
+}
+
+IDBObserver::~IDBObserver() {}
+
+void IDBObserver::observe(IDBDatabase* database, IDBTransaction* transaction, ExceptionState& exceptionState)
+{
+ // TODO(palakj): Finish implementation.
+}
+
+DEFINE_TRACE(IDBObserver)
+{
+ visitor->trace(m_callback);
+}
+
+} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBObserver.h ('k') | third_party/WebKit/Source/modules/indexeddb/IDBObserver.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698