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

Unified Diff: media/cast/rtcp/rtcp_utility.cc

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Injecting TaskRunner Created 7 years 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/rtcp/rtcp_utility.cc
diff --git a/media/cast/rtcp/rtcp_utility.cc b/media/cast/rtcp/rtcp_utility.cc
index c0d72dff1748b3c55303800220f6bfcd3141d605..adf2a93005a680ed9435d4ee9cbc2cecf90290bf 100644
--- a/media/cast/rtcp/rtcp_utility.cc
+++ b/media/cast/rtcp/rtcp_utility.cc
@@ -5,6 +5,7 @@
#include "media/cast/rtcp/rtcp_utility.h"
#include "base/logging.h"
+#include "media/cast/transport/cast_transport_defines.h"
#include "net/base/big_endian.h"
namespace media {
@@ -109,44 +110,44 @@ void RtcpParser::IterateTopLevel() {
if (rtcp_block_end_ > rtcp_data_end_) return; // Bad block!
switch (header.PT) {
- case kPacketTypeSenderReport:
+ case transport::kPacketTypeSenderReport:
// number of Report blocks
number_of_blocks_ = header.IC;
ParseSR();
return;
- case kPacketTypeReceiverReport:
+ case transport::kPacketTypeReceiverReport:
// number of Report blocks
number_of_blocks_ = header.IC;
ParseRR();
return;
- case kPacketTypeSdes:
+ case transport::kPacketTypeSdes:
// number of Sdes blocks
number_of_blocks_ = header.IC;
if (!ParseSdes()) {
break; // Nothing supported found, continue to next block!
}
return;
- case kPacketTypeBye:
+ case transport::kPacketTypeBye:
number_of_blocks_ = header.IC;
if (!ParseBye()) {
// Nothing supported found, continue to next block!
break;
}
return;
- case kPacketTypeApplicationDefined:
+ case transport::kPacketTypeApplicationDefined:
if (!ParseApplicationDefined(header.IC)) {
// Nothing supported found, continue to next block!
break;
}
return;
- case kPacketTypeGenericRtpFeedback: // Fall through!
- case kPacketTypePayloadSpecific:
+ case transport::kPacketTypeGenericRtpFeedback: // Fall through!
+ case transport::kPacketTypePayloadSpecific:
if (!ParseFeedBackCommon(header)) {
// Nothing supported found, continue to next block!
break;
}
return;
- case kPacketTypeXr:
+ case transport::kPacketTypeXr:
if (!ParseExtendedReport()) {
break; // Nothing supported found, continue to next block!
}
@@ -616,8 +617,9 @@ bool RtcpParser::ParseCastSenderLogItem() {
}
bool RtcpParser::ParseFeedBackCommon(const RtcpCommonHeader& header) {
- DCHECK((header.PT == kPacketTypeGenericRtpFeedback) ||
- (header.PT == kPacketTypePayloadSpecific)) << "Invalid state";
+ DCHECK((header.PT == transport::kPacketTypeGenericRtpFeedback) ||
+ (header.PT == transport::kPacketTypePayloadSpecific)) <<
+ "Invalid state";
ptrdiff_t length = rtcp_block_end_ - rtcp_data_;
@@ -635,7 +637,7 @@ bool RtcpParser::ParseFeedBackCommon(const RtcpCommonHeader& header) {
rtcp_data_ += 12;
- if (header.PT == kPacketTypeGenericRtpFeedback) {
+ if (header.PT == transport::kPacketTypeGenericRtpFeedback) {
// Transport layer feedback
switch (header.IC) {
case 1:
@@ -668,7 +670,7 @@ bool RtcpParser::ParseFeedBackCommon(const RtcpCommonHeader& header) {
EndCurrentBlock();
return false;
- } else if (header.PT == kPacketTypePayloadSpecific) {
+ } else if (header.PT == transport::kPacketTypePayloadSpecific) {
// Payload specific feedback
switch (header.IC) {
case 1:

Powered by Google App Engine
This is Rietveld 408576698