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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Address last nits and fix leaks in unit tests. Created 4 years, 2 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_database_callbacks.h
diff --git a/content/browser/indexed_db/indexed_db_database_callbacks.h b/content/browser/indexed_db/indexed_db_database_callbacks.h
index 0ee97afccf61c7e16b59a7be917baff24148830a..5ea8cd7882e1ef7699c1484a91c4cc9e15b22c6b 100644
--- a/content/browser/indexed_db/indexed_db_database_callbacks.h
+++ b/content/browser/indexed_db/indexed_db_database_callbacks.h
@@ -10,6 +10,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
+#include "content/common/indexed_db/indexed_db.mojom.h"
+#include "content/public/browser/browser_thread.h"
namespace content {
class IndexedDBDatabaseError;
@@ -19,9 +21,10 @@ class IndexedDBObserverChanges;
class CONTENT_EXPORT IndexedDBDatabaseCallbacks
: public base::RefCounted<IndexedDBDatabaseCallbacks> {
public:
- IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host,
- int ipc_thread_id,
- int ipc_database_callbacks_id);
+ IndexedDBDatabaseCallbacks(
+ scoped_refptr<IndexedDBDispatcherHost> dispatcher_host,
+ int32_t ipc_thread_id,
+ ::indexed_db::mojom::DatabaseCallbacksAssociatedPtrInfo callbacks_info);
virtual void OnForcedClose();
virtual void OnVersionChange(int64_t old_version, int64_t new_version);
@@ -39,9 +42,11 @@ class CONTENT_EXPORT IndexedDBDatabaseCallbacks
private:
friend class base::RefCounted<IndexedDBDatabaseCallbacks>;
+ class IOThreadHelper;
+
scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
- int ipc_thread_id_;
- int ipc_database_callbacks_id_;
+ int32_t ipc_thread_id_;
+ std::unique_ptr<IOThreadHelper, BrowserThread::DeleteOnIOThread> io_helper_;
DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabaseCallbacks);
};
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.h ('k') | content/browser/indexed_db/indexed_db_database_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698