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

Unified Diff: services/media/common/media_pipe_base.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
« no previous file with comments | « services/media/audio/audio_track_to_output_link.cc ('k') | services/media/common/media_pipe_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/common/media_pipe_base.h
diff --git a/services/media/common/media_pipe_base.h b/services/media/common/media_pipe_base.h
index 514e3019650c7e42ccb4ff9cbbaa1bb5c859a959..066a53f9d499696a6cf73645782c1d9a3893bbea 100644
--- a/services/media/common/media_pipe_base.h
+++ b/services/media/common/media_pipe_base.h
@@ -18,7 +18,7 @@
namespace mojo {
namespace media {
-class MediaPipeBase : public MediaConsumer {
+class MediaPipeBase : public MediaPacketConsumer {
protected:
class MappedSharedBuffer;
using MappedSharedBufferPtr = std::shared_ptr<MappedSharedBuffer>;
@@ -30,7 +30,7 @@ class MediaPipeBase : public MediaConsumer {
const MediaPacketPtr& packet() const { return packet_; }
const MappedSharedBufferPtr& buffer() const { return buffer_; }
- void SetResult(MediaConsumer::SendResult result);
+ void SetResult(MediaPacketConsumer::SendResult result);
private:
friend class MediaPipeBase;
@@ -41,7 +41,7 @@ class MediaPipeBase : public MediaConsumer {
MediaPacketPtr packet_;
MappedSharedBufferPtr buffer_;
SendPacketCallback cbk_;
- std::atomic<MediaConsumer::SendResult> result_;
+ std::atomic<MediaPacketConsumer::SendResult> result_;
};
using MediaPacketStatePtr = std::unique_ptr<MediaPacketState>;
@@ -50,7 +50,7 @@ class MediaPipeBase : public MediaConsumer {
~MediaPipeBase() override;
// Initialize the internal state of the pipe (allocate resources, etc..)
- MojoResult Init(InterfaceRequest<MediaConsumer> request);
+ MojoResult Init(InterfaceRequest<MediaPacketConsumer> request);
bool IsInitialized() const;
void Reset();
@@ -82,9 +82,9 @@ class MediaPipeBase : public MediaConsumer {
MappedSharedBufferPtr buffer_;
private:
- Binding<MediaConsumer> binding_;
+ Binding<MediaPacketConsumer> binding_;
- // MediaConsumer.mojom implementation.
+ // MediaPacketConsumer.mojom implementation.
void SetBuffer(ScopedSharedBufferHandle handle,
const SetBufferCallback& cbk) final;
void SendPacket(MediaPacketPtr packet,
« no previous file with comments | « services/media/audio/audio_track_to_output_link.cc ('k') | services/media/common/media_pipe_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698