summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webidbobjectstore_impl.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/renderer_webidbobjectstore_impl.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/renderer_webidbobjectstore_impl.cc')
-rw-r--r--chrome/renderer/renderer_webidbobjectstore_impl.cc46
1 files changed, 14 insertions, 32 deletions
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.cc b/chrome/renderer/renderer_webidbobjectstore_impl.cc
index ead8e53..d29a326 100644
--- a/chrome/renderer/renderer_webidbobjectstore_impl.cc
+++ b/chrome/renderer/renderer_webidbobjectstore_impl.cc
@@ -10,7 +10,6 @@
#include "chrome/renderer/indexed_db_dispatcher.h"
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/renderer_webidbindex_impl.h"
-#include "chrome/renderer/renderer_webidbtransaction_impl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebDOMStringList.h"
#include "third_party/WebKit/WebKit/chromium/public/WebIDBKey.h"
#include "third_party/WebKit/WebKit/chromium/public/WebIDBKeyRange.h"
@@ -62,43 +61,30 @@ WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const {
return web_result;
}
-void RendererWebIDBObjectStoreImpl::get(
- const WebIDBKey& key,
- WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction) {
+void RendererWebIDBObjectStoreImpl::get(const WebIDBKey& key,
+ WebIDBCallbacks* callbacks) {
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
- int transaction_id =
- static_cast<const RendererWebIDBTransactionImpl*>(&transaction)->id();
- dispatcher->RequestIDBObjectStoreGet(
- IndexedDBKey(key), callbacks, idb_object_store_id_, transaction_id);
+ dispatcher->RequestIDBObjectStoreGet(IndexedDBKey(key),
+ callbacks, idb_object_store_id_);
}
void RendererWebIDBObjectStoreImpl::put(
- const WebSerializedScriptValue& value,
- const WebIDBKey& key,
- bool add_only,
- WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction) {
+ const WebSerializedScriptValue& value, const WebIDBKey& key, bool add_only,
+ WebIDBCallbacks* callbacks) {
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
- int transaction_id =
- static_cast<const RendererWebIDBTransactionImpl*>(&transaction)->id();
dispatcher->RequestIDBObjectStorePut(
SerializedScriptValue(value), IndexedDBKey(key), add_only, callbacks,
- idb_object_store_id_, transaction_id);
+ idb_object_store_id_);
}
-void RendererWebIDBObjectStoreImpl::remove(
- const WebIDBKey& key,
- WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction) {
+void RendererWebIDBObjectStoreImpl::remove(const WebIDBKey& key,
+ WebIDBCallbacks* callbacks) {
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
- int transaction_id =
- static_cast<const RendererWebIDBTransactionImpl*>(&transaction)->id();
- dispatcher->RequestIDBObjectStoreRemove(
- IndexedDBKey(key), callbacks, idb_object_store_id_, transaction_id);
+ dispatcher->RequestIDBObjectStoreRemove(IndexedDBKey(key), callbacks,
+ idb_object_store_id_);
}
void RendererWebIDBObjectStoreImpl::createIndex(
@@ -132,13 +118,9 @@ void RendererWebIDBObjectStoreImpl::removeIndex(const WebString& name,
void RendererWebIDBObjectStoreImpl::openCursor(
const WebIDBKeyRange& idb_key_range,
- unsigned short direction, WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction) {
+ unsigned short direction, WebIDBCallbacks* callbacks) {
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
- int transaction_id =
- static_cast<const RendererWebIDBTransactionImpl*>(&transaction)->id();
- dispatcher->RequestIDBObjectStoreOpenCursor(
- idb_key_range, direction, callbacks, idb_object_store_id_,
- transaction_id);
+ dispatcher->RequestIDBObjectStoreOpenCursor(idb_key_range, direction,
+ callbacks, idb_object_store_id_);
}