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

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

Issue 11114022: IndexedDB: Plumbing to allow cause of transaction abort to be passed to script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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_transaction_callbacks.cc
diff --git a/content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc b/content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc
index 937dae466a9a0a3101e13f1492e4e8aeb9c7cba7..cec2e37458ee86f4186d5c04876a152626b156b8 100644
--- a/content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc
@@ -19,9 +19,18 @@ IndexedDBTransactionCallbacks::IndexedDBTransactionCallbacks(
IndexedDBTransactionCallbacks::~IndexedDBTransactionCallbacks() {
}
+// TODO(jsbell): Remove once WK99097 has landed.
void IndexedDBTransactionCallbacks::onAbort() {
dispatcher_host_->Send(
- new IndexedDBMsg_TransactionCallbacksAbort(thread_id_, transaction_id_));
+ new IndexedDBMsg_TransactionCallbacksAbortLegacy(
+ thread_id_, transaction_id_));
+}
+
+void IndexedDBTransactionCallbacks::onAbort(
+ const WebKit::WebIDBDatabaseError& error) {
+ dispatcher_host_->Send(
+ new IndexedDBMsg_TransactionCallbacksAbort(
+ thread_id_, transaction_id_, error.code(), error.message()));
}
void IndexedDBTransactionCallbacks::onComplete() {

Powered by Google App Engine
This is Rietveld 408576698