call putWithIndexKeys from chrome

This hooks up putIndexWithKeys on the chrome side, to be enabled by https://bugs.webkit.org/show_bug.cgi?id=91123
BUG=129471
TEST=


Review URL: https://chromiumcodereview.appspot.com/10786043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148247 0039d316-1c4b-4281-b951-d872f2087c98
parent a0e58f30
......@@ -712,9 +712,10 @@ void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnPut(
scoped_ptr<WebIDBCallbacks> callbacks(
new IndexedDBCallbacks<WebIDBKey>(parent_, params.thread_id,
params.response_id));
// TODO(alecflett): switch to putWithIndexKeys when available.
idb_object_store->put(params.serialized_value, params.key, params.put_mode,
callbacks.release(), *idb_transaction, *ec);
idb_object_store->putWithIndexKeys(params.serialized_value, params.key,
params.put_mode, callbacks.release(),
*idb_transaction, params.index_names,
params.index_keys, *ec);
if (*ec)
return;
int64 size = UTF16ToUTF8(params.serialized_value.data()).size();
......
......@@ -439,7 +439,7 @@ IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet,
int32, /* transaction_id */
WebKit::WebExceptionCode /* ec */)
// WebIDBObjectStore::put() message.
// WebIDBObjectStore::putWithIndexKeys() message.
IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStorePut,
IndexedDBHostMsg_ObjectStorePut_Params,
WebKit::WebExceptionCode /* ec */)
......
......@@ -40,7 +40,7 @@ class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
WebKit::WebIDBCallbacks*,
const WebKit::WebIDBTransaction&,
const WebKit::WebVector<WebKit::WebString>&,
const WebKit::WebVector<WebKit::WebVector<WebKit::WebIDBKey> >&,
const WebKit::WebVector<WebKit::WebIDBObjectStore::WebIndexKeys>&,
WebKit::WebExceptionCode&);
virtual void deleteFunction(const WebKit::WebIDBKeyRange& key_range,
WebKit::WebIDBCallbacks* callbacks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment