Chromium Code Reviews| 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..569d56c117718ea1eee98468e3439ab8c9d8c1ad 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() { |
| + DCHECK(cursor_id_ != -1); |
| + WebKit::WebIDBCursor* idb_cursor = dispatcher_host()->getCursorFromId( |
| + cursor_id_); |
| + |
|
michaeln
2011/10/31 18:58:25
should we be more defensive here...
DCHECK(idb_cu
hans
2011/11/01 14:57:45
Yes, let's do this.
|
| + 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( |