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

Unified Diff: content/renderer/renderer_webidbobjectstore_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_webidbobjectstore_impl.cc
diff --git a/content/renderer/renderer_webidbobjectstore_impl.cc b/content/renderer/renderer_webidbobjectstore_impl.cc
index 70ebc0a529463e12e6b839ee8e305dc3903b5cfb..91a24aa1df391b13864960e3ea59ef66c9f8bf10 100644
--- a/content/renderer/renderer_webidbobjectstore_impl.cc
+++ b/content/renderer/renderer_webidbobjectstore_impl.cc
@@ -38,27 +38,27 @@ RendererWebIDBObjectStoreImpl::~RendererWebIDBObjectStoreImpl() {
// 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(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_));
}
WebString RendererWebIDBObjectStoreImpl::name() const {
string16 result;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreName(idb_object_store_id_, &result));
return result;
}
WebString RendererWebIDBObjectStoreImpl::keyPath() const {
NullableString16 result;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreKeyPath(idb_object_store_id_, &result));
return result;
}
WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const {
std::vector<string16> result;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreIndexNames(
idb_object_store_id_, &result));
WebDOMStringList web_result;
@@ -75,7 +75,7 @@ void RendererWebIDBObjectStoreImpl::get(
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBObjectStoreGet(
IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec);
}
@@ -88,7 +88,7 @@ void RendererWebIDBObjectStoreImpl::put(
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBObjectStorePut(
content::SerializedScriptValue(value), IndexedDBKey(key), put_mode,
callbacks, idb_object_store_id_, transaction, &ec);
@@ -100,7 +100,7 @@ void RendererWebIDBObjectStoreImpl::deleteFunction(
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBObjectStoreDelete(
IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec);
}
@@ -110,7 +110,7 @@ void RendererWebIDBObjectStoreImpl::clear(
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBObjectStoreClear(
callbacks, idb_object_store_id_, transaction, &ec);
}
@@ -129,7 +129,7 @@ WebIDBIndex* RendererWebIDBObjectStoreImpl::createIndex(
params.idb_object_store_id = idb_object_store_id_;
int32 index_id;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreCreateIndex(params, &index_id, &ec));
if (!index_id)
return NULL;
@@ -140,7 +140,7 @@ WebIDBIndex* RendererWebIDBObjectStoreImpl::index(
const WebString& name,
WebExceptionCode& ec) {
int32 idb_index_id;
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreIndex(idb_object_store_id_, name,
&idb_index_id, &ec));
if (!idb_index_id)
@@ -152,7 +152,7 @@ void RendererWebIDBObjectStoreImpl::deleteIndex(
const WebString& name,
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
- RenderThreadImpl::current()->Send(
+ ChildThread::current()->Send(
new IndexedDBHostMsg_ObjectStoreDeleteIndex(
idb_object_store_id_, name,
IndexedDBDispatcher::TransactionId(transaction), &ec));
@@ -164,7 +164,7 @@ void RendererWebIDBObjectStoreImpl::openCursor(
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
- RenderThreadImpl::current()->indexed_db_dispatcher();
+ ChildThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBObjectStoreOpenCursor(
idb_key_range, direction, callbacks, idb_object_store_id_,
transaction, &ec);

Powered by Google App Engine
This is Rietveld 408576698