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

Unified Diff: content/renderer/renderer_webidbindex_impl.cc

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove some includes Created 9 years 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_webidbindex_impl.cc
diff --git a/content/renderer/renderer_webidbindex_impl.cc b/content/renderer/renderer_webidbindex_impl.cc
index 89b5255737d217661dbb5b1ec68b4b7c6a7d50e5..0712b00310f0bd1265d17a018d4b1734dc08b241 100644
--- a/content/renderer/renderer_webidbindex_impl.cc
+++ b/content/renderer/renderer_webidbindex_impl.cc
@@ -63,8 +63,7 @@ void RendererWebIDBIndexImpl::openObjectCursor(
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBIndexOpenObjectCursor(
range, direction, callbacks, idb_index_id_, transaction, &ec);
}
@@ -75,8 +74,7 @@ void RendererWebIDBIndexImpl::openKeyCursor(
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBIndexOpenKeyCursor(
range, direction, callbacks, idb_index_id_, transaction, &ec);
}
@@ -86,8 +84,7 @@ void RendererWebIDBIndexImpl::getObject(
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBIndexGetObject(
IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
}
@@ -97,8 +94,7 @@ void RendererWebIDBIndexImpl::getKey(
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBIndexGetKey(
IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
}

Powered by Google App Engine
This is Rietveld 408576698