Chromium Code Reviews| 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/common/indexed_db/proxy_webidbtransaction_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" |
| 6 | 6 |
| 7 #include "content/common/indexed_db/indexed_db_messages.h" | 7 #include "content/common/indexed_db/indexed_db_messages.h" |
| 8 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 8 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
| 9 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" | 9 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" |
| 10 #include "content/common/child_thread.h" | 10 #include "content/common/child_thread.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 { | 44 { |
| 45 int object_store_id; | 45 int object_store_id; |
| 46 IndexedDBDispatcher::Send( | 46 IndexedDBDispatcher::Send( |
| 47 new IndexedDBHostMsg_TransactionObjectStore( | 47 new IndexedDBHostMsg_TransactionObjectStore( |
| 48 idb_transaction_id_, name, &object_store_id, &ec)); | 48 idb_transaction_id_, name, &object_store_id, &ec)); |
| 49 if (!object_store_id) | 49 if (!object_store_id) |
| 50 return NULL; | 50 return NULL; |
| 51 return new RendererWebIDBObjectStoreImpl(object_store_id); | 51 return new RendererWebIDBObjectStoreImpl(object_store_id); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void RendererWebIDBTransactionImpl::commit() | |
| 55 { | |
|
jam
2012/06/27 20:34:16
nit: brace bracket on prev line, same for the rest
jsbell
2012/06/27 20:40:35
Done, throughout this file and one other instance
| |
| 56 IndexedDBDispatcher::Send(new IndexedDBHostMsg_TransactionCommit( | |
| 57 idb_transaction_id_)); | |
| 58 } | |
| 59 | |
| 54 void RendererWebIDBTransactionImpl::abort() | 60 void RendererWebIDBTransactionImpl::abort() |
| 55 { | 61 { |
| 56 IndexedDBDispatcher::Send(new IndexedDBHostMsg_TransactionAbort( | 62 IndexedDBDispatcher::Send(new IndexedDBHostMsg_TransactionAbort( |
| 57 idb_transaction_id_)); | 63 idb_transaction_id_)); |
| 58 } | 64 } |
| 59 | 65 |
| 60 void RendererWebIDBTransactionImpl::didCompleteTaskEvents() | 66 void RendererWebIDBTransactionImpl::didCompleteTaskEvents() |
| 61 { | 67 { |
| 62 IndexedDBDispatcher::Send( | 68 IndexedDBDispatcher::Send( |
| 63 new IndexedDBHostMsg_TransactionDidCompleteTaskEvents( | 69 new IndexedDBHostMsg_TransactionDidCompleteTaskEvents( |
| 64 idb_transaction_id_)); | 70 idb_transaction_id_)); |
| 65 } | 71 } |
| 66 | 72 |
| 67 void RendererWebIDBTransactionImpl::setCallbacks( | 73 void RendererWebIDBTransactionImpl::setCallbacks( |
| 68 WebIDBTransactionCallbacks* callbacks) | 74 WebIDBTransactionCallbacks* callbacks) |
| 69 { | 75 { |
| 70 IndexedDBDispatcher* dispatcher = | 76 IndexedDBDispatcher* dispatcher = |
| 71 IndexedDBDispatcher::ThreadSpecificInstance(); | 77 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 72 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks, | 78 dispatcher->RegisterWebIDBTransactionCallbacks(callbacks, |
| 73 idb_transaction_id_); | 79 idb_transaction_id_); |
| 74 } | 80 } |
| OLD | NEW |