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

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

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: Replying to comments, disallowed observing from versionchange txn Created 3 years, 11 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/IDBTransaction.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.h b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.h
index 1c3a1244c7598b8e3b14232d3829eaaaf0c2b707..148d947a1dbb77e7501a808a80df645e8796b011 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.h
@@ -61,6 +61,11 @@ class MODULES_EXPORT IDBTransaction final
DEFINE_WRAPPERTYPEINFO();
public:
+ static IDBTransaction* createObserver(ExecutionContext*,
+ int64_t,
+ const HashSet<String>& scope,
+ IDBDatabase*);
+
static IDBTransaction* createNonVersionChange(ScriptState*,
int64_t,
const HashSet<String>& scope,
@@ -142,6 +147,12 @@ class MODULES_EXPORT IDBTransaction final
private:
using IDBObjectStoreMap = HeapHashMap<String, Member<IDBObjectStore>>;
+ // For observer transactions.
+ IDBTransaction(ExecutionContext*,
+ int64_t,
+ const HashSet<String>& scope,
+ IDBDatabase*);
+
// For non-upgrade transactions.
IDBTransaction(ScriptState*,
int64_t,

Powered by Google App Engine
This is Rietveld 408576698