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

Unified Diff: content/public/browser/browser_thread.h

Issue 8917028: Add BrowserThread::PostTaskOnIOThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/public/browser/browser_thread.h
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h
index 743bec6e550a829b0686297db9b410d465d3499c..218527da8bf17850966a226b524a4e88eedd47b4 100644
--- a/content/public/browser/browser_thread.h
+++ b/content/public/browser/browser_thread.h
@@ -116,6 +116,11 @@ class CONTENT_EXPORT BrowserThread {
const base::Closure& task,
int64 delay_ms);
+ // Posts a task on the IO thread. Syntactic sugar for
+ // PostTask(BrowserThread::IO, ...).
+ static bool PostTaskOnIOThread(const tracked_objects::Location& from_here,
+ const base::Closure& task);
+
// TODO(brettw) remove these when Task->Closure conversion is done.
static bool PostTask(ID identifier,
const tracked_objects::Location& from_here,

Powered by Google App Engine
This is Rietveld 408576698