Chromium Code Reviews| 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( |