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

Unified Diff: content/common/indexed_db/proxy_webidbindex_impl.cc

Issue 10083053: IndexedDB: Support get/getKey(keyRange) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address nits Created 8 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/common/indexed_db/proxy_webidbindex_impl.cc
diff --git a/content/common/indexed_db/proxy_webidbindex_impl.cc b/content/common/indexed_db/proxy_webidbindex_impl.cc
index af9034d22a377d32e17650713b722adade1a2ba8..9171e27b48b7cbb02f304f9f6ccc5573abc55554 100644
--- a/content/common/indexed_db/proxy_webidbindex_impl.cc
+++ b/content/common/indexed_db/proxy_webidbindex_impl.cc
@@ -110,6 +110,17 @@ void RendererWebIDBIndexImpl::getObject(
IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
}
+void RendererWebIDBIndexImpl::getObject(
+ const WebKit::WebIDBKeyRange& key_range,
+ WebKit::WebIDBCallbacks* callbacks,
+ const WebKit::WebIDBTransaction& transaction,
+ WebExceptionCode& ec) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBIndexGetObjectByRange(
+ IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec);
+}
+
void RendererWebIDBIndexImpl::getKey(
const WebKit::WebIDBKey& key,
WebKit::WebIDBCallbacks* callbacks,
@@ -120,3 +131,14 @@ void RendererWebIDBIndexImpl::getKey(
dispatcher->RequestIDBIndexGetKey(
IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec);
}
+
+void RendererWebIDBIndexImpl::getKey(
+ const WebKit::WebIDBKeyRange& key_range,
+ WebKit::WebIDBCallbacks* callbacks,
+ const WebKit::WebIDBTransaction& transaction,
+ WebExceptionCode& ec) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBIndexGetKeyByRange(
+ IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec);
+}
« no previous file with comments | « content/common/indexed_db/proxy_webidbindex_impl.h ('k') | content/common/indexed_db/proxy_webidbobjectstore_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698