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

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: 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_webidbcursor_impl.cc
diff --git a/content/renderer/renderer_webidbcursor_impl.cc b/content/renderer/renderer_webidbcursor_impl.cc
index 58113ad2707909a6805a03225443126bd1015e0a..eff8f84afc8df1195add1aa4c460d25825838f77 100644
--- a/content/renderer/renderer_webidbcursor_impl.cc
+++ b/content/renderer/renderer_webidbcursor_impl.cc
@@ -28,8 +28,7 @@ RendererWebIDBCursorImpl::~RendererWebIDBCursorImpl() {
// any such pointers.
ChildThread::current()->Send(new IndexedDBHostMsg_CursorDestroyed(
idb_cursor_id_));
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->CursorDestroyed(idb_cursor_id_);
}
@@ -55,8 +54,7 @@ WebSerializedScriptValue RendererWebIDBCursorImpl::value() const {
void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
WebIDBCallbacks* callbacks,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBCursorUpdate(
content::SerializedScriptValue(value), callbacks, idb_cursor_id_, &ec);
}
@@ -64,8 +62,7 @@ void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
WebIDBCallbacks* callbacks,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
if (key.type() == WebIDBKey::InvalidType) {
// No key, so this would qualify for a prefetch.
@@ -100,8 +97,7 @@ void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
void RendererWebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks,
WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec);
}
@@ -168,8 +164,7 @@ void RendererWebIDBCursorImpl::ResetPrefetchCache() {
return;
}
- IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
dispatcher->RequestIDBCursorPrefetchReset(used_prefetches_,
prefetch_keys_.size(),
idb_cursor_id_);

Powered by Google App Engine
This is Rietveld 408576698