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

Unified Diff: content/child/indexed_db/webidbfactory_impl.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
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.cc ('k') | content/child/indexed_db/webidbfactory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/webidbfactory_impl.h
diff --git a/content/child/indexed_db/webidbfactory_impl.h b/content/child/indexed_db/webidbfactory_impl.h
index 7e2fca92496dbc46154268aa1575e570c6c33d28..9c09addc87440162a2e5592697aaec959799b2cd 100644
--- a/content/child/indexed_db/webidbfactory_impl.h
+++ b/content/child/indexed_db/webidbfactory_impl.h
@@ -6,6 +6,7 @@
#define CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
#include "base/memory/ref_counted.h"
+#include "content/common/indexed_db/indexed_db.mojom.h"
#include "third_party/WebKit/public/platform/WebVector.h"
#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h"
#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h"
@@ -16,12 +17,20 @@ class WebSecurityOrigin;
class WebString;
}
+namespace IPC {
+class SyncMessageFilter;
+}
+
namespace content {
+class IndexedDBCallbacksImpl;
+class IndexedDBDatabaseCallbacksImpl;
class ThreadSafeSender;
class WebIDBFactoryImpl : public blink::WebIDBFactory {
public:
- explicit WebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender);
+ WebIDBFactoryImpl(scoped_refptr<IPC::SyncMessageFilter> sync_message_filter,
+ scoped_refptr<ThreadSafeSender> thread_safe_sender,
+ scoped_refptr<base::SingleThreadTaskRunner> io_runner);
~WebIDBFactoryImpl() override;
// See WebIDBFactory.h for documentation on these functions.
@@ -38,7 +47,11 @@ class WebIDBFactoryImpl : public blink::WebIDBFactory {
const blink::WebSecurityOrigin& origin) override;
private:
+ class IOThreadHelper;
+
+ IOThreadHelper* io_helper_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
};
} // namespace content
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.cc ('k') | content/child/indexed_db/webidbfactory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698