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

Unified Diff: content/renderer/renderer_webidbcursor_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_webidbcursor_impl.cc
diff --git a/content/renderer/renderer_webidbcursor_impl.cc b/content/renderer/renderer_webidbcursor_impl.cc
index 8060040a886cdad2a4ec85a515cc61b6d31b2e93..7c8b86a86177d8269430581241cb345ca7e7b7fb 100644
--- a/content/renderer/renderer_webidbcursor_impl.cc
+++ b/content/renderer/renderer_webidbcursor_impl.cc
@@ -22,16 +22,16 @@ RendererWebIDBCursorImpl::~RendererWebIDBCursorImpl() {
// 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_CursorDestroyed(
+ ChildThread::current()->Send(new IndexedDBHostMsg_CursorDestroyed(
idb_cursor_id_));
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->CursorDestroyed(idb_cursor_id_);
}
unsigned short RendererWebIDBCursorImpl::direction() const {
int direction;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_CursorDirection(idb_cursor_id_, &direction));
return direction;
}
@@ -52,7 +52,7 @@ void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
WebIDBCallbacks* callbacks,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBCursorUpdate(
content::SerializedScriptValue(value), callbacks, idb_cursor_id_, &ec);
}
@@ -61,7 +61,7 @@ void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
WebIDBCallbacks* callbacks,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBCursorContinue(IndexedDBKey(key), callbacks,
idb_cursor_id_, &ec);
}
@@ -69,7 +69,7 @@ void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
void RendererWebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec);
}

Powered by Google App Engine
This is Rietveld 408576698