Index: media/base/decoder_factory.h |
diff --git a/media/base/decoder_factory.h b/media/base/decoder_factory.h |
index 21d66d21d1915c155eff82cdfb09e2ea4fbff572..fcf17ad580fe7ddc0bc7ded0d5d5d1eb85c5903d 100644 |
--- a/media/base/decoder_factory.h |
+++ b/media/base/decoder_factory.h |
@@ -6,9 +6,14 @@ |
#define MEDIA_BASE_DECODER_FACTORY_H_ |
#include "base/macros.h" |
+#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_vector.h" |
#include "media/base/media_export.h" |
+namespace base { |
+class SingleThreadTaskRunner; |
+} |
+ |
namespace media { |
class AudioDecoder; |
@@ -21,10 +26,14 @@ class MEDIA_EXPORT DecoderFactory { |
virtual ~DecoderFactory(); |
sandersd (OOO until July 31)
2016/03/17 20:56:20
Please document what the task runner is for.
Tima Vaisburd
2016/03/17 21:08:33
Done.
|
// Creates audio decoders and append them to the end of |audio_decoders|. |
- virtual void CreateAudioDecoders(ScopedVector<AudioDecoder>* audio_decoders); |
+ virtual void CreateAudioDecoders( |
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
+ ScopedVector<AudioDecoder>* audio_decoders); |
// Creates video decoders and append them to the end of |video_decoders|. |
- virtual void CreateVideoDecoders(ScopedVector<VideoDecoder>* video_decoders); |
+ virtual void CreateVideoDecoders( |
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
+ ScopedVector<VideoDecoder>* video_decoders); |
private: |
DISALLOW_COPY_AND_ASSIGN(DecoderFactory); |