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

Unified Diff: media/mojo/services/mojo_media_client.h

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and strip down. Created 4 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698