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

Unified Diff: base/message_loop.h

Issue 10380016: Add base::ThreadTaskRunner class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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: base/message_loop.h
diff --git a/base/message_loop.h b/base/message_loop.h
index c1ffc89f74d5a8d98ddb51253ca33a53f4354b7f..ef8d59f4071eac1d3785dba417f8b346503515d7 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -42,7 +42,8 @@
namespace base {
class Histogram;
-}
+class ThreadTaskRunnerHandle;
+} // namespace base
// A MessageLoop is used to process events for a particular thread. There is
// at most one MessageLoop instance per thread.
@@ -519,6 +520,7 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
// The message loop proxy associated with this message loop, if one exists.
willchan no longer on Chromium 2012/05/08 02:35:06 Can we construct these guys in the initializer lis
Sergey Ulanov 2012/05/09 18:34:11 I thought about it - problem is that MessageLoopPr
willchan no longer on Chromium 2012/05/09 18:38:48 Good point. OK.
scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+ scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_;
private:
template <class T, class R> friend class base::subtle::DeleteHelperInternal;
« no previous file with comments | « base/base.gypi ('k') | base/message_loop.cc » ('j') | base/thread_task_runner_handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698