Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: content/common/indexed_db/proxy_webidbobjectstore_impl.cc

Issue 10829339: Remove old chromium openCursor() glue (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/indexed_db/proxy_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698