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

Unified Diff: media/cast/rtcp/rtcp_sender.h

Issue 189423002: Cast: Cap max receiver log size per rtcp packet to 200 bytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reland patch Created 6 years, 9 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/rtcp/rtcp_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtcp/rtcp_sender.h
diff --git a/media/cast/rtcp/rtcp_sender.h b/media/cast/rtcp/rtcp_sender.h
index 5cc3bef91bf28f9e21a86607c1fca95cffc5e0f7..ac64f9bbd7a4f261310ec67142979b9613d0eb4e 100644
--- a/media/cast/rtcp/rtcp_sender.h
+++ b/media/cast/rtcp/rtcp_sender.h
@@ -19,6 +19,12 @@
namespace media {
namespace cast {
+// We limit the size of receiver logs to avoid queuing up packets. We also
+// do not need the amount of redundancy that results from filling up every
+// RTCP packet with log messages. This number should give a redundancy of
+// about 2-3 per log message.
+const size_t kMaxReceiverLogBytes = 200;
+
class ReceiverRtcpEventSubscriber;
// TODO(mikhal): Resolve duplication between this and RtcpBuilder.
« no previous file with comments | « no previous file | media/cast/rtcp/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698