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

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: Windows needs some more headers, apaprently. Created 4 years, 7 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 | « media/mojo/services/mojo_decoder_factory.cc ('k') | media/mojo/services/mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « media/mojo/services/mojo_decoder_factory.cc ('k') | media/mojo/services/mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698