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

Unified Diff: base/message_loop/message_loop.h

Issue 61643006: Adds the ability for MessageLoop to take a MessagePump (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « no previous file | base/message_loop/message_loop.cc » ('j') | base/threading/thread.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_loop.h
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h
index 0eb180352d324eb1f9a3dbff6dbe58eaa44e1bf2..30570725c55934e7aec2f644b6b793a71e04064b 100644
--- a/base/message_loop/message_loop.h
+++ b/base/message_loop/message_loop.h
@@ -140,9 +140,13 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate {
#endif // defined(OS_ANDROID)
};
+ // Creates a MessageLoop. If |message_pump| is NULL a MessagePump based on
+ // |type| is used, otherwise MessageLoop takes ownership of |message_pump| and
+ // uses it as the MessagePump.
// Normally, it is not necessary to instantiate a MessageLoop. Instead, it
// is typical to make use of the current thread's MessageLoop instance.
- explicit MessageLoop(Type type = TYPE_DEFAULT);
+ // TODO(sky): remove default args.
+ MessageLoop(Type type = TYPE_DEFAULT, MessagePump* message_pump = NULL);
darin (slow to review) 2013/11/07 00:17:54 Can we use scoped_ptr<MessagePump> here? Is it har
virtual ~MessageLoop();
// Returns the MessageLoop object for the current thread, or null if none.
« no previous file with comments | « no previous file | base/message_loop/message_loop.cc » ('j') | base/threading/thread.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698