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

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: Fixed Dependency over component module by removing file Created 5 years, 7 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 | « extensions/browser/sandboxed_unpacker_unittest.cc ('k') | extensions/common/one_shot_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..af985384ed79e1ed1fd8b6cf201f3815e3c6c1bc 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;
}
@@ -66,7 +66,7 @@ class OneShotEvent {
// tasks will be executed.
//
// Omitting the |runner| argument indicates that |task| should run
- // on MessageLoopProxy::current().
+ // on current thread's TaskRunner.
//
// 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 +80,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 +90,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_;
« no previous file with comments | « extensions/browser/sandboxed_unpacker_unittest.cc ('k') | extensions/common/one_shot_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698