Index: media/mojo/services/mojo_media_client.h |
diff --git a/media/mojo/services/mojo_media_client.h b/media/mojo/services/mojo_media_client.h |
index d64c06cdd9cc0a44d8e01df7f405b008e4245c47..51e92d980e7eb2bd39c39267acfd7c4a3d36bac5 100644 |
--- a/media/mojo/services/mojo_media_client.h |
+++ b/media/mojo/services/mojo_media_client.h |
@@ -7,12 +7,7 @@ |
#include <memory> |
-#include "media/base/audio_decoder.h" |
-#include "media/base/audio_renderer_sink.h" |
-#include "media/base/cdm_factory.h" |
-#include "media/base/media_log.h" |
-#include "media/base/renderer_factory.h" |
-#include "media/base/video_renderer_sink.h" |
+#include "base/memory/ref_counted.h" |
namespace base { |
class SingleThreadTaskRunner; |
@@ -26,12 +21,21 @@ class InterfaceProvider; |
namespace media { |
+class AudioDecoder; |
+class AudioRendererSink; |
+class CdmFactory; |
+class MediaLog; |
+class RendererFactory; |
+class VideoDecoder; |
+class VideoRendererSink; |
+ |
class MojoMediaClient { |
public: |
virtual ~MojoMediaClient(); |
// Called exactly once before any other method. |
virtual void Initialize(); |
+ |
// Called before the host application is scheduled to quit. |
// The application message loop is still valid at this point, so all clean |
// up tasks requiring the message loop must be completed before returning. |
@@ -40,6 +44,9 @@ class MojoMediaClient { |
virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder( |
scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
+ virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder( |
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
+ |
// TODO(xhwang): Consider creating Renderer and CDM directly in the client |
// instead of creating factories. See http://crbug.com/586211 |