| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/rtcp/rtcp_sender.h" | 5 #include "media/cast/rtcp/rtcp_sender.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "media/cast/pacing/paced_sender.h" | 12 #include "media/cast/pacing/paced_sender.h" |
| 13 #include "media/cast/rtcp/rtcp_utility.h" | 13 #include "media/cast/rtcp/rtcp_utility.h" |
| 14 #include "net/base/big_endian.h" | 14 #include "net/base/big_endian.h" |
| 15 | 15 |
| 16 namespace media { | 16 namespace media { |
| 17 namespace cast { | 17 namespace cast { |
| 18 | 18 |
| 19 static const size_t kRtcpMaxNackFields = 253; | |
| 20 static const size_t kRtcpMaxCastLossFields = 100; | |
| 21 | |
| 22 RtcpSender::RtcpSender(PacedPacketSender* outgoing_transport, | 19 RtcpSender::RtcpSender(PacedPacketSender* outgoing_transport, |
| 23 uint32 sending_ssrc, | 20 uint32 sending_ssrc, |
| 24 const std::string& c_name) | 21 const std::string& c_name) |
| 25 : ssrc_(sending_ssrc), | 22 : ssrc_(sending_ssrc), |
| 26 c_name_(c_name), | 23 c_name_(c_name), |
| 27 transport_(outgoing_transport) { | 24 transport_(outgoing_transport) { |
| 28 DCHECK_LT(c_name_.length(), kRtcpCnameSize) << "Invalid config"; | 25 DCHECK_LT(c_name_.length(), kRtcpCnameSize) << "Invalid config"; |
| 29 } | 26 } |
| 30 | 27 |
| 31 RtcpSender::~RtcpSender() {} | 28 RtcpSender::~RtcpSender() {} |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 578 |
| 582 void RtcpSender::BuildReceiverLog( | 579 void RtcpSender::BuildReceiverLog( |
| 583 const RtcpReceiverLogMessage* receiver_log_message, | 580 const RtcpReceiverLogMessage* receiver_log_message, |
| 584 std::vector<uint8>* packet) const { | 581 std::vector<uint8>* packet) const { |
| 585 // TODO(pwestin): Implement. | 582 // TODO(pwestin): Implement. |
| 586 NOTIMPLEMENTED(); | 583 NOTIMPLEMENTED(); |
| 587 } | 584 } |
| 588 | 585 |
| 589 } // namespace cast | 586 } // namespace cast |
| 590 } // namespace media | 587 } // namespace media |
| OLD | NEW |