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 010ce9a32e11342c98b05bff9c1e569b7e615c5c..3e3e284f41f9db3f6b2476b1ac9800bd5410c7b0 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" |
#include "media/mojo/services/media_mojo_export.h" |
namespace base { |
@@ -27,12 +22,21 @@ class InterfaceProvider; |
namespace media { |
+class AudioDecoder; |
+class AudioRendererSink; |
+class CdmFactory; |
+class MediaLog; |
+class RendererFactory; |
+class VideoDecoder; |
+class VideoRendererSink; |
+ |
class MEDIA_MOJO_EXPORT 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. |
@@ -41,6 +45,9 @@ class MEDIA_MOJO_EXPORT 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 |