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

Unified Diff: extensions/common/one_shot_event.h

Issue 1120793007: [extensions] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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_;

Powered by Google App Engine
This is Rietveld 408576698