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

Unified Diff: content/common/child_thread.cc

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/child_thread.cc
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc
index 93e7e143445b59f8244b63bd8d0f5adfbfdb6e85..5fe2079b9c4db1e5af28798b5747a6b7d164f39f 100644
--- a/content/common/child_thread.cc
+++ b/content/common/child_thread.cc
@@ -15,6 +15,7 @@
#include "content/common/resource_dispatcher.h"
#include "content/common/socket_stream_dispatcher.h"
#include "content/public/common/content_switches.h"
+#include "content/renderer/indexed_db_message_filter.h"
#include "ipc/ipc_logging.h"
#include "ipc/ipc_sync_channel.h"
#include "ipc/ipc_sync_message_filter.h"
@@ -57,6 +58,8 @@ void ChildThread::Init() {
new IPC::SyncMessageFilter(ChildProcess::current()->GetShutDownEvent());
channel_->AddFilter(sync_message_filter_.get());
channel_->AddFilter(new ChildTraceMessageFilter());
+ idb_message_filter_ = new IndexedDBMessageFilter();
+ channel_->AddFilter(idb_message_filter_.get());
}
ChildThread::~ChildThread() {
@@ -247,3 +250,11 @@ void ChildThread::OnProcessFinalRelease() {
// The browser then sends back a response if it's ok to shutdown.
Send(new ChildProcessHostMsg_ShutdownRequest);
}
+
+IndexedDBDispatcher* ChildThread::indexed_db_dispatcher() const {
+ return idb_message_filter_->thread_specific_idb_dispatcher();
+}
+
+WebCoreWorkerTracker* ChildThread::webcore_worker_tracker() const {
+ return idb_message_filter_;
+}

Powered by Google App Engine
This is Rietveld 408576698