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

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

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years, 1 month 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 8c624983060a7668b9341c9e27e65f8983f37cc2..dd91ff664f4f182c5c328d77445bcba862104465 100644
--- a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h
+++ b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h
@@ -30,9 +30,10 @@
#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"
+#include <bitset>
+
namespace blink {
class WebData;
@@ -41,7 +42,6 @@ class WebIDBDatabaseCallbacks;
class WebIDBKey;
class WebIDBKeyPath;
class WebIDBKeyRange;
-class WebIDBObserver;
class WebIDBDatabase {
public:
@@ -85,8 +85,13 @@ class WebIDBDatabase {
typedef WebVector<WebIDBKey> WebIndexKeys;
- virtual int32_t addObserver(std::unique_ptr<WebIDBObserver>,
- long long transactionId) = 0;
+ virtual void addObserver(
+ long long transactionId,
+ int32_t observerId,
+ bool includeTransaction,
+ bool noRecords,
+ bool values,
+ const std::bitset<WebIDBOperationTypeCount>& operationTypes) = 0;
virtual void removeObservers(
const WebVector<int32_t>& observerIdsToRemove) = 0;
virtual void get(long long transactionId,
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698