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

Unified Diff: media/base/message_loop_factory.h

Issue 6951013: add MessageLoopProxy in MessageLoopFactory (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | media/base/message_loop_factory_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/message_loop_factory.h
===================================================================
--- media/base/message_loop_factory.h (revision 83707)
+++ media/base/message_loop_factory.h (working copy)
@@ -8,6 +8,8 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "base/memory/ref_counted.h"
+#include "base/message_loop_proxy.h"
class MessageLoop;
@@ -23,6 +25,14 @@
// creation process.
virtual MessageLoop* GetMessageLoop(const std::string& name) = 0;
+ // Get the message loop proxy associated with |name|. A new MessageLoopProxy
+ // is created if the factory doesn't have one associated with |name|.
+ // NULL is returned if |name| is an empty string, or a new
+ // MessageLoop needs to be created and a failure occurs during the
+ // creation process.
+ virtual scoped_refptr<base::MessageLoopProxy> GetMLProxy(
scherkus (not reviewing) 2011/05/06 23:01:45 use the full name GetMessageLoopProxy
+ const std::string& name) = 0;
+
protected:
// Only allow scoped_ptr<> to delete factory.
friend class scoped_ptr<MessageLoopFactory>;
« no previous file with comments | « no previous file | media/base/message_loop_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698