| 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_webidbdatabase_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbdatabase_impl.h" |
| 6 | 6 |
| 7 #include "content/common/child_thread.h" | 7 #include "content/common/child_thread.h" |
| 8 #include "content/common/indexed_db/indexed_db_messages.h" | 8 #include "content/common/indexed_db/indexed_db_messages.h" |
| 9 #include "content/common/indexed_db/indexed_db_dispatcher.h" | 9 #include "content/common/indexed_db/indexed_db_dispatcher.h" |
| 10 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" | 10 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 if (!transaction_id) | 141 if (!transaction_id) |
| 142 return NULL; | 142 return NULL; |
| 143 return new RendererWebIDBTransactionImpl(transaction_id); | 143 return new RendererWebIDBTransactionImpl(transaction_id); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void RendererWebIDBDatabaseImpl::close() { | 146 void RendererWebIDBDatabaseImpl::close() { |
| 147 IndexedDBDispatcher* dispatcher = | 147 IndexedDBDispatcher* dispatcher = |
| 148 IndexedDBDispatcher::ThreadSpecificInstance(); | 148 IndexedDBDispatcher::ThreadSpecificInstance(); |
| 149 dispatcher->RequestIDBDatabaseClose(idb_database_id_); | 149 dispatcher->RequestIDBDatabaseClose(idb_database_id_); |
| 150 } | 150 } |
| 151 | |
| 152 // TODO(jsbell): Remove once WK90411 has rolled. | |
| 153 void RendererWebIDBDatabaseImpl::open(WebIDBDatabaseCallbacks* callbacks) { | |
| 154 IndexedDBDispatcher* dispatcher = | |
| 155 IndexedDBDispatcher::ThreadSpecificInstance(); | |
| 156 DCHECK(dispatcher); | |
| 157 dispatcher->RequestIDBDatabaseOpen(callbacks, idb_database_id_); | |
| 158 } | |
| OLD | NEW |