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

Unified Diff: services/media/factory_service/media_source_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_source_impl.h
diff --git a/services/media/factory_service/media_source_impl.h b/services/media/factory_service/media_source_impl.h
index ee440e5b8471972ee724df2df558095474560096..abfc7563ee81d9edf281e9a2f3b37e1ab22fe7c3 100644
--- a/services/media/factory_service/media_source_impl.h
+++ b/services/media/factory_service/media_source_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_SOURCE_IMPL_H_
-#define MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_
+#ifndef SERVICES_MEDIA_FACTORY_SERVICE_MEDIA_SOURCE_IMPL_H_
+#define SERVICES_MEDIA_FACTORY_SERVICE_MEDIA_SOURCE_IMPL_H_
#include <vector>
@@ -18,8 +18,7 @@
#include "services/media/framework/parts/demux.h"
#include "services/media/framework/parts/null_sink.h"
#include "services/media/framework/parts/reader.h"
-#include "services/media/framework_mojo/mojo_producer.h"
-#include "services/media/framework_mojo/mojo_pull_mode_producer.h"
+#include "services/media/framework_mojo/mojo_packet_producer.h"
#include "services/util/cpp/incident.h"
namespace mojo {
@@ -40,12 +39,9 @@ class MediaSourceImpl : public MediaFactoryService::Product<MediaSource>,
// MediaSource implementation.
void GetStreams(const GetStreamsCallback& callback) override;
- void GetProducer(uint32_t stream_index,
- InterfaceRequest<MediaProducer> producer) override;
-
- void GetPullModeProducer(
+ void GetPacketProducer(
uint32_t stream_index,
- InterfaceRequest<MediaPullModeProducer> producer) override;
+ InterfaceRequest<MediaPacketProducer> producer) override;
void GetStatus(uint64_t version_last_seen,
const GetStatusCallback& callback) override;
@@ -81,27 +77,25 @@ class MediaSourceImpl : public MediaFactoryService::Product<MediaSource>,
MediaTypePtr original_media_type() const;
// Gets the producer.
- void GetProducer(InterfaceRequest<MediaProducer> producer);
-
- // Gets the pull mode producer.
- void GetPullModeProducer(InterfaceRequest<MediaPullModeProducer> producer);
+ void GetPacketProducer(InterfaceRequest<MediaPacketProducer> producer);
// Makes sure the stream has a sink.
void EnsureSink();
// 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_;
std::unique_ptr<StreamType> original_stream_type_;
Graph* graph_;
OutputRef output_;
- std::shared_ptr<MojoProducer> producer_;
- std::shared_ptr<MojoPullModeProducer> pull_mode_producer_;
+ std::shared_ptr<MojoPacketProducer> producer_;
std::shared_ptr<NullSink> null_sink_;
};
@@ -124,4 +118,4 @@ class MediaSourceImpl : public MediaFactoryService::Product<MediaSource>,
} // namespace media
} // namespace mojo
-#endif // MOJO_SERVICES_MEDIA_FACTORY_MEDIA_SOURCE_IMPL_H_
+#endif // SERVICES_MEDIA_FACTORY_SERVICE_MEDIA_SOURCE_IMPL_H_
« no previous file with comments | « services/media/factory_service/media_sink_impl.cc ('k') | services/media/factory_service/media_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698