Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1065)

Unified Diff: content/common/indexed_db/proxy_webidbcursor_impl.cc

Issue 10197001: IndexedDB: chromium side of IDBCursor.advance(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Additional key/value/primarykey for the current cursor Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698