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

Unified Diff: content/child/indexed_db/webidbdatabase_impl.cc

Issue 1074493002: IndexedDB: Added IDBObjectStore.getAll() implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/child/indexed_db/webidbdatabase_impl.cc
diff --git a/content/child/indexed_db/webidbdatabase_impl.cc b/content/child/indexed_db/webidbdatabase_impl.cc
index 55d69c1e65a4b4425e0cb47033c2eca969a2cd5f..3d7c995d2d7da8e6a67c4b0600299a5dfda109ad 100644
--- a/content/child/indexed_db/webidbdatabase_impl.cc
+++ b/content/child/indexed_db/webidbdatabase_impl.cc
@@ -115,6 +115,18 @@ void WebIDBDatabaseImpl::get(long long transaction_id,
callbacks);
}
+void WebIDBDatabaseImpl::getAll(long long transaction_id,
+ long long object_store_id,
+ const WebIDBKeyRange& key_range,
+ long long max_count,
+ WebIDBCallbacks* callbacks) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
+ dispatcher->RequestIDBDatabaseGetAll(
+ ipc_database_id_, transaction_id, object_store_id,
+ IndexedDBKeyRangeBuilder::Build(key_range), max_count, callbacks);
+}
+
void WebIDBDatabaseImpl::put(long long transaction_id,
long long object_store_id,
const blink::WebData& value,

Powered by Google App Engine
This is Rietveld 408576698