summaryrefslogtreecommitdiffstats
path: root/extensions/common/one_shot_event.h
diff options
context:
space:
mode:
authorpranay.kumar <pranay.kumar@samsung.com>2015-05-05 05:12:46 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-05 12:13:21 +0000
commit7b7ceb183957fc55735153fbacb73a012a69b2cf (patch)
tree0935c9c2dd8ca6d1128d5e7ed7032184805309cb /extensions/common/one_shot_event.h
parentac428e932505db7625e3f96c4fd8a088a0311778 (diff)
downloadchromium_src-7b7ceb183957fc55735153fbacb73a012a69b2cf.zip
chromium_src-7b7ceb183957fc55735153fbacb73a012a69b2cf.tar.gz
chromium_src-7b7ceb183957fc55735153fbacb73a012a69b2cf.tar.bz2
Replace MessageLoopProxy usage with ThreadTaskRunnerHandle in extensions module.
MessageLoopProxy is deprecated. This basically does a search and replace of: MessageLoopProxy::current() -> ThreadTaskRunnerHandle::Get(). MessageLoopProxy -> SingleThreadTaskRunner BUG=391045 Review URL: https://codereview.chromium.org/1120793007 Cr-Commit-Position: refs/heads/master@{#328313}
Diffstat (limited to 'extensions/common/one_shot_event.h')
-rw-r--r--extensions/common/one_shot_event.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/common/one_shot_event.h b/extensions/common/one_shot_event.h
index 4903124..af98538 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_;