diff options
Diffstat (limited to 'chrome/renderer/renderer_webidbcursor_impl.cc')
-rw-r--r-- | chrome/renderer/renderer_webidbcursor_impl.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/renderer/renderer_webidbcursor_impl.cc b/chrome/renderer/renderer_webidbcursor_impl.cc index dd78eec..88affd1 100644 --- a/chrome/renderer/renderer_webidbcursor_impl.cc +++ b/chrome/renderer/renderer_webidbcursor_impl.cc @@ -37,11 +37,18 @@ WebIDBKey RendererWebIDBCursorImpl::key() const { return key; } -WebSerializedScriptValue RendererWebIDBCursorImpl::value() const { - SerializedScriptValue value; +void RendererWebIDBCursorImpl::value( + WebSerializedScriptValue& webScriptValue, + WebIDBKey& webKey) const { + SerializedScriptValue scriptValue; + IndexedDBKey key; RenderThread::current()->Send( - new ViewHostMsg_IDBCursorValue(idb_cursor_id_, &value)); - return value; + new ViewHostMsg_IDBCursorValue(idb_cursor_id_, &scriptValue, + &key)); + DCHECK(scriptValue.is_null()); + webScriptValue = scriptValue; + DCHECK(key.type() == WebIDBKey::InvalidType); + webKey = key; } void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value, |