Index: content/browser/indexed_db/indexed_db_dispatcher_host.cc |
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
index 03f7a6e63f41af1fe114e096ba43427ed2f4be60..63497d497040820160becdfd9e5584163ad7eaa5 100644 |
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
@@ -133,7 +133,6 @@ bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message) { |
IPC_BEGIN_MESSAGE_MAP(IndexedDBDispatcherHost, message) |
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_FactoryGetDatabaseNames, |
OnIDBFactoryGetDatabaseNames) |
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_FactoryOpen, OnIDBFactoryOpen) |
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_FactoryDeleteDatabase, |
OnIDBFactoryDeleteDatabase) |
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_AckReceivedBlobs, OnAckReceivedBlobs) |
@@ -323,39 +322,6 @@ void IndexedDBDispatcherHost::OnIDBFactoryGetDatabaseNames( |
params.origin, indexed_db_path, request_context_getter_); |
} |
-void IndexedDBDispatcherHost::OnIDBFactoryOpen( |
- const IndexedDBHostMsg_FactoryOpen_Params& params) { |
- DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
- |
- if (!IsValidOrigin(params.origin)) { |
- bad_message::ReceivedBadMessage(this, bad_message::IDBDH_INVALID_ORIGIN); |
- return; |
- } |
- |
- base::TimeTicks begin_time = base::TimeTicks::Now(); |
- base::FilePath indexed_db_path = indexed_db_context_->data_path(); |
- |
- int64_t host_transaction_id = HostTransactionId(params.transaction_id); |
- |
- // TODO(dgrogan): Don't let a non-existing database be opened (and therefore |
- // created) if this origin is already over quota. |
- scoped_refptr<IndexedDBCallbacks> callbacks = new IndexedDBCallbacks( |
- this, params.ipc_thread_id, params.ipc_callbacks_id, |
- params.ipc_database_callbacks_id, host_transaction_id, params.origin); |
- callbacks->SetConnectionOpenStartTime(begin_time); |
- scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks = |
- new IndexedDBDatabaseCallbacks( |
- this, params.ipc_thread_id, params.ipc_database_callbacks_id); |
- std::unique_ptr<IndexedDBPendingConnection> connection = |
- base::MakeUnique<IndexedDBPendingConnection>( |
- callbacks, database_callbacks, ipc_process_id_, host_transaction_id, |
- params.version); |
- DCHECK(request_context_getter_); |
- context()->GetIDBFactory()->Open(params.name, std::move(connection), |
- request_context_getter_, params.origin, |
- indexed_db_path); |
-} |
- |
void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase( |
const IndexedDBHostMsg_FactoryDeleteDatabase_Params& params) { |
DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |