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..3482b29476259a28a6181990202a77b5f42f871e 100644 |
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc |
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc |
@@ -41,6 +41,20 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess( |
response_id(), content::SerializedScriptValue(value))); |
} |
+void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessCursorContinue() { |
michaeln
2011/10/30 21:54:06
Would it make sense to pass the WebIDBCursor as a
hans
2011/10/31 16:11:52
Can't change the function's signature since it's a
|
+ int32 cursor_id = dispatcher_host()->GetAndConsumeCursorIdForPendingContinue( |
+ response_id()); |
+ WebKit::WebIDBCursor* idb_cursor = dispatcher_host()->getCursorFromId( |
+ cursor_id); |
+ |
michaeln
2011/10/30 21:54:06
What ensures that the idb_cursor isn't deleted bet
hans
2011/10/31 16:11:52
It's not synchronous.
It's actually the idb_curso
michaeln
2011/10/31 18:58:25
That comment isn't so reassuring since there are n
|
+ dispatcher_host()->Send( |
+ new IndexedDBMsg_CallbacksSuccessCursorContinue( |
+ response_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( |