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

Unified Diff: media/cast/net/pacing/paced_sender.h

Issue 1515023002: Simplify interface for media/cast: CastTransportSenderImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « media/cast/net/mock_cast_transport_sender.h ('k') | media/cast/net/pacing/paced_sender_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/pacing/paced_sender.h
diff --git a/media/cast/net/pacing/paced_sender.h b/media/cast/net/pacing/paced_sender.h
index 714fe9dcb1051e80869f2380107f0cc79b8b4cb7..8d45cc43aa959900f153564357da275a8a949b9a 100644
--- a/media/cast/net/pacing/paced_sender.h
+++ b/media/cast/net/pacing/paced_sender.h
@@ -131,6 +131,13 @@ class PacedSender : public PacedPacketSender,
bool SendRtcpPacket(uint32_t ssrc, PacketRef packet) final;
void CancelSendingPacket(const PacketKey& packet_key) final;
+ void SetTargetBurstSize(int burst_size) {
+ target_burst_size_ = current_max_burst_size_ = next_max_burst_size_ =
+ next_next_max_burst_size_ = burst_size;
+ }
+
+ void SetMaxBurstSize(int burst_size) { max_burst_size_ = burst_size; }
+
private:
// Actually sends the packets to the transport.
void SendStoredPackets();
« no previous file with comments | « media/cast/net/mock_cast_transport_sender.h ('k') | media/cast/net/pacing/paced_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698