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

Unified Diff: content/child/indexed_db/webidbfactory_impl.cc

Issue 2449953008: Port messages sent by WebIDBDatabaseImpl to Mojo. (Closed)
Patch Set: Address more comments from dcheng@. Created 4 years, 1 month 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/webidbfactory_impl.cc
diff --git a/content/child/indexed_db/webidbfactory_impl.cc b/content/child/indexed_db/webidbfactory_impl.cc
index 84db9cfa1d0d5300b4b5c69701576978fc092208..bcff226cc9c6125da13c2c471f71213ad9347c7c 100644
--- a/content/child/indexed_db/webidbfactory_impl.cc
+++ b/content/child/indexed_db/webidbfactory_impl.cc
@@ -72,7 +72,8 @@ WebIDBFactoryImpl::~WebIDBFactoryImpl() {
void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks,
const WebSecurityOrigin& origin) {
auto callbacks_impl = base::MakeUnique<IndexedDBCallbacksImpl>(
- base::WrapUnique(callbacks), thread_safe_sender_);
+ base::WrapUnique(callbacks), IndexedDBCallbacksImpl::kNoTransaction,
+ io_runner_, thread_safe_sender_);
io_runner_->PostTask(FROM_HERE, base::Bind(&IOThreadHelper::GetDatabaseNames,
base::Unretained(io_helper_),
base::Passed(&callbacks_impl),
@@ -86,7 +87,8 @@ void WebIDBFactoryImpl::open(const WebString& name,
WebIDBDatabaseCallbacks* database_callbacks,
const WebSecurityOrigin& origin) {
auto callbacks_impl = base::MakeUnique<IndexedDBCallbacksImpl>(
- base::WrapUnique(callbacks), thread_safe_sender_);
+ base::WrapUnique(callbacks), transaction_id, io_runner_,
+ thread_safe_sender_);
auto database_callbacks_impl =
base::MakeUnique<IndexedDBDatabaseCallbacksImpl>(
base::WrapUnique(database_callbacks), thread_safe_sender_);
@@ -102,7 +104,8 @@ void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
WebIDBCallbacks* callbacks,
const WebSecurityOrigin& origin) {
auto callbacks_impl = base::MakeUnique<IndexedDBCallbacksImpl>(
- base::WrapUnique(callbacks), thread_safe_sender_);
+ base::WrapUnique(callbacks), IndexedDBCallbacksImpl::kNoTransaction,
+ io_runner_, thread_safe_sender_);
io_runner_->PostTask(
FROM_HERE,
base::Bind(&IOThreadHelper::DeleteDatabase, base::Unretained(io_helper_),
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl_unittest.cc ('k') | content/common/indexed_db/indexed_db.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698