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

Unified Diff: content/child/indexed_db/indexed_db_message_filter.cc

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Address last nits and fix leaks in unit tests. Created 4 years, 2 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/child/indexed_db/indexed_db_message_filter.cc
diff --git a/content/child/indexed_db/indexed_db_message_filter.cc b/content/child/indexed_db/indexed_db_message_filter.cc
index 2a76f58abf16fb04f8ae54d3786d836d5eacaff1..6b3fd9ef83470e6380e110a6b24e6561908eac4c 100644
--- a/content/child/indexed_db/indexed_db_message_filter.cc
+++ b/content/child/indexed_db/indexed_db_message_filter.cc
@@ -6,7 +6,6 @@
#include "content/child/indexed_db/indexed_db_dispatcher.h"
#include "content/child/thread_safe_sender.h"
-#include "content/common/indexed_db/indexed_db_constants.h"
#include "content/common/indexed_db/indexed_db_messages.h"
namespace content {
@@ -35,31 +34,4 @@ bool IndexedDBMessageFilter::GetWorkerThreadIdForMessage(
return base::PickleIterator(msg).ReadInt(ipc_thread_id);
}
-void IndexedDBMessageFilter::OnStaleMessageReceived(const IPC::Message& msg) {
- IPC_BEGIN_MESSAGE_MAP(IndexedDBMessageFilter, msg)
- IPC_MESSAGE_HANDLER(IndexedDBMsg_CallbacksSuccessIDBDatabase,
- OnStaleSuccessIDBDatabase)
- IPC_MESSAGE_HANDLER(IndexedDBMsg_CallbacksUpgradeNeeded,
- OnStaleUpgradeNeeded)
- IPC_END_MESSAGE_MAP()
-}
-
-void IndexedDBMessageFilter::OnStaleSuccessIDBDatabase(
- int32_t ipc_thread_id,
- int32_t ipc_callbacks_id,
- int32_t ipc_database_callbacks_id,
- int32_t ipc_database_id,
- const IndexedDBDatabaseMetadata& idb_metadata) {
- if (ipc_database_id == kNoDatabase)
- return;
- thread_safe_sender()->Send(
- new IndexedDBHostMsg_DatabaseClose(ipc_database_id));
-}
-
-void IndexedDBMessageFilter::OnStaleUpgradeNeeded(
- const IndexedDBMsg_CallbacksUpgradeNeeded_Params& p) {
- thread_safe_sender()->Send(
- new IndexedDBHostMsg_DatabaseClose(p.ipc_database_id));
-}
-
} // namespace content
« no previous file with comments | « content/child/indexed_db/indexed_db_message_filter.h ('k') | content/child/indexed_db/mock_webidbcallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698