Index: content/common/indexed_db/proxy_webidbcursor_impl.cc |
diff --git a/content/common/indexed_db/proxy_webidbcursor_impl.cc b/content/common/indexed_db/proxy_webidbcursor_impl.cc |
index a86a74e361977797b3f3276521a222af13f24c26..cf2260daeb847730ee2f3722623ab22d057922ce 100644 |
--- a/content/common/indexed_db/proxy_webidbcursor_impl.cc |
+++ b/content/common/indexed_db/proxy_webidbcursor_impl.cc |
@@ -61,6 +61,17 @@ void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value, |
content::SerializedScriptValue(value), callbacks, idb_cursor_id_, &ec); |
} |
+void RendererWebIDBCursorImpl::advance(unsigned long count, |
+ WebIDBCallbacks* callbacks_ptr, |
+ WebExceptionCode& ec) { |
+ IndexedDBDispatcher* dispatcher = |
+ IndexedDBDispatcher::ThreadSpecificInstance(); |
+ scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); |
+ ResetPrefetchCache(); |
+ dispatcher->RequestIDBCursorAdvance(count, callbacks.release(), |
+ idb_cursor_id_, &ec); |
+} |
+ |
void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key, |
WebIDBCallbacks* callbacks_ptr, |
WebExceptionCode& ec) { |