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

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: Sync to head 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
« no previous file with comments | « base/task_runner.cc ('k') | remoting/base/plugin_message_loop_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f0aab01f562a5739f13fd9d5f02b04897ce83980 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"
@@ -184,30 +185,21 @@ class BrowserThreadMessageLoopProxy : public base::MessageLoopProxy {
}
// MessageLoopProxy implementation.
- virtual bool PostTask(const tracked_objects::Location& from_here,
- const base::Closure& task) {
- 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) {
- 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_);
}
« no previous file with comments | « base/task_runner.cc ('k') | remoting/base/plugin_message_loop_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698