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

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

Issue 10179003: IndexedDB: remove proxy and IPC code for the IDBKey-based get/getKey. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated formatting Created 8 years, 8 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
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ccb123fb8147b5f2d753b3c256d7369652938de4..b725a7d7d400d3a7e9341bd69f2628320bd9c826 100644
--- a/content/common/indexed_db/indexed_db_dispatcher.cc
+++ b/content/common/indexed_db/indexed_db_dispatcher.cc
@@ -354,22 +354,6 @@ void IndexedDBDispatcher::RequestIDBIndexCount(
}
void IndexedDBDispatcher::RequestIDBIndexGetObject(
- const IndexedDBKey& key,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_index_id,
- const WebIDBTransaction& transaction,
- WebExceptionCode* ec) {
- ResetCursorPrefetchCaches();
- scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
- int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(new IndexedDBHostMsg_IndexGetObject(idb_index_id, CurrentWorkerId(),
- response_id, key,
- TransactionId(transaction), ec));
- if (*ec)
- pending_callbacks_.Remove(response_id);
-}
-
-void IndexedDBDispatcher::RequestIDBIndexGetObjectByRange(
const IndexedDBKeyRange& key_range,
WebIDBCallbacks* callbacks_ptr,
int32 idb_index_id,
@@ -378,7 +362,7 @@ void IndexedDBDispatcher::RequestIDBIndexGetObjectByRange(
ResetCursorPrefetchCaches();
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(new IndexedDBHostMsg_IndexGetObjectByRange(
+ Send(new IndexedDBHostMsg_IndexGetObject(
idb_index_id, CurrentWorkerId(),
response_id, key_range,
TransactionId(transaction), ec));
@@ -387,22 +371,6 @@ void IndexedDBDispatcher::RequestIDBIndexGetObjectByRange(
}
void IndexedDBDispatcher::RequestIDBIndexGetKey(
- const IndexedDBKey& key,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_index_id,
- const WebIDBTransaction& transaction,
- WebExceptionCode* ec) {
- ResetCursorPrefetchCaches();
- scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
- int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(new IndexedDBHostMsg_IndexGetKey(
- idb_index_id, CurrentWorkerId(), response_id, key,
- TransactionId(transaction), ec));
- if (*ec)
- pending_callbacks_.Remove(response_id);
-}
-
-void IndexedDBDispatcher::RequestIDBIndexGetKeyByRange(
const IndexedDBKeyRange& key_range,
WebIDBCallbacks* callbacks_ptr,
int32 idb_index_id,
@@ -411,7 +379,7 @@ void IndexedDBDispatcher::RequestIDBIndexGetKeyByRange(
ResetCursorPrefetchCaches();
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(new IndexedDBHostMsg_IndexGetKeyByRange(
+ Send(new IndexedDBHostMsg_IndexGetKey(
idb_index_id, CurrentWorkerId(), response_id, key_range,
TransactionId(transaction), ec));
if (*ec)
@@ -419,23 +387,6 @@ void IndexedDBDispatcher::RequestIDBIndexGetKeyByRange(
}
void IndexedDBDispatcher::RequestIDBObjectStoreGet(
- const IndexedDBKey& key,
- WebIDBCallbacks* callbacks_ptr,
- int32 idb_object_store_id,
- const WebIDBTransaction& transaction,
- WebExceptionCode* ec) {
- ResetCursorPrefetchCaches();
- scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
-
- int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(new IndexedDBHostMsg_ObjectStoreGet(
- idb_object_store_id, CurrentWorkerId(), response_id,
- key, TransactionId(transaction), ec));
- if (*ec)
- pending_callbacks_.Remove(response_id);
-}
-
-void IndexedDBDispatcher::RequestIDBObjectStoreGetByRange(
const IndexedDBKeyRange& key_range,
WebIDBCallbacks* callbacks_ptr,
int32 idb_object_store_id,
@@ -445,7 +396,7 @@ void IndexedDBDispatcher::RequestIDBObjectStoreGetByRange(
scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr);
int32 response_id = pending_callbacks_.Add(callbacks.release());
- Send(new IndexedDBHostMsg_ObjectStoreGetByRange(
+ Send(new IndexedDBHostMsg_ObjectStoreGet(
idb_object_store_id, CurrentWorkerId(), response_id,
key_range, TransactionId(transaction), ec));
if (*ec)
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698