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

Unified Diff: content/renderer/renderer_webidbtransaction_impl.cc

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/renderer/renderer_webidbtransaction_impl.cc
diff --git a/content/renderer/renderer_webidbtransaction_impl.cc b/content/renderer/renderer_webidbtransaction_impl.cc
index 78a7de8b6a4dace3eca2c1082480cc4dcb4bca97..97c7b01d6bf05d3a92c1b10d2ea57d317318f13c 100644
--- a/content/renderer/renderer_webidbtransaction_impl.cc
+++ b/content/renderer/renderer_webidbtransaction_impl.cc
@@ -26,14 +26,14 @@ RendererWebIDBTransactionImpl::~RendererWebIDBTransactionImpl() {
// object since inside WebKit, they hold a reference to the object wich owns
// this object. But, if that ever changed, then we'd need to invalidate
// any such pointers.
- RenderThreadImpl::current()->Send(new IndexedDBHostMsg_TransactionDestroyed(
+ ChildThread::current()->Send(new IndexedDBHostMsg_TransactionDestroyed(
idb_transaction_id_));
}
int RendererWebIDBTransactionImpl::mode() const
{
int mode;
- RenderThreadImpl::current()->Send(new IndexedDBHostMsg_TransactionMode(
+ ChildThread::current()->Send(new IndexedDBHostMsg_TransactionMode(
idb_transaction_id_, &mode));
return mode;
}
@@ -43,7 +43,7 @@ WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
WebKit::WebExceptionCode& ec)
{
int object_store_id;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_TransactionObjectStore(
idb_transaction_id_, name, &object_store_id, &ec));
if (!object_store_id)
@@ -53,13 +53,13 @@ WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
void RendererWebIDBTransactionImpl::abort()
{
- RenderThreadImpl::current()->Send(new IndexedDBHostMsg_TransactionAbort(
+ ChildThread::current()->Send(new IndexedDBHostMsg_TransactionAbort(
idb_transaction_id_));
}
void RendererWebIDBTransactionImpl::didCompleteTaskEvents()
{
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_TransactionDidCompleteTaskEvents(
idb_transaction_id_));
}
@@ -68,7 +68,7 @@ void RendererWebIDBTransactionImpl::setCallbacks(
WebIDBTransactionCallbacks* callbacks)
{
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RegisterWebIDBTransactionCallbacks(callbacks,
idb_transaction_id_);
}

Powered by Google App Engine
This is Rietveld 408576698