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

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

Issue 10759012: Chromium side of plumbing for passing renderer-generated keys through IPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 85a5838d2bc996d34ff9718d14f3547db535c014..5bbd58bae69d9dddf6f290ea941f25af18ddef20 100644
--- a/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
+++ b/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
@@ -31,6 +31,7 @@ using WebKit::WebIDBKey;
using WebKit::WebIDBTransaction;
using WebKit::WebSerializedScriptValue;
using WebKit::WebString;
+using WebKit::WebVector;
RendererWebIDBObjectStoreImpl::RendererWebIDBObjectStoreImpl(
int32 idb_object_store_id)
@@ -67,9 +68,29 @@ void RendererWebIDBObjectStoreImpl::put(
WebExceptionCode& ec) {
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance();
+ WebVector<WebString> emptyIndexNames;
+ WebVector<WebVector<WebIDBKey> > emptyIndexKeys;
dispatcher->RequestIDBObjectStorePut(
SerializedScriptValue(value), content::IndexedDBKey(key),
jsbell 2012/07/10 17:46:54 Add a using content::IndexedDBKey; declaration nea
alecflett 2012/07/10 21:19:07 Done.
- put_mode, callbacks, idb_object_store_id_, transaction, &ec);
+ put_mode, callbacks, idb_object_store_id_, transaction,
+ emptyIndexNames, emptyIndexKeys, &ec);
+}
+
+void RendererWebIDBObjectStoreImpl::putWithIndexKeys(
+ const WebSerializedScriptValue& value,
+ const WebIDBKey& key,
+ PutMode put_mode,
+ WebIDBCallbacks* callbacks,
+ const WebIDBTransaction& transaction,
+ const WebVector<WebString>& indexNames,
+ const WebVector<WebVector<WebIDBKey> >& indexKeys,
+ WebExceptionCode& ec) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance();
+ dispatcher->RequestIDBObjectStorePut(
+ SerializedScriptValue(value), content::IndexedDBKey(key),
jsbell 2012/07/10 17:46:54 and here
alecflett 2012/07/10 21:19:07 Done.
+ put_mode, callbacks, idb_object_store_id_, transaction,
+ indexNames, indexKeys, &ec);
}
void RendererWebIDBObjectStoreImpl::deleteFunction(

Powered by Google App Engine
This is Rietveld 408576698