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

Unified Diff: media/cast/sender/frame_sender.h

Issue 1878883003: Refactor: simplify interface of SenderRtcpSession and CastTransport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/sender/frame_sender.h
diff --git a/media/cast/sender/frame_sender.h b/media/cast/sender/frame_sender.h
index 7a58abaa9e387e3b2020a535d8330d05c7b741c6..11dded3d55ab48cca4104e58447a8c816fe78d53 100644
--- a/media/cast/sender/frame_sender.h
+++ b/media/cast/sender/frame_sender.h
@@ -53,6 +53,14 @@ class FrameSender {
void SendEncodedFrame(int requested_bitrate_before_encode,
scoped_ptr<SenderEncodedFrame> encoded_frame);
+ // Protected for testability.
+ void OnReceivedCastFeedback(const RtcpCastMessage& cast_feedback);
miu 2016/04/15 23:14:39 Instead of making these methods public, consider o
xjz 2016/04/20 01:09:03 Done. Choose #2 for convenience.
+
+ // Called when a Pli message is received.
+ void OnReceivedPli();
+
+ void OnMeasuredRoundTripTime(base::TimeDelta rtt);
+
protected:
// Returns the number of frames in the encoder's backlog.
virtual int GetNumberOfFramesInEncoder() const = 0;
@@ -66,8 +74,6 @@ class FrameSender {
void ScheduleNextRtcpReport();
void SendRtcpReport(bool schedule_future_reports);
- void OnMeasuredRoundTripTime(base::TimeDelta rtt);
-
const scoped_refptr<CastEnvironment> cast_environment_;
// Sends encoded frames over the configured transport (e.g., UDP). In
@@ -89,12 +95,6 @@ class FrameSender {
void ResendCheck();
void ResendForKickstart();
- // Protected for testability.
- void OnReceivedCastFeedback(const RtcpCastMessage& cast_feedback);
-
- // Called when a Pli message is received.
- void OnReceivedPli();
-
// Returns true if too many frames would be in-flight by encoding and sending
// the next frame having the given |frame_duration|.
bool ShouldDropNextFrame(base::TimeDelta frame_duration) const;

Powered by Google App Engine
This is Rietveld 408576698