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

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

Issue 10830228: Chromium glue for Preemptive cursors and passing keys from renderer to browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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_webidbobjectstore_impl.cc
diff --git a/content/common/indexed_db/proxy_webidbobjectstore_impl.cc b/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
index 47da0df6f7e94373aff6440d1f0632d3728d2298..bc1e37cda6dd61bf965b0dd8309374d17f65018e 100644
--- a/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
+++ b/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
@@ -78,6 +78,28 @@ void RendererWebIDBObjectStoreImpl::putWithIndexKeys(
indexNames, indexKeys, &ec);
}
+void RendererWebIDBObjectStoreImpl::setIndexKeys(
+ const WebKit::WebIDBKey& primaryKey,
+ const WebKit::WebVector<WebKit::WebString>& indexNames,
+ const WebKit::WebVector<WebIndexKeys>& indexKeys,
+ const WebKit::WebIDBTransaction& transaction) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBObjectStoreSetIndexKeys(
+ idb_object_store_id_, IndexedDBKey(primaryKey), indexNames, indexKeys,
+ transaction);
+}
+
+void RendererWebIDBObjectStoreImpl::setIndexesReady(
+ const WebKit::WebVector<WebKit::WebString>& indexNames,
+ const WebKit::WebIDBTransaction& transaction) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBObjectStoreSetIndexesReady(
+ idb_object_store_id_, indexNames, transaction);
+}
+
+
void RendererWebIDBObjectStoreImpl::deleteFunction(
const WebIDBKeyRange& key_range,
WebIDBCallbacks* callbacks,
@@ -147,14 +169,28 @@ void RendererWebIDBObjectStoreImpl::deleteIndex(
void RendererWebIDBObjectStoreImpl::openCursor(
const WebIDBKeyRange& idb_key_range,
- unsigned short direction, WebIDBCallbacks* callbacks,
+ WebKit::WebIDBCursor::Direction direction, WebIDBCallbacks* callbacks,
+ WebKit::WebIDBTransaction::TaskType task_type,
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance();
dispatcher->RequestIDBObjectStoreOpenCursor(
idb_key_range, direction, callbacks, idb_object_store_id_,
- transaction, &ec);
+ task_type, transaction, &ec);
+}
+
+void RendererWebIDBObjectStoreImpl::openCursor(
+ const WebIDBKeyRange& idb_key_range,
+ unsigned short direction, WebIDBCallbacks* callbacks,
+ const WebIDBTransaction& transaction,
+ WebExceptionCode& ec) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBObjectStoreOpenCursor(
+ idb_key_range, static_cast<WebKit::WebIDBCursor::Direction>(direction),
+ callbacks, idb_object_store_id_,
+ WebKit::WebIDBTransaction::NormalTask, transaction, &ec);
}
void RendererWebIDBObjectStoreImpl::count(

Powered by Google App Engine
This is Rietveld 408576698