| OLD | NEW |
| 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 #ifndef MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ |
| 6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 6 #define MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <list> | 11 #include <list> |
| 12 #include <utility> |
| 13 #include <vector> |
| 12 | 14 |
| 13 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 14 #include "base/macros.h" | 16 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 16 #include "media/cast/logging/logging_defines.h" | 18 #include "media/cast/logging/logging_defines.h" |
| 17 #include "media/cast/net/cast_transport_defines.h" | 19 #include "media/cast/net/cast_transport_defines.h" |
| 18 | 20 |
| 19 namespace media { | 21 namespace media { |
| 20 namespace cast { | 22 namespace cast { |
| 21 | 23 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 119 |
| 118 // TODO(hubbe): Document members of this struct. | 120 // TODO(hubbe): Document members of this struct. |
| 119 struct RtpReceiverStatistics { | 121 struct RtpReceiverStatistics { |
| 120 RtpReceiverStatistics(); | 122 RtpReceiverStatistics(); |
| 121 uint8_t fraction_lost; | 123 uint8_t fraction_lost; |
| 122 uint32_t cumulative_lost; // 24 bits valid. | 124 uint32_t cumulative_lost; // 24 bits valid. |
| 123 uint32_t extended_high_sequence_number; | 125 uint32_t extended_high_sequence_number; |
| 124 uint32_t jitter; | 126 uint32_t jitter; |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 // These are intended to only be created using Rtcp::ConvertToNTPAndSave. | 129 // Created on a RTP receiver to be passed over IPC. |
| 128 struct RtcpTimeData { | 130 struct RtcpTimeData { |
| 129 uint32_t ntp_seconds; | 131 uint32_t ntp_seconds; |
| 130 uint32_t ntp_fraction; | 132 uint32_t ntp_fraction; |
| 131 base::TimeTicks timestamp; | 133 base::TimeTicks timestamp; |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 // This struct is used to encapsulate all the parameters of the | 136 // This struct is used to encapsulate all the parameters of the |
| 135 // SendRtcpFromRtpReceiver for IPC transportation. | 137 // SendRtcpFromRtpReceiver for IPC transportation. |
| 136 struct SendRtcpFromRtpReceiver_Params { | 138 struct SendRtcpFromRtpReceiver_Params { |
| 137 SendRtcpFromRtpReceiver_Params(); | 139 SendRtcpFromRtpReceiver_Params(); |
| 138 ~SendRtcpFromRtpReceiver_Params(); | 140 ~SendRtcpFromRtpReceiver_Params(); |
| 139 uint32_t ssrc; | 141 uint32_t ssrc; |
| 140 uint32_t sender_ssrc; | 142 uint32_t sender_ssrc; |
| 141 RtcpTimeData time_data; | 143 RtcpTimeData time_data; |
| 142 scoped_ptr<RtcpCastMessage> cast_message; | 144 scoped_ptr<RtcpCastMessage> cast_message; |
| 143 base::TimeDelta target_delay; | 145 base::TimeDelta target_delay; |
| 144 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events; | 146 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events; |
| 145 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; | 147 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 | 150 |
| 149 } // namespace cast | 151 } // namespace cast |
| 150 } // namespace media | 152 } // namespace media |
| 151 | 153 |
| 152 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 154 #endif // MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ |
| OLD | NEW |