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

Unified Diff: media/base/message_loop_factory.h

Issue 9632024: Create video and audio decoder threads on demand. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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_for_test.h » ('j') | media/filters/ffmpeg_audio_decoder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/message_loop_factory.h
diff --git a/media/base/message_loop_factory.h b/media/base/message_loop_factory.h
index d8ecdb56cb823c6d991273aac53b0f7686ecaaa2..b67165c365001ef677ceb25fb384ab77aa729bea 100644
--- a/media/base/message_loop_factory.h
+++ b/media/base/message_loop_factory.h
@@ -33,7 +33,7 @@ class MEDIA_EXPORT MessageLoopFactory {
// is created if the factory doesn't have one associated with |name|.
//
// |name| must not be an empty string.
- MessageLoop* GetMessageLoop(const std::string& name);
+ virtual MessageLoop* GetMessageLoop(const std::string& name);
// Get the message loop proxy associated with |name|. A new MessageLoopProxy
// is created if the factory doesn't have one associated with |name|.
@@ -42,11 +42,12 @@ class MEDIA_EXPORT MessageLoopFactory {
scoped_refptr<base::MessageLoopProxy> GetMessageLoopProxy(
const std::string& name);
- private:
+ protected:
// Only allow scoped_ptr<> to delete factory.
friend class scoped_ptr<MessageLoopFactory>;
- ~MessageLoopFactory();
+ virtual ~MessageLoopFactory();
+ private:
// Returns the thread associated with |name| creating a new thread if needed.
base::Thread* GetThread(const std::string& name);
« no previous file with comments | « no previous file | media/base/message_loop_factory_for_test.h » ('j') | media/filters/ffmpeg_audio_decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698