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

Side by Side Diff: content/renderer/renderer_webidbobjectstore_impl.cc

Issue 8779003: Chromium side of IDBIndex.count() and IDBObjectStore.count() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Accomodate worker thread changes Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/renderer_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/renderer_webidbobjectstore_impl.h" 5 #include "content/renderer/renderer_webidbobjectstore_impl.h"
6 6
7 #include "content/common/indexed_db_messages.h" 7 #include "content/common/indexed_db_messages.h"
8 #include "content/public/common/serialized_script_value.h" 8 #include "content/public/common/serialized_script_value.h"
9 #include "content/renderer/indexed_db_dispatcher.h" 9 #include "content/renderer/indexed_db_dispatcher.h"
10 #include "content/renderer/render_thread_impl.h" 10 #include "content/renderer/render_thread_impl.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const WebIDBKeyRange& idb_key_range, 164 const WebIDBKeyRange& idb_key_range,
165 unsigned short direction, WebIDBCallbacks* callbacks, 165 unsigned short direction, WebIDBCallbacks* callbacks,
166 const WebIDBTransaction& transaction, 166 const WebIDBTransaction& transaction,
167 WebExceptionCode& ec) { 167 WebExceptionCode& ec) {
168 IndexedDBDispatcher* dispatcher = 168 IndexedDBDispatcher* dispatcher =
169 IndexedDBDispatcher::ThreadSpecificInstance(); 169 IndexedDBDispatcher::ThreadSpecificInstance();
170 dispatcher->RequestIDBObjectStoreOpenCursor( 170 dispatcher->RequestIDBObjectStoreOpenCursor(
171 idb_key_range, direction, callbacks, idb_object_store_id_, 171 idb_key_range, direction, callbacks, idb_object_store_id_,
172 transaction, &ec); 172 transaction, &ec);
173 } 173 }
174
175 void RendererWebIDBObjectStoreImpl::count(
176 const WebIDBKeyRange& idb_key_range,
177 WebIDBCallbacks* callbacks,
178 const WebIDBTransaction& transaction,
179 WebExceptionCode& ec) {
180 IndexedDBDispatcher* dispatcher =
181 IndexedDBDispatcher::ThreadSpecificInstance();
182 dispatcher->RequestIDBObjectStoreCount(
183 idb_key_range, callbacks, idb_object_store_id_,
184 transaction, &ec);
185 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698