| 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 11 matching lines...) Expand all Loading... |
| 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 { |
| 31 public: | 31 public: |
| 32 RTPPacketHistory(Clock* clock); | 32 explicit RTPPacketHistory(Clock* clock); |
| 33 ~RTPPacketHistory(); | 33 ~RTPPacketHistory(); |
| 34 | 34 |
| 35 void SetStorePacketsStatus(bool enable, uint16_t number_to_store); | 35 void SetStorePacketsStatus(bool enable, uint16_t number_to_store); |
| 36 | 36 |
| 37 bool StorePackets() const; | 37 bool StorePackets() const; |
| 38 | 38 |
| 39 // Stores RTP packet. | 39 // Stores RTP packet. |
| 40 int32_t PutRTPPacket(const uint8_t* packet, | 40 int32_t PutRTPPacket(const uint8_t* packet, |
| 41 size_t packet_length, | 41 size_t packet_length, |
| 42 int64_t capture_time_ms, | 42 int64_t capture_time_ms, |
| (...skipping 52 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_SOURCE_RTP_PACKET_HISTORY_H_ | 104 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ |
| OLD | NEW |