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

Unified Diff: media/cast/audio_sender/audio_sender.h

Issue 295603004: [Cast] Aggressively send sender reports until first receiver report is received. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | media/cast/audio_sender/audio_sender.cc » ('j') | media/cast/rtp_timestamp_helper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/audio_sender/audio_sender.h
diff --git a/media/cast/audio_sender/audio_sender.h b/media/cast/audio_sender/audio_sender.h
index 6ff464fe9860cdc0ea97985af67c70fee8ada910..8911320b3f43771281562152db10bebc2f768dcf 100644
--- a/media/cast/audio_sender/audio_sender.h
+++ b/media/cast/audio_sender/audio_sender.h
@@ -22,11 +22,11 @@ namespace media {
namespace cast {
class AudioEncoder;
-class LocalRtcpAudioSenderFeedback;
// This class is not thread safe.
// It's only called from the main cast thread.
-class AudioSender : public base::NonThreadSafe,
+class AudioSender : public RtcpSenderFeedback,
+ public base::NonThreadSafe,
public base::SupportsWeakPtr<AudioSender> {
public:
AudioSender(scoped_refptr<CastEnvironment> cast_environment,
@@ -49,23 +49,21 @@ class AudioSender : public base::NonThreadSafe,
void SendEncodedAudioFrame(scoped_ptr<transport::EncodedFrame> audio_frame);
private:
- friend class LocalRtcpAudioSenderFeedback;
-
void ResendPackets(
const MissingFramesAndPacketsMap& missing_frames_and_packets);
void ScheduleNextRtcpReport();
- void SendRtcpReport();
+ void SendRtcpReport(bool schedule_future_reports);
- void InitializeTimers();
+ virtual void OnReceivedCastFeedback(const RtcpCastMessage& cast_feedback)
+ OVERRIDE;
scoped_refptr<CastEnvironment> cast_environment_;
transport::CastTransportSender* const transport_sender_;
scoped_ptr<AudioEncoder> audio_encoder_;
RtpTimestampHelper rtp_timestamp_helper_;
- scoped_ptr<LocalRtcpAudioSenderFeedback> rtcp_feedback_;
Rtcp rtcp_;
- bool timers_initialized_;
+ int num_aggressive_rtcp_reports_sent_;
CastInitializationStatus cast_initialization_cb_;
// NOTE: Weak pointers must be invalidated before all other member variables.
« no previous file with comments | « no previous file | media/cast/audio_sender/audio_sender.cc » ('j') | media/cast/rtp_timestamp_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698