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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.h

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: IDBDatabase weakptr introduced on IDBObserver 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/browser/indexed_db/indexed_db_dispatcher_host.h
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.h b/content/browser/indexed_db/indexed_db_dispatcher_host.h
index 524c68eeb8029c3fb94755b1598a6ed85219f9dc..0dc23f8bd566408390a643c6dfe5b3a5267d3c8d 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.h
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.h
@@ -38,6 +38,8 @@ struct IndexedDBHostMsg_DatabaseSetIndexKeys_Params;
struct IndexedDBHostMsg_FactoryDeleteDatabase_Params;
struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params;
struct IndexedDBHostMsg_FactoryOpen_Params;
+struct IndexedDBMsg_Observation;
+struct IndexedDBMsg_ObserverChanges;
namespace url {
class Origin;
@@ -51,6 +53,8 @@ class IndexedDBCursor;
class IndexedDBKey;
class IndexedDBKeyPath;
class IndexedDBKeyRange;
+class IndexedDBObservation;
+class IndexedDBObserverChanges;
struct IndexedDBDatabaseMetadata;
// Handles all IndexedDB related messages from a particular renderer process.
@@ -68,6 +72,10 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
static ::IndexedDBDatabaseMetadata ConvertMetadata(
const content::IndexedDBDatabaseMetadata& metadata);
+ static IndexedDBMsg_ObserverChanges ConvertObserverChanges(
+ std::unique_ptr<IndexedDBObserverChanges> changes);
+ static IndexedDBMsg_Observation ConvertObservation(
+ const IndexedDBObservation* observation);
// BrowserMessageFilter implementation.
void OnChannelConnected(int32_t peer_pid) override;

Powered by Google App Engine
This is Rietveld 408576698