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

Unified Diff: content/common/child_thread.h

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: repurpose obsolete indexed-db switch to control idb on workers Created 9 years 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.h
diff --git a/content/common/child_thread.h b/content/common/child_thread.h
index acb1e3ab4781dd23cdeea83afbca6489fa032bd2..716c6f654713fe9b935e3406b0517f9ce6b62923 100644
--- a/content/common/child_thread.h
+++ b/content/common/child_thread.h
@@ -14,10 +14,13 @@
#include "webkit/glue/resource_loader_bridge.h"
class FileSystemDispatcher;
+class IndexedDBDispatcher;
+class IndexedDBMessageFilter;
class MessageLoop;
class QuotaDispatcher;
class ResourceDispatcher;
class SocketStreamDispatcher;
+class WorkerTaskRunner;
namespace IPC {
class SyncChannel;
@@ -79,6 +82,9 @@ class CONTENT_EXPORT ChildThread : public IPC::Channel::Listener,
// Returns the one child thread.
static ChildThread* current();
+ WorkerTaskRunner* worker_task_runner() const;
+ IndexedDBDispatcher* indexed_db_dispatcher() const;
+
protected:
friend class ChildProcess;
@@ -140,6 +146,10 @@ class CONTENT_EXPORT ChildThread : public IPC::Channel::Listener,
scoped_ptr<QuotaDispatcher> quota_dispatcher_;
+ scoped_refptr<IndexedDBMessageFilter> idb_message_filter_;
+
+ scoped_refptr<WorkerTaskRunner> worker_task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(ChildThread);
};

Powered by Google App Engine
This is Rietveld 408576698