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

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

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.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h
new file mode 100644
index 0000000000000000000000000000000000000000..16f38a2743d4e68fa79548aefa0dd05e17e557bb
--- /dev/null
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserver.h
@@ -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.
+
+#ifndef IDBObserver_h
+#define IDBObserver_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/indexeddb/IDBDatabase.h"
+#include "modules/indexeddb/IDBTransaction.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class IDBObserverCallback;
+class IDBObserverInit;
+
+class IDBObserver final : public GarbageCollectedFinalized<IDBObserver>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ static IDBObserver* create(IDBObserverCallback&, const IDBObserverInit&);
+ ~IDBObserver();
+ // API methods
+ void observe(IDBDatabase*, IDBTransaction*, ExceptionState&);
+
+ DECLARE_TRACE();
+
+private:
+ explicit IDBObserver(IDBObserverCallback&, const IDBObserverInit&);
+
+ Member<IDBObserverCallback> m_callback;
+ bool m_transaction;
+ bool m_values;
+ bool m_noRecords;
+};
+
+} // namespace blink
+
+#endif // IDBObserver_h
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/v8.gypi ('k') | third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698