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

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

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observer moved to connection 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/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 ba7a65fe36a28ac86dabe84b51889b2aa7d1e551..b62e9b0da2a1500de0b3f3358f5b42ce7f65ecf7 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.h
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.h
@@ -174,6 +174,12 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
void OnVersionChangeIgnored(int32_t ipc_database_id);
void OnDestroyed(int32_t ipc_database_id);
+ void OnObserve(int32_t ipc_database_id,
+ int64_t transaction_id,
+ int32_t observer_id);
+ void OnUnobserve(int32_t ipc_database_id,
+ std::vector<int32_t> observersToRemove);
dmurph 2016/06/22 01:09:49 const ref.
palakj1 2016/06/23 20:56:30 Done
+
void OnGet(const IndexedDBHostMsg_DatabaseGet_Params& params);
void OnGetAll(const IndexedDBHostMsg_DatabaseGetAll_Params& params);
// OnPutWrapper starts on the IO thread so that it can grab BlobDataHandles
@@ -299,7 +305,6 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
// Only access on IndexedDB thread.
std::unique_ptr<DatabaseDispatcherHost> database_dispatcher_host_;
std::unique_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
-
// Used to set file permissions for blob storage.
int ipc_process_id_;

Powered by Google App Engine
This is Rietveld 408576698