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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.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: content/child/indexed_db/indexed_db_dispatcher.h
diff --git a/content/child/indexed_db/indexed_db_dispatcher.h b/content/child/indexed_db/indexed_db_dispatcher.h
index bb1d3b6ec224cb6cd134161b3fa985cce599b49e..eee70a0f8db71b257c397e99b7a1b0ebb7f237cf 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.h
+++ b/content/child/indexed_db/indexed_db_dispatcher.h
@@ -35,9 +35,12 @@ struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params;
struct IndexedDBMsg_CallbacksSuccessArray_Params;
struct IndexedDBMsg_CallbacksSuccessValue_Params;
struct IndexedDBMsg_CallbacksUpgradeNeeded_Params;
+struct IndexedDBMsg_Observation;
+struct IndexedDBMsg_ObserverChanges;
namespace blink {
class WebData;
+struct WebIDBObservation;
}
namespace content {
@@ -69,6 +72,8 @@ class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer {
static blink::WebIDBMetadata ConvertMetadata(
const IndexedDBDatabaseMetadata& idb_metadata);
+ static std::vector<blink::WebIDBObservation> ConvertObservations(
+ const std::vector<IndexedDBMsg_Observation>& idb_observation);
void OnMessageReceived(const IPC::Message& msg);
@@ -257,6 +262,10 @@ class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer {
void OnComplete(int32_t ipc_thread_id,
int32_t ipc_database_id,
int64_t transaction_id);
+ void OnDatabaseChanges(int32_t ipc_thread_id,
+ int32_t ipc_database_id,
+ const IndexedDBMsg_ObserverChanges&);
+
void OnForcedClose(int32_t ipc_thread_id, int32_t ipc_database_id);
void OnVersionChange(int32_t ipc_thread_id,
int32_t ipc_database_id,

Powered by Google App Engine
This is Rietveld 408576698