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. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Clock* clock_; | 86 Clock* clock_; |
87 rtc::scoped_ptr<CriticalSectionWrapper> critsect_; | 87 rtc::scoped_ptr<CriticalSectionWrapper> critsect_; |
88 bool store_ GUARDED_BY(critsect_); | 88 bool store_ GUARDED_BY(critsect_); |
89 uint32_t prev_index_ GUARDED_BY(critsect_); | 89 uint32_t prev_index_ GUARDED_BY(critsect_); |
90 | 90 |
91 struct StoredPacket { | 91 struct StoredPacket { |
92 StoredPacket(); | 92 StoredPacket(); |
93 uint16_t sequence_number = 0; | 93 uint16_t sequence_number = 0; |
94 int64_t time_ms = 0; | 94 int64_t time_ms = 0; |
95 int64_t send_time = 0; | 95 int64_t send_time = 0; |
96 StorageType storage_type = kDontStore; | 96 StorageType storage_type = kDontRetransmit; |
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 |