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

Unified Diff: media/mojo/services/mojo_demuxer_stream_impl.cc

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/mojo_demuxer_stream_impl.h ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_demuxer_stream_impl.cc
diff --git a/media/mojo/services/mojo_demuxer_stream_impl.cc b/media/mojo/services/mojo_demuxer_stream_impl.cc
index b564cb677b80ffaba1db92b0f89211c387454c26..7a960b4bec6210cd085366b0099be8e1c97ccb73 100644
--- a/media/mojo/services/mojo_demuxer_stream_impl.cc
+++ b/media/mojo/services/mojo_demuxer_stream_impl.cc
@@ -19,7 +19,7 @@ namespace media {
MojoDemuxerStreamImpl::MojoDemuxerStreamImpl(
media::DemuxerStream* stream,
- mojo::InterfaceRequest<interfaces::DemuxerStream> request)
+ mojo::InterfaceRequest<mojom::DemuxerStream> request)
: binding_(this, std::move(request)),
stream_(stream),
weak_factory_(this) {}
@@ -52,20 +52,20 @@ void MojoDemuxerStreamImpl::Initialize(const InitializeCallback& callback) {
stream_pipe_ = std::move(data_pipe.producer_handle);
// Prepare the initial config.
- interfaces::AudioDecoderConfigPtr audio_config;
- interfaces::VideoDecoderConfigPtr video_config;
+ mojom::AudioDecoderConfigPtr audio_config;
+ mojom::VideoDecoderConfigPtr video_config;
if (stream_->type() == media::DemuxerStream::AUDIO) {
audio_config =
- interfaces::AudioDecoderConfig::From(stream_->audio_decoder_config());
+ mojom::AudioDecoderConfig::From(stream_->audio_decoder_config());
} else if (stream_->type() == media::DemuxerStream::VIDEO) {
video_config =
- interfaces::VideoDecoderConfig::From(stream_->video_decoder_config());
+ mojom::VideoDecoderConfig::From(stream_->video_decoder_config());
} else {
NOTREACHED() << "Unsupported stream type: " << stream_->type();
return;
}
- callback.Run(static_cast<interfaces::DemuxerStream::Type>(stream_->type()),
+ callback.Run(static_cast<mojom::DemuxerStream::Type>(stream_->type()),
std::move(data_pipe.consumer_handle), std::move(audio_config),
std::move(video_config));
}
@@ -83,8 +83,8 @@ void MojoDemuxerStreamImpl::OnBufferReady(
const ReadCallback& callback,
media::DemuxerStream::Status status,
const scoped_refptr<media::DecoderBuffer>& buffer) {
- interfaces::AudioDecoderConfigPtr audio_config;
- interfaces::VideoDecoderConfigPtr video_config;
+ mojom::AudioDecoderConfigPtr audio_config;
+ mojom::VideoDecoderConfigPtr video_config;
if (status == media::DemuxerStream::kConfigChanged) {
DVLOG(2) << __FUNCTION__ << ": ConfigChange!";
@@ -92,24 +92,24 @@ void MojoDemuxerStreamImpl::OnBufferReady(
// Status obtained via Run() below.
if (stream_->type() == media::DemuxerStream::AUDIO) {
audio_config =
- interfaces::AudioDecoderConfig::From(stream_->audio_decoder_config());
+ mojom::AudioDecoderConfig::From(stream_->audio_decoder_config());
} else if (stream_->type() == media::DemuxerStream::VIDEO) {
video_config =
- interfaces::VideoDecoderConfig::From(stream_->video_decoder_config());
+ mojom::VideoDecoderConfig::From(stream_->video_decoder_config());
} else {
NOTREACHED() << "Unsupported config change encountered for type: "
<< stream_->type();
}
- callback.Run(interfaces::DemuxerStream::Status::CONFIG_CHANGED,
- interfaces::DecoderBufferPtr(), std::move(audio_config),
+ callback.Run(mojom::DemuxerStream::Status::CONFIG_CHANGED,
+ mojom::DecoderBufferPtr(), std::move(audio_config),
std::move(video_config));
return;
}
if (status == media::DemuxerStream::kAborted) {
- callback.Run(interfaces::DemuxerStream::Status::ABORTED,
- interfaces::DecoderBufferPtr(), std::move(audio_config),
+ callback.Run(mojom::DemuxerStream::Status::ABORTED,
+ mojom::DecoderBufferPtr(), std::move(audio_config),
std::move(video_config));
return;
}
@@ -129,8 +129,8 @@ void MojoDemuxerStreamImpl::OnBufferReady(
// TODO(dalecurtis): Once we can write framed data to the DataPipe, fill via
// the producer handle and then read more to keep the pipe full. Waiting for
// space can be accomplished using an AsyncWaiter.
- callback.Run(static_cast<interfaces::DemuxerStream::Status>(status),
- interfaces::DecoderBuffer::From(buffer), std::move(audio_config),
+ callback.Run(static_cast<mojom::DemuxerStream::Status>(status),
+ mojom::DecoderBuffer::From(buffer), std::move(audio_config),
std::move(video_config));
}
« no previous file with comments | « media/mojo/services/mojo_demuxer_stream_impl.h ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698