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

Unified Diff: content/browser/browser_thread_impl.cc

Issue 9169037: Make new TaskRunner, SequencedTaskRunner, and SingleThreadTaskRunner interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 10 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: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 155160ba851d38a24d995b9449416975072af166..d474af8bf3562cac3a1bc3956ec2671f9778bfc4 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -6,6 +6,7 @@
#include "base/atomicops.h"
#include "base/bind.h"
+#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
@@ -185,29 +186,30 @@ class BrowserThreadMessageLoopProxy : public base::MessageLoopProxy {
// MessageLoopProxy implementation.
virtual bool PostTask(const tracked_objects::Location& from_here,
- const base::Closure& task) {
+ const base::Closure& task) OVERRIDE {
return BrowserThread::PostTask(id_, from_here, task);
}
- virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task, int64 delay_ms) {
+ virtual bool PostDelayedTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task, int64 delay_ms) OVERRIDE{
return BrowserThread::PostDelayedTask(id_, from_here, task, delay_ms);
}
virtual bool PostNonNestableTask(const tracked_objects::Location& from_here,
- const base::Closure& task) {
+ const base::Closure& task) OVERRIDE {
return BrowserThread::PostNonNestableTask(id_, from_here, task);
}
virtual bool PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) {
+ int64 delay_ms) OVERRIDE {
return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task,
delay_ms);
}
- virtual bool BelongsToCurrentThread() {
+ virtual bool RunsTasksOnCurrentThread() const OVERRIDE {
return BrowserThread::CurrentlyOn(id_);
}

Powered by Google App Engine
This is Rietveld 408576698