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 6a43a10f4229cc0361dcadde35d064a487605c75..6105331c31c3675bf0e446f2990ef36a9b2bf850 100644 |
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc |
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc |
@@ -27,11 +27,32 @@ void IndexedDBCallbacksBase::onError(const WebKit::WebIDBDatabaseError& error) { |
thread_id_, response_id_, error.code(), error.message())); |
} |
+void IndexedDBCallbacksBase::onBlocked(long long old_version) { |
+ dispatcher_host_->Send(new IndexedDBMsg_CallbacksIntBlocked( |
+ thread_id_, response_id_, old_version)); |
+} |
+ |
void IndexedDBCallbacksBase::onBlocked() { |
dispatcher_host_->Send(new IndexedDBMsg_CallbacksBlocked(thread_id_, |
response_id_)); |
} |
+template<> |
+void IndexedDBCallbacks<WebKit::WebIDBDatabase>::onUpgradeNeeded( |
+ long long old_version, |
+ WebKit::WebIDBTransaction* transaction, |
+ WebKit::WebIDBDatabase* database) { |
+ int32 transaction_id = dispatcher_host()->Add(transaction, thread_id(), |
+ origin_url_); |
+ int32 database_id = dispatcher_host()->Add(database, thread_id(), |
+ origin_url_); |
+ database_id_ = database_id; |
+ dispatcher_host()->Send( |
+ new IndexedDBMsg_CallbacksUpgradeNeeded( |
+ thread_id(), response_id(), transaction_id, database_id, |
+ old_version)); |
+} |
+ |
void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess( |
WebKit::WebIDBCursor* idb_object) { |
int32 object_id = dispatcher_host()->Add(idb_object); |