summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/indexed_db_dispatcher.cc
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 12:24:53 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 12:24:53 +0000
commit284e0d6e941b4a87f56cfd7cab70a69194e50cae (patch)
treec8df36841e4a2533c630b9ea2e0ad2bee6257e80 /chrome/renderer/indexed_db_dispatcher.cc
parent341c086742954026993de725d0af8118e14d2862 (diff)
downloadchromium_src-284e0d6e941b4a87f56cfd7cab70a69194e50cae.zip
chromium_src-284e0d6e941b4a87f56cfd7cab70a69194e50cae.tar.gz
chromium_src-284e0d6e941b4a87f56cfd7cab70a69194e50cae.tar.bz2
Revert 60275.
TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/indexed_db_dispatcher.cc')
-rw-r--r--chrome/renderer/indexed_db_dispatcher.cc80
1 files changed, 26 insertions, 54 deletions
diff --git a/chrome/renderer/indexed_db_dispatcher.cc b/chrome/renderer/indexed_db_dispatcher.cc
index 813a4fc..3ba6f08 100644
--- a/chrome/renderer/indexed_db_dispatcher.cc
+++ b/chrome/renderer/indexed_db_dispatcher.cc
@@ -150,11 +150,8 @@ void IndexedDBDispatcher::RequestIDBDatabaseSetVersion(
}
void IndexedDBDispatcher::RequestIDBIndexOpenObjectCursor(
- const WebIDBKeyRange& idb_key_range,
- unsigned short direction,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_index_id,
- int transaction_id) {
+ const WebIDBKeyRange& idb_key_range, unsigned short direction,
+ WebIDBCallbacks* callbacks_ptr, int32 idb_index_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
ViewHostMsg_IDBIndexOpenCursor_Params params;
params.response_id_ = pending_callbacks_.Add(callbacks.release());
@@ -163,17 +160,13 @@ void IndexedDBDispatcher::RequestIDBIndexOpenObjectCursor(
params.key_flags_ = idb_key_range.flags();
params.direction_ = direction;
params.idb_index_id_ = idb_index_id;
- params.transaction_id_ = transaction_id;
RenderThread::current()->Send(
new ViewHostMsg_IDBIndexOpenObjectCursor(params));
}
void IndexedDBDispatcher::RequestIDBIndexOpenCursor(
- const WebIDBKeyRange& idb_key_range,
- unsigned short direction,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_index_id,
- int transaction_id) {
+ const WebIDBKeyRange& idb_key_range, unsigned short direction,
+ WebIDBCallbacks* callbacks_ptr, int32 idb_index_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
ViewHostMsg_IDBIndexOpenCursor_Params params;
params.response_id_ = pending_callbacks_.Add(callbacks.release());
@@ -182,79 +175,62 @@ void IndexedDBDispatcher::RequestIDBIndexOpenCursor(
params.key_flags_ = idb_key_range.flags();
params.direction_ = direction;
params.idb_index_id_ = idb_index_id;
- params.transaction_id_ = transaction_id;
RenderThread::current()->Send(
new ViewHostMsg_IDBIndexOpenCursor(params));
}
void IndexedDBDispatcher::RequestIDBIndexGetObject(
- const IndexedDBKey& key,
- WebKit::WebIDBCallbacks* callbacks_ptr,
- int32 idb_index_id,
- int transaction_id) {
+ const IndexedDBKey& key, WebKit::WebIDBCallbacks* callbacks_ptr,
+ int32 idb_index_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
RenderThread::current()->Send(
new ViewHostMsg_IDBIndexGetObject(
- idb_index_id, pending_callbacks_.Add(callbacks.release()), key,
- transaction_id));
+ idb_index_id, pending_callbacks_.Add(callbacks.release()), key));
}
void IndexedDBDispatcher::RequestIDBIndexGet(
- const IndexedDBKey& key,
- WebKit::WebIDBCallbacks* callbacks_ptr,
- int32 idb_index_id,
- int transaction_id) {
+ const IndexedDBKey& key, WebKit::WebIDBCallbacks* callbacks_ptr,
+ int32 idb_index_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
RenderThread::current()->Send(
new ViewHostMsg_IDBIndexGet(
- idb_index_id, pending_callbacks_.Add(callbacks.release()), key,
- transaction_id));
+ idb_index_id, pending_callbacks_.Add(callbacks.release()), key));
}
void IndexedDBDispatcher::RequestIDBObjectStoreGet(
- const IndexedDBKey& key,
- WebKit::WebIDBCallbacks* callbacks_ptr,
- int32 idb_object_store_id,
- int transaction_id) {
+ const IndexedDBKey& key, WebKit::WebIDBCallbacks* callbacks_ptr,
+ int32 idb_object_store_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
RenderThread::current()->Send(
new ViewHostMsg_IDBObjectStoreGet(
idb_object_store_id, pending_callbacks_.Add(callbacks.release()),
- key, transaction_id));
+ key));
}
void IndexedDBDispatcher::RequestIDBObjectStorePut(
- const SerializedScriptValue& value,
- const IndexedDBKey& key,
- bool add_only,
- WebKit::WebIDBCallbacks* callbacks_ptr,
- int32 idb_object_store_id,
- int transaction_id) {
+ const SerializedScriptValue& value, const IndexedDBKey& key,
+ bool add_only, WebKit::WebIDBCallbacks* callbacks_ptr,
+ int32 idb_object_store_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
- ViewHostMsg_IDBObjectStorePut_Params params;
- params.idb_object_store_id_ = idb_object_store_id;
- params.response_id_ = pending_callbacks_.Add(callbacks.release());
- params.serialized_value_ = value;
- params.key_ = key;
- params.add_only_ = add_only;
- params.transaction_id_ = transaction_id;
- RenderThread::current()->Send(new ViewHostMsg_IDBObjectStorePut(params));
+
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBObjectStorePut(
+ idb_object_store_id, pending_callbacks_.Add(callbacks.release()),
+ value, key, add_only));
}
void IndexedDBDispatcher::RequestIDBObjectStoreRemove(
- const IndexedDBKey& key,
- WebKit::WebIDBCallbacks* callbacks_ptr,
- int32 idb_object_store_id,
- int transaction_id) {
+ const IndexedDBKey& key, WebKit::WebIDBCallbacks* callbacks_ptr,
+ int32 idb_object_store_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
RenderThread::current()->Send(
new ViewHostMsg_IDBObjectStoreRemove(
idb_object_store_id, pending_callbacks_.Add(callbacks.release()),
- key, transaction_id));
+ key));
}
void IndexedDBDispatcher::RequestIDBObjectStoreCreateIndex(
@@ -284,11 +260,8 @@ void IndexedDBDispatcher::RequestIDBObjectStoreRemoveIndex(
}
void IndexedDBDispatcher::RequestIDBObjectStoreOpenCursor(
- const WebIDBKeyRange& idb_key_range,
- unsigned short direction,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_object_store_id,
- int transaction_id) {
+ const WebIDBKeyRange& idb_key_range, unsigned short direction,
+ WebIDBCallbacks* callbacks_ptr, int32 idb_object_store_id) {
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
ViewHostMsg_IDBObjectStoreOpenCursor_Params params;
params.response_id_ = pending_callbacks_.Add(callbacks.release());
@@ -297,7 +270,6 @@ void IndexedDBDispatcher::RequestIDBObjectStoreOpenCursor(
params.flags_ = idb_key_range.flags();
params.direction_ = direction;
params.idb_object_store_id_ = idb_object_store_id;
- params.transaction_id_ = transaction_id;
RenderThread::current()->Send(
new ViewHostMsg_IDBObjectStoreOpenCursor(params));
}