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

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

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OVERRIDE from dtor Created 9 years 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 7d5bdc521211f09b79a3a7507fd0492e5853b8a3..000dc8101890d0a513fe2c612d5732ccab34d21d 100644
--- a/content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc
@@ -9,8 +9,10 @@
IndexedDBTransactionCallbacks::IndexedDBTransactionCallbacks(
IndexedDBDispatcherHost* dispatcher_host,
+ int thread_id,
int transaction_id)
: dispatcher_host_(dispatcher_host),
+ thread_id_(thread_id),
transaction_id_(transaction_id) {
}
@@ -19,11 +21,12 @@ IndexedDBTransactionCallbacks::~IndexedDBTransactionCallbacks() {
void IndexedDBTransactionCallbacks::onAbort() {
dispatcher_host_->Send(
- new IndexedDBMsg_TransactionCallbacksAbort(transaction_id_));
+ new IndexedDBMsg_TransactionCallbacksAbort(thread_id_, transaction_id_));
}
void IndexedDBTransactionCallbacks::onComplete() {
dispatcher_host_->TransactionComplete(transaction_id_);
dispatcher_host_->Send(
- new IndexedDBMsg_TransactionCallbacksComplete(transaction_id_));
+ new IndexedDBMsg_TransactionCallbacksComplete(thread_id_,
+ transaction_id_));
}
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_transaction_callbacks.h ('k') | content/common/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698