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

Unified Diff: media/cast/receiver/cast_receiver_impl.h

Issue 765643006: Cast: Make receiver use cast_transport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix end2end test Created 6 years 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: media/cast/receiver/cast_receiver_impl.h
diff --git a/media/cast/receiver/cast_receiver_impl.h b/media/cast/receiver/cast_receiver_impl.h
index 5431393d73d53c8ebb8b3255b1b7f6feb488997e..bc1bf672299ea5b6d2f568c5d3e79c722ca44dfe 100644
--- a/media/cast/receiver/cast_receiver_impl.h
+++ b/media/cast/receiver/cast_receiver_impl.h
@@ -27,12 +27,12 @@ class CastReceiverImpl : public CastReceiver {
CastReceiverImpl(scoped_refptr<CastEnvironment> cast_environment,
const FrameReceiverConfig& audio_config,
const FrameReceiverConfig& video_config,
- PacketSender* const packet_sender);
+ CastTransportSender* const transport);
~CastReceiverImpl() override;
// CastReceiver implementation.
- PacketReceiverCallback packet_receiver() override;
+ void ReceivePacket(scoped_ptr<Packet> packet) override;
void RequestDecodedAudioFrame(
const AudioFrameDecodedCallback& callback) override;
void RequestEncodedAudioFrame(
@@ -43,10 +43,6 @@ class CastReceiverImpl : public CastReceiver {
const ReceiveEncodedFrameCallback& callback) override;
private:
- // Forwards |packet| to a specific RTP frame receiver, or drops it if SSRC
- // does not map to one of the receivers.
- void DispatchReceivedPacket(scoped_ptr<Packet> packet);
-
// Feeds an EncodedFrame into |audio_decoder_|. RequestDecodedAudioFrame()
// uses this as a callback for RequestEncodedAudioFrame().
void DecodeEncodedAudioFrame(
@@ -88,7 +84,6 @@ class CastReceiverImpl : public CastReceiver {
bool is_continuous);
const scoped_refptr<CastEnvironment> cast_environment_;
- PacedSender pacer_;
FrameReceiver audio_receiver_;
FrameReceiver video_receiver_;

Powered by Google App Engine
This is Rietveld 408576698