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

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

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Post haraken review Created 4 years, 5 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/WebIDBObserver.h
diff --git a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h
index 0f9321270f3112e145da3b937d1e758061476d72..b77e276341af2948eaf5941d1e6b701d9cf82d99 100644
--- a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h
+++ b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h
@@ -7,11 +7,23 @@
#ifndef WebIDBObserver_h
#define WebIDBObserver_h
+#include "public/platform/WebVector.h"
+#include "public/platform/modules/indexeddb/WebIDBTypes.h"
+#include <bitset>
+
namespace blink {
+struct WebIDBObservation;
+
class WebIDBObserver {
public:
virtual ~WebIDBObserver() {}
+
+ virtual bool transaction() const = 0;
+ virtual bool noRecords() const = 0;
+ virtual bool values() const = 0;
+ virtual const std::bitset<WebIDBOperationTypeCount>& operationTypes() const = 0;
+ virtual void onChange(const WebVector<WebIDBObservation>&, WebVector<int32_t> observationIndex) = 0;
chrishtr 2016/07/20 19:51:05 Should the second argument be a const reference?
palakj1 2016/07/20 21:41:47 sorry. changed
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698