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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/renderer_webidbobjectstore_impl.cc
diff --git a/content/renderer/renderer_webidbobjectstore_impl.cc b/content/renderer/renderer_webidbobjectstore_impl.cc
index 94a0a486afee6ee8ebafbf3bfdd3f22250dbf0ff..fccc3bf51409d432ed7b28a3d1185d440a57032c 100644
--- a/content/renderer/renderer_webidbobjectstore_impl.cc
+++ b/content/renderer/renderer_webidbobjectstore_impl.cc
@@ -171,3 +171,15 @@ void RendererWebIDBObjectStoreImpl::openCursor(
idb_key_range, direction, callbacks, idb_object_store_id_,
transaction, &ec);
}
+
+void RendererWebIDBObjectStoreImpl::count(
+ const WebIDBKeyRange& idb_key_range,
+ WebIDBCallbacks* callbacks,
+ const WebIDBTransaction& transaction,
+ WebExceptionCode& ec) {
+ IndexedDBDispatcher* dispatcher =
+ RenderThreadImpl::current()->indexed_db_dispatcher();
+ dispatcher->RequestIDBObjectStoreCount(
+ idb_key_range, callbacks, idb_object_store_id_,
+ transaction, &ec);
+}

Powered by Google App Engine
This is Rietveld 408576698