| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h" | 5 #include "content/browser/in_process_webkit/indexed_db_database_callbacks.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_vector.h" |
| 7 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 8 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 8 #include "content/common/indexed_db/indexed_db_messages.h" | 9 #include "content/common/indexed_db/indexed_db_messages.h" |
| 9 | 10 |
| 10 namespace content { | 11 namespace content { |
| 11 | 12 |
| 12 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( | 13 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( |
| 13 IndexedDBDispatcherHost* dispatcher_host, | 14 IndexedDBDispatcherHost* dispatcher_host, |
| 14 int ipc_thread_id, | 15 int ipc_thread_id, |
| 15 int ipc_database_callbacks_id) | 16 int ipc_database_callbacks_id) |
| 16 : dispatcher_host_(dispatcher_host), | 17 : dispatcher_host_(dispatcher_host), |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 52 |
| 52 void IndexedDBDatabaseCallbacks::onComplete(long long host_transaction_id) { | 53 void IndexedDBDatabaseCallbacks::onComplete(long long host_transaction_id) { |
| 53 dispatcher_host_->FinishTransaction(host_transaction_id, true); | 54 dispatcher_host_->FinishTransaction(host_transaction_id, true); |
| 54 dispatcher_host_->Send( | 55 dispatcher_host_->Send( |
| 55 new IndexedDBMsg_DatabaseCallbacksComplete( | 56 new IndexedDBMsg_DatabaseCallbacksComplete( |
| 56 ipc_thread_id_, ipc_database_callbacks_id_, | 57 ipc_thread_id_, ipc_database_callbacks_id_, |
| 57 dispatcher_host_->RendererTransactionId(host_transaction_id))); | 58 dispatcher_host_->RendererTransactionId(host_transaction_id))); |
| 58 } | 59 } |
| 59 | 60 |
| 60 } // namespace content | 61 } // namespace content |
| OLD | NEW |