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

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

Issue 8400061: IndexedDB: Recycle cursor objects when calling continue(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/browser/in_process_webkit/indexed_db_dispatcher_host.cc
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index 747a856555bbf5e6b100dd0c10455e01af9847ac..a3da985899edab47df34e6f4cb7f454378c7cd08 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -951,6 +951,8 @@ void IndexedDBDispatcherHost::CursorDispatcherHost::OnContinue(
if (!idb_cursor)
return;
+ parent_->pending_cursor_continues_[response_id] = cursor_id;
michaeln 2011/10/30 21:54:06 What if the continue call does not complete succes
michaeln 2011/10/31 15:08:18 Looks like there are two ways in which continue do
hans 2011/10/31 16:11:52 Right, passing the cursor_id into the callbacks ob
+
*ec = 0;
idb_cursor->continueFunction(
key, new IndexedDBCallbacks<WebIDBCursor>(parent_, response_id), *ec);

Powered by Google App Engine
This is Rietveld 408576698