| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 * | 9 * |
| 10 * Class for storing RTP packets. | 10 * Class for storing RTP packets. |
| 11 */ | 11 */ |
| 12 | 12 |
| 13 #ifndef WEBRTC_MODULES_RTP_RTCP_RTP_PACKET_HISTORY_H_ | 13 #ifndef WEBRTC_MODULES_RTP_RTCP_RTP_PACKET_HISTORY_H_ |
| 14 #define WEBRTC_MODULES_RTP_RTCP_RTP_PACKET_HISTORY_H_ | 14 #define WEBRTC_MODULES_RTP_RTCP_RTP_PACKET_HISTORY_H_ |
| 15 | 15 |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/thread_annotations.h" | 18 #include "webrtc/base/thread_annotations.h" |
| 19 #include "webrtc/modules/interface/module_common_types.h" | 19 #include "webrtc/modules/include/module_common_types.h" |
| 20 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 21 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 | 24 |
| 25 class Clock; | 25 class Clock; |
| 26 class CriticalSectionWrapper; | 26 class CriticalSectionWrapper; |
| 27 | 27 |
| 28 static const size_t kMaxHistoryCapacity = 9600; | 28 static const size_t kMaxHistoryCapacity = 9600; |
| 29 | 29 |
| 30 class RTPPacketHistory { | 30 class RTPPacketHistory { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 StorageType storage_type = kDontRetransmit; | 95 StorageType storage_type = kDontRetransmit; |
| 96 bool has_been_retransmitted = false; | 96 bool has_been_retransmitted = false; |
| 97 | 97 |
| 98 uint8_t data[IP_PACKET_SIZE]; | 98 uint8_t data[IP_PACKET_SIZE]; |
| 99 size_t length = 0; | 99 size_t length = 0; |
| 100 }; | 100 }; |
| 101 std::vector<StoredPacket> stored_packets_ GUARDED_BY(critsect_); | 101 std::vector<StoredPacket> stored_packets_ GUARDED_BY(critsect_); |
| 102 }; | 102 }; |
| 103 } // namespace webrtc | 103 } // namespace webrtc |
| 104 #endif // WEBRTC_MODULES_RTP_RTCP_RTP_PACKET_HISTORY_H_ | 104 #endif // WEBRTC_MODULES_RTP_RTCP_RTP_PACKET_HISTORY_H_ |
| OLD | NEW |