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

Unified Diff: content/common/indexed_db/indexed_db_dispatcher.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: 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/indexed_db_dispatcher.cc
diff --git a/content/common/indexed_db/indexed_db_dispatcher.cc b/content/common/indexed_db/indexed_db_dispatcher.cc
index b72da1fd8568164c860fc54004580f4f99dc84c9..b666afe444514f0127de73e60bfaa824b03cca11 100644
--- a/content/common/indexed_db/indexed_db_dispatcher.cc
+++ b/content/common/indexed_db/indexed_db_dispatcher.cc
@@ -400,46 +400,6 @@ void IndexedDBDispatcher::RequestIDBObjectStorePut(
WebIDBCallbacks* callbacks_ptr,
int32 object_store_ipc_id,
const WebIDBTransaction& transaction,
- const WebKit::WebVector<WebKit::WebString>& index_names,
- const WebKit::WebVector<WebKit::WebVector<WebKit::WebIDBKey> >& index_keys,
- WebExceptionCode* ec) {
- ResetCursorPrefetchCaches();
- scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
- if (!value.is_null() &&
- (value.data().length() * sizeof(char16)) > kMaxIDBValueSizeInBytes) {
- *ec = WebKit::WebIDBDatabaseExceptionDataError;
- return;
- }
- IndexedDBHostMsg_ObjectStorePutOld_Params params;
- params.thread_id = CurrentWorkerId();
- params.object_store_ipc_id = object_store_ipc_id;
- params.response_id = pending_callbacks_.Add(callbacks.release());
- params.serialized_value = value;
- params.key = key;
- params.put_mode = put_mode;
- params.transaction_id = TransactionId(transaction);
- params.index_names.resize(index_names.size());
- for (size_t i = 0; i < index_names.size(); ++i) {
- params.index_names[i] = index_names[i];
- }
-
- params.index_keys.resize(index_keys.size());
- for (size_t i = 0; i < index_keys.size(); ++i) {
- params.index_keys[i].resize(index_keys[i].size());
- for (size_t j = 0; j < index_keys[i].size(); ++j) {
- params.index_keys[i][j] = IndexedDBKey(index_keys[i][j]);
- }
- }
- Send(new IndexedDBHostMsg_ObjectStorePutOld(params));
-}
-
-void IndexedDBDispatcher::RequestIDBObjectStorePut(
- const SerializedScriptValue& value,
- const IndexedDBKey& key,
- WebKit::WebIDBObjectStore::PutMode put_mode,
- WebIDBCallbacks* callbacks_ptr,
- int32 object_store_ipc_id,
- const WebIDBTransaction& transaction,
const WebKit::WebVector<long long>& index_ids,
const WebKit::WebVector<WebKit::WebVector<
WebKit::WebIDBKey> >& index_keys) {

Powered by Google App Engine
This is Rietveld 408576698