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/logging.h" | 10 #include "base/logging.h" |
11 #include "media/cast/cast_environment.h" | 11 #include "media/cast/cast_environment.h" |
12 #include "media/cast/pacing/paced_sender.h" | 12 #include "media/cast/net/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 static const size_t kRtcpCastLogHeaderSize = 12; | 16 static const size_t kRtcpCastLogHeaderSize = 12; |
17 static const size_t kRtcpSenderFrameLogSize = 4; | 17 static const size_t kRtcpSenderFrameLogSize = 4; |
18 static const size_t kRtcpReceiverFrameLogSize = 8; | 18 static const size_t kRtcpReceiverFrameLogSize = 8; |
19 static const size_t kRtcpReceiverEventLogSize = 4; | 19 static const size_t kRtcpReceiverEventLogSize = 4; |
20 | 20 |
21 namespace { | 21 namespace { |
22 uint16 MergeEventTypeAndTimestampForWireFormat( | 22 uint16 MergeEventTypeAndTimestampForWireFormat( |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 if (frame_log_messages.event_log_messages_.empty()) { | 790 if (frame_log_messages.event_log_messages_.empty()) { |
791 // We sent all messages on this frame; pop the frame header. | 791 // We sent all messages on this frame; pop the frame header. |
792 receiver_log_message->pop_front(); | 792 receiver_log_message->pop_front(); |
793 } | 793 } |
794 } | 794 } |
795 DCHECK_EQ(total_number_of_messages_to_send, 0); | 795 DCHECK_EQ(total_number_of_messages_to_send, 0); |
796 } | 796 } |
797 | 797 |
798 } // namespace cast | 798 } // namespace cast |
799 } // namespace media | 799 } // namespace media |
OLD | NEW |