Chromium Code Reviews| Index: cc/trees/blocking_task_runner.h |
| diff --git a/cc/trees/blocking_task_runner.h b/cc/trees/blocking_task_runner.h |
| index 8388a881e607e6bbcf11e4c30b9d659f1dd54909..0bc23b34c1732a440c77b250fcfe3cf060c33998 100644 |
| --- a/cc/trees/blocking_task_runner.h |
| +++ b/cc/trees/blocking_task_runner.h |
| @@ -72,6 +72,11 @@ class CC_EXPORT BlockingTaskRunner |
| bool PostTask(const tracked_objects::Location& from_here, |
| const base::Closure& task); |
| + // Forward the tasks to a specific task runner instead of the |
|
danakj
2014/08/26 15:59:00
WDYT of passing this to current() and DCHECKing th
Sami
2014/08/26 16:19:17
The places[1] that call BlockingTaskRunner::curren
|
| + // MessageLoopProxy which was current when this task runner was constructed. |
| + // Must not be called while capturing tasks. |
| + void SetTaskRunner(scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
| + |
| private: |
| friend class base::RefCountedThreadSafe<BlockingTaskRunner>; |