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

Unified Diff: content/browser/browser_thread.cc

Issue 7316015: Support Closure in ALL the loops! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed nit and rebased. Created 9 years, 5 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/tracked_objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread.cc
diff --git a/content/browser/browser_thread.cc b/content/browser/browser_thread.cc
index de125fb3de934338b88b3828aaf9b337742a997b..b4d95ce32f93f4c71be291cb1bd697abc90eb2f7 100644
--- a/content/browser/browser_thread.cc
+++ b/content/browser/browser_thread.cc
@@ -53,6 +53,30 @@ class BrowserThreadMessageLoopProxy : public base::MessageLoopProxy {
return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task,
delay_ms);
}
+
+ 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) {
+ 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) {
+ return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task,
+ delay_ms);
+ }
+
virtual bool BelongsToCurrentThread() {
return BrowserThread::CurrentlyOn(id_);
}
« no previous file with comments | « base/tracked_objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698