| Index: content/browser/in_process_webkit/indexed_db_callbacks.cc
|
| diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.cc b/content/browser/in_process_webkit/indexed_db_callbacks.cc
|
| index 70e79ef3edf7283d755b34084e99a0055a3478cb..0f9618312f83cdd026666cdd78b05ce32660bb69 100644
|
| --- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
|
| +++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
|
| @@ -59,6 +59,31 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessWithContinuation() {
|
| content::SerializedScriptValue(idb_cursor->value())));
|
| }
|
|
|
| +void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessWithPrefetch(
|
| + WebKit::WebVector<WebKit::WebIDBKey> keys,
|
| + WebKit::WebVector<WebKit::WebIDBKey> primaryKeys,
|
| + WebKit::WebVector<WebKit::WebSerializedScriptValue> values) {
|
| + DCHECK(cursor_id_ != -1);
|
| +
|
| + std::vector<IndexedDBKey> msgKeys;
|
| + std::vector<IndexedDBKey> msgPrimaryKeys;
|
| + std::vector<content::SerializedScriptValue> msgValues;
|
| +
|
| + for (size_t i = 0; i < keys.size(); ++i) {
|
| + msgKeys.push_back(IndexedDBKey(keys[i]));
|
| + msgPrimaryKeys.push_back(IndexedDBKey(primaryKeys[i]));
|
| + msgValues.push_back(content::SerializedScriptValue(values[i]));
|
| + }
|
| +
|
| + dispatcher_host()->Send(
|
| + new IndexedDBMsg_CallbacksSuccessCursorPrefetch(
|
| + response_id(),
|
| + cursor_id_,
|
| + msgKeys,
|
| + msgPrimaryKeys,
|
| + msgValues));
|
| +}
|
| +
|
| void IndexedDBCallbacks<WebKit::WebIDBKey>::onSuccess(
|
| const WebKit::WebIDBKey& value) {
|
| dispatcher_host()->Send(
|
|
|