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

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

Issue 1977173002: Rename media::interfaces to media::mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + chromeos files 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/media_mojo_unittest.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 e3b71988dfe9c0fe34159d50a55a8128bdcd670c..209d7a20130fedc4c526d4a7efa395c6dce79ebb 100644
--- a/media/mojo/services/mojo_audio_decoder.h
+++ b/media/mojo/services/mojo_audio_decoder.h
@@ -18,12 +18,11 @@ class SingleThreadTaskRunner;
namespace media {
-// An AudioDecoder that proxies to an interfaces::AudioDecoder.
-class MojoAudioDecoder : public AudioDecoder,
- public interfaces::AudioDecoderClient {
+// An AudioDecoder that proxies to a mojom::AudioDecoder.
+class MojoAudioDecoder : public AudioDecoder, public mojom::AudioDecoderClient {
public:
MojoAudioDecoder(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- interfaces::AudioDecoderPtr remote_decoder);
+ mojom::AudioDecoderPtr remote_decoder);
~MojoAudioDecoder() final;
// AudioDecoder implementation.
@@ -38,7 +37,7 @@ class MojoAudioDecoder : public AudioDecoder,
bool NeedsBitstreamConversion() const final;
// AudioDecoderClient implementation.
- void OnBufferDecoded(interfaces::AudioBufferPtr buffer) final;
+ void OnBufferDecoded(mojom::AudioBufferPtr buffer) final;
private:
// Callback for connection error on |remote_decoder_|.
@@ -48,7 +47,7 @@ class MojoAudioDecoder : public AudioDecoder,
void OnInitialized(bool success, bool needs_bitstream_conversion);
// Called when |remote_decoder_| accepted or rejected DecoderBuffer.
- void OnDecodeStatus(interfaces::AudioDecoder::DecodeStatus decode_status);
+ void OnDecodeStatus(mojom::AudioDecoder::DecodeStatus decode_status);
// called when |remote_decoder_| finished Reset() sequence.
void OnResetDone();
@@ -58,7 +57,7 @@ class MojoAudioDecoder : public AudioDecoder,
void CreateDataPipe();
// A helper method to serialize the data section of DecoderBuffer into pipe.
- interfaces::DecoderBufferPtr TransferDecoderBuffer(
+ mojom::DecoderBufferPtr TransferDecoderBuffer(
const scoped_refptr<DecoderBuffer>& media_buffer);
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
@@ -67,9 +66,9 @@ class MojoAudioDecoder : public AudioDecoder,
// thread. This member is used to safely pass the AudioDecoderPtr from one
// thread to another. It is set in the constructor and is consumed in
// Initialize().
- interfaces::AudioDecoderPtrInfo remote_decoder_info_;
+ mojom::AudioDecoderPtrInfo remote_decoder_info_;
- interfaces::AudioDecoderPtr remote_decoder_;
+ mojom::AudioDecoderPtr remote_decoder_;
// DataPipe for serializing the data section of DecoderBuffer.
mojo::ScopedDataPipeProducerHandle producer_handle_;
« no previous file with comments | « media/mojo/services/media_mojo_unittest.cc ('k') | media/mojo/services/mojo_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698