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

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

Issue 11312178: Remove legacy IDB backend IPC glue for string-based references. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add crbug link Created 8 years, 1 month 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 a21e99fab1964bebe8c2e92c4eea6adffaf32cd7..1c64006d768c96ccceb11abfa78f0167bf2a0aa2 100644
--- a/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
+++ b/content/common/indexed_db/proxy_webidbobjectstore_impl.cc
@@ -62,23 +62,6 @@ void RendererWebIDBObjectStoreImpl::get(
object_store_ipc_id_, transaction, &ec);
}
-void RendererWebIDBObjectStoreImpl::putWithIndexKeys(
- const WebSerializedScriptValue& value,
- const WebIDBKey& key,
- PutMode put_mode,
- WebIDBCallbacks* callbacks,
- const WebIDBTransaction& transaction,
- const WebVector<WebString>& index_names,
- const WebVector<WebVector<WebIDBKey> >& index_keys,
- WebExceptionCode& ec) {
- IndexedDBDispatcher* dispatcher =
- IndexedDBDispatcher::ThreadSpecificInstance();
- dispatcher->RequestIDBObjectStorePut(
- SerializedScriptValue(value), IndexedDBKey(key),
- put_mode, callbacks, object_store_ipc_id_, transaction,
- index_names, index_keys, &ec);
-}
-
void RendererWebIDBObjectStoreImpl::put(
const WebSerializedScriptValue& value,
const WebIDBKey& key,
@@ -97,32 +80,6 @@ void RendererWebIDBObjectStoreImpl::put(
void RendererWebIDBObjectStoreImpl::setIndexKeys(
const WebKit::WebIDBKey& primaryKey,
- const WebKit::WebVector<WebKit::WebString>& index_names,
- const WebKit::WebVector<WebIndexKeys>& index_keys,
- const WebKit::WebIDBTransaction& transaction) {
- std::vector<string16> index_names_list(index_names.size());
- for (size_t i = 0; i < index_names.size(); ++i) {
- index_names_list[i] = index_names[i];
- }
-
- std::vector<std::vector<content::IndexedDBKey> >
- index_keys_list(index_keys.size());
- for (size_t i = 0; i < index_keys.size(); ++i) {
- index_keys_list[i].resize(index_keys[i].size());
- for (size_t j = 0; j < index_keys[i].size(); ++j) {
- index_keys_list[i][j] = content::IndexedDBKey(index_keys[i][j]);
- }
- }
- IndexedDBDispatcher::Send(new IndexedDBHostMsg_ObjectStoreSetIndexKeysOld(
- object_store_ipc_id_,
- IndexedDBKey(primaryKey),
- index_names_list,
- index_keys_list,
- IndexedDBDispatcher::TransactionId(transaction)));
-}
-
-void RendererWebIDBObjectStoreImpl::setIndexKeys(
- const WebKit::WebIDBKey& primaryKey,
const WebKit::WebVector<long long>& index_ids,
const WebKit::WebVector<WebIndexKeys>& index_keys,
const WebKit::WebIDBTransaction& transaction) {
@@ -148,20 +105,6 @@ void RendererWebIDBObjectStoreImpl::setIndexKeys(
}
void RendererWebIDBObjectStoreImpl::setIndexesReady(
- const WebKit::WebVector<WebKit::WebString>& index_names,
- const WebKit::WebIDBTransaction& transaction) {
-
- std::vector<string16> index_name_list(index_names.size());
- for (size_t i = 0; i < index_names.size(); ++i) {
- index_name_list[i] = index_names[i];
- }
-
- IndexedDBDispatcher::Send(new IndexedDBHostMsg_ObjectStoreSetIndexesReadyOld(
- object_store_ipc_id_,
- index_name_list, IndexedDBDispatcher::TransactionId(transaction)));
-}
-
-void RendererWebIDBObjectStoreImpl::setIndexesReady(
const WebKit::WebVector<long long>& index_ids,
const WebKit::WebIDBTransaction& transaction) {
@@ -223,18 +166,6 @@ WebIDBIndex* RendererWebIDBObjectStoreImpl::createIndex(
}
WebIDBIndex* RendererWebIDBObjectStoreImpl::index(
- const WebString& name,
- WebExceptionCode& ec) {
- int32 idb_index_id;
- IndexedDBDispatcher::Send(
- new IndexedDBHostMsg_ObjectStoreIndexOld(object_store_ipc_id_, name,
- &idb_index_id, &ec));
- if (!idb_index_id)
- return NULL;
- return new RendererWebIDBIndexImpl(idb_index_id);
-}
-
-WebIDBIndex* RendererWebIDBObjectStoreImpl::index(
const long long index_id) {
int32 idb_index_id;
IndexedDBDispatcher::Send(
@@ -246,16 +177,6 @@ WebIDBIndex* RendererWebIDBObjectStoreImpl::index(
}
void RendererWebIDBObjectStoreImpl::deleteIndex(
- const WebString& name,
- const WebIDBTransaction& transaction,
- WebExceptionCode& ec) {
- IndexedDBDispatcher::Send(
- new IndexedDBHostMsg_ObjectStoreDeleteIndexOld(
- object_store_ipc_id_, name,
- IndexedDBDispatcher::TransactionId(transaction), &ec));
-}
-
-void RendererWebIDBObjectStoreImpl::deleteIndex(
long long index_id,
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
« no previous file with comments | « content/common/indexed_db/proxy_webidbobjectstore_impl.h ('k') | content/common/indexed_db/proxy_webidbtransaction_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698