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

Unified Diff: content/child/indexed_db/webidbdatabase_impl.h

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unobserve functionality 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: content/child/indexed_db/webidbdatabase_impl.h
diff --git a/content/child/indexed_db/webidbdatabase_impl.h b/content/child/indexed_db/webidbdatabase_impl.h
index 5b04f6bf7205b61217013dadd9399cb1a51c495c..957e620da153bae0a3e60311e23b54d3b1c4142a 100644
--- a/content/child/indexed_db/webidbdatabase_impl.h
+++ b/content/child/indexed_db/webidbdatabase_impl.h
@@ -47,6 +47,7 @@ class WebIDBDatabaseImpl : public blink::WebIDBDatabase {
void versionChangeIgnored() override;
void observe(blink::IDBObserver* observer, long long transactionId) override;
+ void unobserve(blink::IDBObserver* observer) override;
void get(long long transactionId,
long long objectStoreId,
@@ -117,6 +118,7 @@ class WebIDBDatabaseImpl : public blink::WebIDBDatabase {
int32_t ipc_database_id_;
int32_t ipc_database_callbacks_id_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+ std::vector<int32_t> observers_id_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698