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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.cc

Issue 8400061: IndexedDB: Recycle cursor objects when calling continue(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More style nits fixed Created 9 years, 1 month 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/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 01b4b637e69280e9e00f242927f7a8b966002e52..70e79ef3edf7283d755b34084e99a0055a3478cb 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
@@ -41,6 +41,24 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
response_id(), content::SerializedScriptValue(value)));
}
+void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessWithContinuation() {
+ DCHECK(cursor_id_ != -1);
+ WebKit::WebIDBCursor* idb_cursor = dispatcher_host()->GetCursorFromId(
+ cursor_id_);
+
+ DCHECK(idb_cursor);
+ if (!idb_cursor)
+ return;
+
+ dispatcher_host()->Send(
+ new IndexedDBMsg_CallbacksSuccessCursorContinue(
+ response_id(),
+ cursor_id_,
+ IndexedDBKey(idb_cursor->key()),
+ IndexedDBKey(idb_cursor->primaryKey()),
+ content::SerializedScriptValue(idb_cursor->value())));
+}
+
void IndexedDBCallbacks<WebKit::WebIDBKey>::onSuccess(
const WebKit::WebIDBKey& value) {
dispatcher_host()->Send(

Powered by Google App Engine
This is Rietveld 408576698