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

Unified Diff: services/media/factory_service/media_demux_impl.h

Issue 2097953002: Motown: Rename MediaProducer/Consumer to MediaPacketProducer/Consumer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed #ifndef guards Created 4 years, 6 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: services/media/factory_service/media_demux_impl.h
diff --git a/services/media/factory_service/media_demux_impl.h b/services/media/factory_service/media_demux_impl.h
index 49e43a9cb66c05cc9f621d7e7bd7251505465102..1a04075d63a0a348638526e6b711bdaab623e16b 100644
--- a/services/media/factory_service/media_demux_impl.h
+++ b/services/media/factory_service/media_demux_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_SERVICES_MEDIA_FACTORY_MEDIA_DEMUX_IMPL_H_
-#define MOJO_SERVICES_MEDIA_FACTORY_MEDIA_DEMUX_IMPL_H_
+#ifndef SERVICES_MEDIA_FACTORY_SERVICE_MEDIA_DEMUX_IMPL_H_
+#define SERVICES_MEDIA_FACTORY_SERVICE_MEDIA_DEMUX_IMPL_H_
#include <cstdint>
#include <memory>
@@ -17,7 +17,7 @@
#include "services/media/factory_service/factory_service.h"
#include "services/media/framework/graph.h"
#include "services/media/framework/parts/demux.h"
-#include "services/media/framework_mojo/mojo_producer.h"
+#include "services/media/framework_mojo/mojo_packet_producer.h"
#include "services/util/cpp/incident.h"
namespace mojo {
@@ -37,8 +37,9 @@ class MediaDemuxImpl : public MediaFactoryService::Product<MediaDemux>,
// MediaDemux implementation.
void Describe(const DescribeCallback& callback) override;
- void GetProducer(uint32_t stream_index,
- InterfaceRequest<MediaProducer> producer) override;
+ void GetPacketProducer(
+ uint32_t stream_index,
+ InterfaceRequest<MediaPacketProducer> producer) override;
void GetMetadata(uint64_t version_last_seen,
const GetMetadataCallback& callback) override;
@@ -66,19 +67,21 @@ class MediaDemuxImpl : public MediaFactoryService::Product<MediaDemux>,
MediaTypePtr media_type() const;
// Gets the producer.
- void GetProducer(InterfaceRequest<MediaProducer> producer);
+ void GetPacketProducer(InterfaceRequest<MediaPacketProducer> producer);
// Tells the producer to prime its connection.
- void PrimeConnection(const MojoProducer::PrimeConnectionCallback callback);
+ void PrimeConnection(
+ const MojoPacketProducer::PrimeConnectionCallback callback);
// Tells the producer to flush its connection.
- void FlushConnection(const MojoProducer::FlushConnectionCallback callback);
+ void FlushConnection(
+ const MojoPacketProducer::FlushConnectionCallback callback);
private:
std::unique_ptr<StreamType> stream_type_;
Graph* graph_;
OutputRef output_;
- std::shared_ptr<MojoProducer> producer_;
+ std::shared_ptr<MojoPacketProducer> producer_;
};
// Handles the completion of demux initialization.
@@ -98,4 +101,4 @@ class MediaDemuxImpl : public MediaFactoryService::Product<MediaDemux>,
} // namespace media
} // namespace mojo
-#endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_DEMUX_IMPL_H_
+#endif // SERVICES_MEDIA_FACTORY_SERVICE_MEDIA_DEMUX_IMPL_H_
« no previous file with comments | « services/media/factory_service/media_decoder_impl.cc ('k') | services/media/factory_service/media_demux_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698