| 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 "base/memory/scoped_vector.h" |
| 8 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 8 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 9 #include "content/common/indexed_db/indexed_db_messages.h" | 9 #include "content/common/indexed_db/indexed_db_messages.h" |
| 10 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( | 14 IndexedDBDatabaseCallbacks::IndexedDBDatabaseCallbacks( |
| 14 IndexedDBDispatcherHost* dispatcher_host, | 15 IndexedDBDispatcherHost* dispatcher_host, |
| 15 int ipc_thread_id, | 16 int ipc_thread_id, |
| 16 int ipc_database_callbacks_id) | 17 int ipc_database_callbacks_id) |
| 17 : dispatcher_host_(dispatcher_host), | 18 : dispatcher_host_(dispatcher_host), |
| 18 ipc_thread_id_(ipc_thread_id), | 19 ipc_thread_id_(ipc_thread_id), |
| 19 ipc_database_callbacks_id_(ipc_database_callbacks_id) {} | 20 ipc_database_callbacks_id_(ipc_database_callbacks_id) {} |
| (...skipping 25 matching lines...) Expand all Loading... |
| 45 | 46 |
| 46 void IndexedDBDatabaseCallbacks::onComplete(long long host_transaction_id) { | 47 void IndexedDBDatabaseCallbacks::onComplete(long long host_transaction_id) { |
| 47 dispatcher_host_->FinishTransaction(host_transaction_id, true); | 48 dispatcher_host_->FinishTransaction(host_transaction_id, true); |
| 48 dispatcher_host_->Send(new IndexedDBMsg_DatabaseCallbacksComplete( | 49 dispatcher_host_->Send(new IndexedDBMsg_DatabaseCallbacksComplete( |
| 49 ipc_thread_id_, | 50 ipc_thread_id_, |
| 50 ipc_database_callbacks_id_, | 51 ipc_database_callbacks_id_, |
| 51 dispatcher_host_->RendererTransactionId(host_transaction_id))); | 52 dispatcher_host_->RendererTransactionId(host_transaction_id))); |
| 52 } | 53 } |
| 53 | 54 |
| 54 } // namespace content | 55 } // namespace content |
| OLD | NEW |