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

Unified Diff: cc/trees/blocking_task_runner.h

Issue 485043003: cc: Use correct message loop proxy in BlockingTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests. Created 6 years, 4 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
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/trees/blocking_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/trees/blocking_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698