Chromium Code Reviews| Index: extensions/common/one_shot_event.h |
| diff --git a/extensions/common/one_shot_event.h b/extensions/common/one_shot_event.h |
| index 49031243ab9f2b712c05154618cc51b15b75e8bd..62d16170c74356d48a3c4edf72f74751cbcc786d 100644 |
| --- a/extensions/common/one_shot_event.h |
| +++ b/extensions/common/one_shot_event.h |
| @@ -14,7 +14,7 @@ |
| #include "base/threading/thread_checker.h" |
| namespace base { |
| -class TaskRunner; |
| +class SingleThreadTaskRunner; |
| class TimeDelta; |
| } |
| @@ -65,8 +65,6 @@ class OneShotEvent { |
| // If |*this| is destroyed before being released, none of these |
| // tasks will be executed. |
| // |
|
Ken Rockot(use gerrit already)
2015/05/04 18:19:58
This should not be deleted. Maybe change to "Omitt
Pranay
2015/05/05 03:07:58
Done.
|
| - // Omitting the |runner| argument indicates that |task| should run |
| - // on MessageLoopProxy::current(). |
| // |
| // Tasks may be run in an arbitrary order, not just FIFO. Tasks |
| // will never be called on the current thread before this function |
| @@ -80,7 +78,7 @@ class OneShotEvent { |
| const base::Closure& task) const; |
| void Post(const tracked_objects::Location& from_here, |
| const base::Closure& task, |
| - const scoped_refptr<base::TaskRunner>& runner) const; |
| + const scoped_refptr<base::SingleThreadTaskRunner>& runner) const; |
| void PostDelayed(const tracked_objects::Location& from_here, |
| const base::Closure& task, |
| const base::TimeDelta& delay) const; |
| @@ -90,7 +88,7 @@ class OneShotEvent { |
| void PostImpl(const tracked_objects::Location& from_here, |
| const base::Closure& task, |
| - const scoped_refptr<base::TaskRunner>& runner, |
| + const scoped_refptr<base::SingleThreadTaskRunner>& runner, |
| const base::TimeDelta& delay) const; |
| base::ThreadChecker thread_checker_; |