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

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 OVERRIDE from dtor 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..72604081e97e589dd4633ad89edeb9b26ae61a2a 100644
--- a/content/renderer/renderer_webidbindex_impl.cc
+++ b/content/renderer/renderer_webidbindex_impl.cc
@@ -64,7 +64,7 @@ void RendererWebIDBIndexImpl::openObjectCursor(
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher::ThreadSpecificInstance();
dispatcher->RequestIDBIndexOpenObjectCursor(
range, direction, callbacks, idb_index_id_, transaction, &ec);
}
@@ -76,7 +76,7 @@ void RendererWebIDBIndexImpl::openKeyCursor(
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher::ThreadSpecificInstance();
dispatcher->RequestIDBIndexOpenKeyCursor(
range, direction, callbacks, idb_index_id_, transaction, &ec);
}
@@ -87,7 +87,7 @@ void RendererWebIDBIndexImpl::getObject(
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher::ThreadSpecificInstance();
dispatcher->RequestIDBIndexGetObject(
IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
}
@@ -98,7 +98,7 @@ void RendererWebIDBIndexImpl::getKey(
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher::ThreadSpecificInstance();
dispatcher->RequestIDBIndexGetKey(
IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
}
« no previous file with comments | « content/renderer/renderer_webidbfactory_impl.cc ('k') | content/renderer/renderer_webidbobjectstore_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698