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

Side by Side Diff: media/cast/net/rtcp/rtcp.cc

Issue 427733002: Cast: Remove unused RTCP messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/cast/net/rtcp/rtcp.h ('k') | media/cast/net/rtcp/rtcp_builder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/net/rtcp/rtcp.h" 5 #include "media/cast/net/rtcp/rtcp.h"
6 6
7 #include "media/cast/cast_config.h" 7 #include "media/cast/cast_config.h"
8 #include "media/cast/cast_defines.h" 8 #include "media/cast/cast_defines.h"
9 #include "media/cast/cast_environment.h" 9 #include "media/cast/cast_environment.h"
10 #include "media/cast/net/cast_transport_defines.h" 10 #include "media/cast/net/cast_transport_defines.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 private: 61 private:
62 Rtcp* rtcp_; 62 Rtcp* rtcp_;
63 }; 63 };
64 64
65 Rtcp::Rtcp(const RtcpCastMessageCallback& cast_callback, 65 Rtcp::Rtcp(const RtcpCastMessageCallback& cast_callback,
66 const RtcpRttCallback& rtt_callback, 66 const RtcpRttCallback& rtt_callback,
67 const RtcpLogMessageCallback& log_callback, 67 const RtcpLogMessageCallback& log_callback,
68 base::TickClock* clock, 68 base::TickClock* clock,
69 PacedPacketSender* packet_sender, 69 PacedPacketSender* packet_sender,
70 uint32 local_ssrc, 70 uint32 local_ssrc,
71 uint32 remote_ssrc, const std::string& c_name) 71 uint32 remote_ssrc)
72 : cast_callback_(cast_callback), 72 : cast_callback_(cast_callback),
73 rtt_callback_(rtt_callback), 73 rtt_callback_(rtt_callback),
74 log_callback_(log_callback), 74 log_callback_(log_callback),
75 clock_(clock), 75 clock_(clock),
76 rtcp_sender_(new RtcpSender(packet_sender, local_ssrc, c_name)), 76 rtcp_sender_(new RtcpSender(packet_sender, local_ssrc)),
77 local_ssrc_(local_ssrc), 77 local_ssrc_(local_ssrc),
78 remote_ssrc_(remote_ssrc), 78 remote_ssrc_(remote_ssrc),
79 c_name_(c_name),
80 handler_(new RtcpMessageHandlerImpl(this)), 79 handler_(new RtcpMessageHandlerImpl(this)),
81 rtcp_receiver_(new RtcpReceiver(handler_.get(), local_ssrc)), 80 rtcp_receiver_(new RtcpReceiver(handler_.get(), local_ssrc)),
82 last_report_truncated_ntp_(0), 81 last_report_truncated_ntp_(0),
83 local_clock_ahead_by_(ClockDriftSmoother::GetDefaultTimeConstant()), 82 local_clock_ahead_by_(ClockDriftSmoother::GetDefaultTimeConstant()),
84 lip_sync_rtp_timestamp_(0), 83 lip_sync_rtp_timestamp_(0),
85 lip_sync_ntp_timestamp_(0), 84 lip_sync_ntp_timestamp_(0),
86 min_rtt_(TimeDelta::FromMilliseconds(kMaxRttMs)), 85 min_rtt_(TimeDelta::FromMilliseconds(kMaxRttMs)),
87 number_of_rtt_in_avg_(0) { 86 number_of_rtt_in_avg_(0) {
88 rtcp_receiver_->SetRemoteSSRC(remote_ssrc); 87 rtcp_receiver_->SetRemoteSSRC(remote_ssrc);
89 88
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 358 }
360 359
361 void Rtcp::OnReceivedReceiverLog(const RtcpReceiverLogMessage& receiver_log) { 360 void Rtcp::OnReceivedReceiverLog(const RtcpReceiverLogMessage& receiver_log) {
362 if (log_callback_.is_null()) 361 if (log_callback_.is_null())
363 return; 362 return;
364 log_callback_.Run(receiver_log); 363 log_callback_.Run(receiver_log);
365 } 364 }
366 365
367 } // namespace cast 366 } // namespace cast
368 } // namespace media 367 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp.h ('k') | media/cast/net/rtcp/rtcp_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698