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

Unified Diff: content/renderer/indexed_db/renderer_webidbobjectstore_impl.cc

Issue 9389025: IndexedDB: Implement IPC plumbing for IDBObjectStore.delete(IDBKeyRange) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/renderer/indexed_db/renderer_webidbobjectstore_impl.cc
diff --git a/content/renderer/indexed_db/renderer_webidbobjectstore_impl.cc b/content/renderer/indexed_db/renderer_webidbobjectstore_impl.cc
index 9e1a002bc4a6ea90eaa250c2ece000ce317853ee..0688fe4c2a2d0bb9e06687ae8455185519b60bb9 100644
--- a/content/renderer/indexed_db/renderer_webidbobjectstore_impl.cc
+++ b/content/renderer/indexed_db/renderer_webidbobjectstore_impl.cc
@@ -105,6 +105,18 @@ void RendererWebIDBObjectStoreImpl::deleteFunction(
IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec);
}
+void RendererWebIDBObjectStoreImpl::deleteFunction(
+ const WebIDBKeyRange& key_range,
+ WebIDBCallbacks* callbacks,
+ const WebIDBTransaction& transaction,
+ WebExceptionCode& ec) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBObjectStoreDelete(
+ IndexedDBKeyRange(key_range), callbacks, idb_object_store_id_,
+ transaction, &ec);
+}
+
void RendererWebIDBObjectStoreImpl::clear(
WebIDBCallbacks* callbacks,
const WebIDBTransaction& transaction,

Powered by Google App Engine
This is Rietveld 408576698