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

Unified Diff: media/cast/net/rtcp/sender_rtcp_session.h

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate Pli message from Cast message. Created 4 years, 10 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: media/cast/net/rtcp/sender_rtcp_session.h
diff --git a/media/cast/net/rtcp/sender_rtcp_session.h b/media/cast/net/rtcp/sender_rtcp_session.h
index f22dd589c681d707d74c4569b90a650295b032b5..aefb100cdbbf7c0f71ad9f6112f7ccacf5176fb3 100644
--- a/media/cast/net/rtcp/sender_rtcp_session.h
+++ b/media/cast/net/rtcp/sender_rtcp_session.h
@@ -39,9 +39,11 @@ typedef std::queue<RtcpSendTimePair> RtcpSendTimeQueue;
// received which helps it compute round trip time and invoke a callback.
class SenderRtcpSession : public RtcpSession {
public:
+ // TODO(xjz): Simplify the interface. http://crbug.com/588275.
SenderRtcpSession(const RtcpCastMessageCallback& cast_callback,
const RtcpRttCallback& rtt_callback,
const RtcpLogMessageCallback& log_callback,
+ const RtcpPliCallback pli_callback,
base::TickClock* clock, // Not owned.
PacedPacketSender* packet_sender, // Not owned.
uint32_t local_ssrc,
@@ -92,6 +94,8 @@ class SenderRtcpSession : public RtcpSession {
uint32_t last_ntp_seconds,
uint32_t last_ntp_fraction);
+ void OnReceivedPli();
+
base::TickClock* const clock_; // Not owned.
PacedPacketSender* packet_sender_; // Not owned.
const uint32_t local_ssrc_;
@@ -100,6 +104,7 @@ class SenderRtcpSession : public RtcpSession {
const RtcpCastMessageCallback cast_callback_;
const RtcpRttCallback rtt_callback_;
const RtcpLogMessageCallback log_callback_;
+ const RtcpPliCallback pli_callback_;
// Computed from RTCP RRTR report.
base::TimeTicks largest_seen_timestamp_;

Powered by Google App Engine
This is Rietveld 408576698