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_webidbobjectstore_impl.h" | 5 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "content/common/indexed_db/indexed_db_messages.h" | 9 #include "content/common/indexed_db/indexed_db_messages.h" |
10 #include "content/public/common/serialized_script_value.h" | 10 #include "content/public/common/serialized_script_value.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 WebKit::WebIDBTransaction::TaskType task_type, | 194 WebKit::WebIDBTransaction::TaskType task_type, |
195 const WebIDBTransaction& transaction, | 195 const WebIDBTransaction& transaction, |
196 WebExceptionCode& ec) { | 196 WebExceptionCode& ec) { |
197 IndexedDBDispatcher* dispatcher = | 197 IndexedDBDispatcher* dispatcher = |
198 IndexedDBDispatcher::ThreadSpecificInstance(); | 198 IndexedDBDispatcher::ThreadSpecificInstance(); |
199 dispatcher->RequestIDBObjectStoreOpenCursor( | 199 dispatcher->RequestIDBObjectStoreOpenCursor( |
200 idb_key_range, direction, callbacks, idb_object_store_id_, | 200 idb_key_range, direction, callbacks, idb_object_store_id_, |
201 task_type, transaction, &ec); | 201 task_type, transaction, &ec); |
202 } | 202 } |
203 | 203 |
204 void RendererWebIDBObjectStoreImpl::openCursor( | |
205 const WebIDBKeyRange& idb_key_range, | |
206 unsigned short direction, WebIDBCallbacks* callbacks, | |
207 const WebIDBTransaction& transaction, | |
208 WebExceptionCode& ec) { | |
209 IndexedDBDispatcher* dispatcher = | |
210 IndexedDBDispatcher::ThreadSpecificInstance(); | |
211 dispatcher->RequestIDBObjectStoreOpenCursor( | |
212 idb_key_range, static_cast<WebKit::WebIDBCursor::Direction>(direction), | |
213 callbacks, idb_object_store_id_, | |
214 WebKit::WebIDBTransaction::NormalTask, transaction, &ec); | |
215 } | |
216 | |
217 void RendererWebIDBObjectStoreImpl::count( | 204 void RendererWebIDBObjectStoreImpl::count( |
218 const WebIDBKeyRange& idb_key_range, | 205 const WebIDBKeyRange& idb_key_range, |
219 WebIDBCallbacks* callbacks, | 206 WebIDBCallbacks* callbacks, |
220 const WebIDBTransaction& transaction, | 207 const WebIDBTransaction& transaction, |
221 WebExceptionCode& ec) { | 208 WebExceptionCode& ec) { |
222 IndexedDBDispatcher* dispatcher = | 209 IndexedDBDispatcher* dispatcher = |
223 IndexedDBDispatcher::ThreadSpecificInstance(); | 210 IndexedDBDispatcher::ThreadSpecificInstance(); |
224 dispatcher->RequestIDBObjectStoreCount( | 211 dispatcher->RequestIDBObjectStoreCount( |
225 idb_key_range, callbacks, idb_object_store_id_, | 212 idb_key_range, callbacks, idb_object_store_id_, |
226 transaction, &ec); | 213 transaction, &ec); |
227 } | 214 } |
OLD | NEW |