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

Unified Diff: content/browser/browser_thread.h

Issue 8274012: Wait for URLBlacklist update tasks on automation tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added BrowserThread::WaitForPendingTasksOn, removed SignalingTask Created 9 years, 2 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 | « chrome/test/base/signaling_task.cc ('k') | content/browser/browser_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread.h
diff --git a/content/browser/browser_thread.h b/content/browser/browser_thread.h
index 2e798973bc8f6b532fda69eaf96aa4c659c94d62..f09fc6eb69cca3683a5b4eea3d3843ea949c4310 100644
--- a/content/browser/browser_thread.h
+++ b/content/browser/browser_thread.h
@@ -168,6 +168,13 @@ class CONTENT_EXPORT BrowserThread : public base::Thread {
// sets identifier to its ID. Otherwise returns false.
static bool GetCurrentThreadIdentifier(ID* identifier);
+ // Runs all the current pending tasks on the given thread's message loop.
+ // This call blocks until those tasks are executed, effectively making the
+ // current thread block on |identifier|. Avoid using this.
+ // Returns false if |identifier| is the current thread, or a task couldn't be
+ // posted to |identifier|'s message loop.
+ static bool WaitForPendingTasksOn(ID identifier);
jam 2011/10/14 17:19:30 this is most certainly a function that we don't wa
+
// Callers can hold on to a refcounted MessageLoopProxy beyond the lifetime
// of the thread.
static scoped_refptr<base::MessageLoopProxy> GetMessageLoopProxyForThread(
« no previous file with comments | « chrome/test/base/signaling_task.cc ('k') | content/browser/browser_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698