Chromium Code Reviews| Index: content/common/child_thread.h |
| diff --git a/content/common/child_thread.h b/content/common/child_thread.h |
| index acb1e3ab4781dd23cdeea83afbca6489fa032bd2..fda01a78dce4b11ca24bf541a64d4f8b804eb942 100644 |
| --- a/content/common/child_thread.h |
| +++ b/content/common/child_thread.h |
| @@ -18,6 +18,7 @@ class MessageLoop; |
| class QuotaDispatcher; |
| class ResourceDispatcher; |
| class SocketStreamDispatcher; |
| +class WorkerTaskRunner; |
| namespace IPC { |
| class SyncChannel; |
| @@ -79,6 +80,8 @@ class CONTENT_EXPORT ChildThread : public IPC::Channel::Listener, |
| // Returns the one child thread. |
| static ChildThread* current(); |
| + WorkerTaskRunner* worker_task_runner() const; |
| + |
| protected: |
| friend class ChildProcess; |
| @@ -140,6 +143,8 @@ class CONTENT_EXPORT ChildThread : public IPC::Channel::Listener, |
| scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| + scoped_refptr<WorkerTaskRunner> worker_task_runner_; |
|
michaeln
2011/12/05 22:02:09
Would a leaky lazy instance be a safer/better choi
dgrogan
2011/12/06 00:15:15
Not having to worry about the lifetime would be ni
|
| + |
| DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| }; |