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

Unified Diff: third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Post dmurph review 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/public/platform/modules/indexeddb/WebIDBDatabase.h
diff --git a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h
index 4752309714966285f5562d8b948b18b27db9cc06..82807f88e057dea98e62e479d8ff2ad981700780 100644
--- a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h
+++ b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h
@@ -30,6 +30,7 @@
#include "public/platform/WebCommon.h"
#include "public/platform/modules/indexeddb/WebIDBCursor.h"
#include "public/platform/modules/indexeddb/WebIDBMetadata.h"
+#include "public/platform/modules/indexeddb/WebIDBObserver.h"
#include "public/platform/modules/indexeddb/WebIDBTypes.h"
namespace blink {
@@ -40,6 +41,7 @@ class WebIDBDatabaseCallbacks;
class WebIDBKey;
class WebIDBKeyPath;
class WebIDBKeyRange;
+class WebIDBObserver;
class WebIDBDatabase {
public:
@@ -61,6 +63,8 @@ public:
typedef WebVector<WebIDBKey> WebIndexKeys;
+ virtual void observe(std::unique_ptr<WebIDBObserver>, long long transactionId) = 0;
Marijn Kruisselbrink 2016/06/24 00:48:09 I think it's this API that doesn't make sense to m
+ virtual void unobserve(std::unique_ptr<WebIDBObserver>) = 0;
virtual void get(long long transactionId, long long objectStoreId, long long indexId, const WebIDBKeyRange&, bool keyOnly, WebIDBCallbacks*) = 0;
virtual void getAll(long long transactionId, long long objectStoreId, long long indexId, const WebIDBKeyRange&, long long maxCount, bool keyOnly, WebIDBCallbacks*) = 0;
virtual void put(long long transactionId, long long objectStoreId, const WebData& value, const WebVector<WebBlobInfo>&, const WebIDBKey&, WebIDBPutMode, WebIDBCallbacks*, const WebVector<long long>& indexIds, const WebVector<WebIndexKeys>&) = 0;

Powered by Google App Engine
This is Rietveld 408576698