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

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

Issue 1797393007: Connect MojoAudioDecoder to the service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created AudioDecoder in MediaInterfaceProvider Created 4 years, 9 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/base/decoder_factory.cc ('k') | media/mojo/services/mojo_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_audio_decoder.h
diff --git a/media/mojo/services/mojo_audio_decoder.h b/media/mojo/services/mojo_audio_decoder.h
index c055e0edf3ad21f97c5343fde39689279d6be61c..eba5e75cdbd9ea3b27aabb202383031166ead818 100644
--- a/media/mojo/services/mojo_audio_decoder.h
+++ b/media/mojo/services/mojo_audio_decoder.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "media/base/audio_decoder.h"
+#include "media/mojo/interfaces/audio_decoder.mojom.h"
namespace base {
class SingleThreadTaskRunner;
@@ -18,7 +19,8 @@ namespace media {
// An AudioDecoder that proxies to an interfaces::AudioDecoder.
class MojoAudioDecoder : public AudioDecoder {
public:
- MojoAudioDecoder();
+ MojoAudioDecoder(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ interfaces::AudioDecoderPtr remote_decoder);
~MojoAudioDecoder() final;
// AudioDecoder implementation.
@@ -34,6 +36,7 @@ class MojoAudioDecoder : public AudioDecoder {
private:
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ interfaces::AudioDecoderPtr remote_decoder_;
DISALLOW_COPY_AND_ASSIGN(MojoAudioDecoder);
};
« no previous file with comments | « media/base/decoder_factory.cc ('k') | media/mojo/services/mojo_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698