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

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: Added unused indexId/keyOnly parameters to getAll. Created 5 years, 7 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
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cbc7bbb3b0bf96bb1d09b8b490a7ae80a096397c..81ce98a5822f672910b6cde077aae557c6f3923f 100644
--- a/content/child/indexed_db/webidbdatabase_impl.cc
+++ b/content/child/indexed_db/webidbdatabase_impl.cc
@@ -115,6 +115,25 @@ void WebIDBDatabaseImpl::get(long long transaction_id,
callbacks);
}
+void WebIDBDatabaseImpl::getAll(long long transaction_id,
+ long long object_store_id,
+ long long index_id,
+ const WebIDBKeyRange& key_range,
+ long long max_count,
+ bool key_only,
+ WebIDBCallbacks* callbacks) {
+ // TODO(cmumford): Remove DCHECK's for index_id/key_only once IDBIndex.getAll
+ // is implemented.
+ static const int64 kInvalidId = -1;
+ DCHECK_EQ(kInvalidId, index_id);
+ DCHECK(!key_only);
+ 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,
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698