summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 16:50:42 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 16:50:42 +0000
commit2758531ff10c3e0b1141fa34fc9bb18838079a4e (patch)
tree55141f7406e66adef6101095a668041f96806c21 /chrome/renderer
parent45be8ec632f31d816a93e01d03dd1a676ab553cd (diff)
downloadchromium_src-2758531ff10c3e0b1141fa34fc9bb18838079a4e.zip
chromium_src-2758531ff10c3e0b1141fa34fc9bb18838079a4e.tar.gz
chromium_src-2758531ff10c3e0b1141fa34fc9bb18838079a4e.tar.bz2
IndexedDB: Update calls to WebIDBObjectStore::put().
The put() function has been updated to take a PutMode parameter rather than the addOnly bool. Update calls, and ship the PutMode across IPC. BUG=64052 TEST=none Review URL: http://codereview.chromium.org/6250049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/indexed_db_dispatcher.cc4
-rw-r--r--chrome/renderer/indexed_db_dispatcher.h3
-rw-r--r--chrome/renderer/renderer_webidbobjectstore_impl.cc4
-rw-r--r--chrome/renderer/renderer_webidbobjectstore_impl.h2
4 files changed, 7 insertions, 6 deletions
diff --git a/chrome/renderer/indexed_db_dispatcher.cc b/chrome/renderer/indexed_db_dispatcher.cc
index 41cd38d..d425b41 100644
--- a/chrome/renderer/indexed_db_dispatcher.cc
+++ b/chrome/renderer/indexed_db_dispatcher.cc
@@ -239,7 +239,7 @@ void IndexedDBDispatcher::RequestIDBObjectStoreGet(
void IndexedDBDispatcher::RequestIDBObjectStorePut(
const SerializedScriptValue& value,
const IndexedDBKey& key,
- bool add_only,
+ WebKit::WebIDBObjectStore::PutMode put_mode,
WebIDBCallbacks* callbacks_ptr,
int32 idb_object_store_id,
const WebIDBTransaction& transaction,
@@ -250,7 +250,7 @@ void IndexedDBDispatcher::RequestIDBObjectStorePut(
params.response_id = pending_callbacks_.Add(callbacks.release());
params.serialized_value = value;
params.key = key;
- params.add_only = add_only;
+ params.put_mode = put_mode;
params.transaction_id = TransactionId(transaction);
RenderThread::current()->Send(new IndexedDBHostMsg_ObjectStorePut(
params, ec));
diff --git a/chrome/renderer/indexed_db_dispatcher.h b/chrome/renderer/indexed_db_dispatcher.h
index 44da3d4..4f5dc44 100644
--- a/chrome/renderer/indexed_db_dispatcher.h
+++ b/chrome/renderer/indexed_db_dispatcher.h
@@ -12,6 +12,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCallbacks.h"
class IndexedDBKey;
@@ -98,7 +99,7 @@ class IndexedDBDispatcher : public IPC::Channel::Listener {
void RequestIDBObjectStorePut(const SerializedScriptValue& value,
const IndexedDBKey& key,
- bool add_only,
+ WebKit::WebIDBObjectStore::PutMode putMode,
WebKit::WebIDBCallbacks* callbacks,
int32 idb_object_store_id,
const WebKit::WebIDBTransaction& transaction,
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.cc b/chrome/renderer/renderer_webidbobjectstore_impl.cc
index 41c96ca..c2bc011 100644
--- a/chrome/renderer/renderer_webidbobjectstore_impl.cc
+++ b/chrome/renderer/renderer_webidbobjectstore_impl.cc
@@ -83,14 +83,14 @@ void RendererWebIDBObjectStoreImpl::get(
void RendererWebIDBObjectStoreImpl::put(
const WebSerializedScriptValue& value,
const WebIDBKey& key,
- bool add_only,
+ PutMode put_mode,
WebIDBCallbacks* callbacks,
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
RenderThread::current()->indexed_db_dispatcher();
dispatcher->RequestIDBObjectStorePut(
- SerializedScriptValue(value), IndexedDBKey(key), add_only, callbacks,
+ SerializedScriptValue(value), IndexedDBKey(key), put_mode, callbacks,
idb_object_store_id_, transaction, &ec);
}
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.h b/chrome/renderer/renderer_webidbobjectstore_impl.h
index c6897f6..e1be85a 100644
--- a/chrome/renderer/renderer_webidbobjectstore_impl.h
+++ b/chrome/renderer/renderer_webidbobjectstore_impl.h
@@ -35,7 +35,7 @@ class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
WebKit::WebExceptionCode& ec);
virtual void put(const WebKit::WebSerializedScriptValue& value,
const WebKit::WebIDBKey& key,
- bool add_only,
+ PutMode put_mode,
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebIDBTransaction& transaction,
WebKit::WebExceptionCode& ec);