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

Unified Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc

Issue 16337010: Remove IDBCursorBackendInterface::deleteFunction (part 2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/browser/in_process_webkit/indexed_db_dispatcher_host.cc
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index 6d640c5bf00aa617c5a96e95289b455a0a7da97b..877ef6b890a5ad38fcdfab088f7a34aa9971688d 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -49,7 +49,8 @@ using WebKit::WebVector;
namespace content {
namespace {
-template <class T> void DeleteOnWebKitThread(T* obj) {
+template <class T>
+void DeleteOnWebKitThread(T* obj) {
if (!BrowserThread::DeleteSoon(
BrowserThread::WEBKIT_DEPRECATED, FROM_HERE, obj))
delete obj;
@@ -741,7 +742,6 @@ bool IndexedDBDispatcherHost::CursorDispatcherHost::OnMessageReceived(
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorContinue, OnContinue)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorPrefetch, OnPrefetch)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorPrefetchReset, OnPrefetchReset)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDelete, OnDelete)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDestroyed, OnDestroyed)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -817,20 +817,6 @@ void IndexedDBDispatcherHost::CursorDispatcherHost::OnPrefetchReset(
idb_cursor->prefetchReset(used_prefetches, unused_prefetches);
}
-void IndexedDBDispatcherHost::CursorDispatcherHost::OnDelete(
- int32 ipc_cursor_id,
- int32 ipc_thread_id,
- int32 ipc_callbacks_id) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED));
- WebIDBCursor* idb_cursor =
- parent_->GetOrTerminateProcess(&map_, ipc_cursor_id);
- if (!idb_cursor)
- return;
-
- idb_cursor->deleteFunction(new IndexedDBCallbacks<WebData>(
- parent_, ipc_thread_id, ipc_callbacks_id));
-}
-
void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
int32 ipc_object_id) {
parent_->DestroyObject(&map_, ipc_object_id);

Powered by Google App Engine
This is Rietveld 408576698