| 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 | 10 |
| 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/base/constructormagic.h" |
| 18 #include "webrtc/base/criticalsection.h" |
| 19 #include "webrtc/base/thread_annotations.h" |
| 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 18 #include "webrtc/rtc_base/constructormagic.h" | |
| 19 #include "webrtc/rtc_base/criticalsection.h" | |
| 20 #include "webrtc/rtc_base/thread_annotations.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 RtpPacketToSend; | 26 class RtpPacketToSend; |
| 27 | 27 |
| 28 class RtpPacketHistory { | 28 class RtpPacketHistory { |
| 29 public: | 29 public: |
| 30 static constexpr size_t kMaxCapacity = 9600; | 30 static constexpr size_t kMaxCapacity = 9600; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 Clock* clock_; | 76 Clock* clock_; |
| 77 rtc::CriticalSection critsect_; | 77 rtc::CriticalSection critsect_; |
| 78 bool store_ GUARDED_BY(critsect_); | 78 bool store_ GUARDED_BY(critsect_); |
| 79 uint32_t prev_index_ GUARDED_BY(critsect_); | 79 uint32_t prev_index_ GUARDED_BY(critsect_); |
| 80 std::vector<StoredPacket> stored_packets_ GUARDED_BY(critsect_); | 80 std::vector<StoredPacket> stored_packets_ GUARDED_BY(critsect_); |
| 81 | 81 |
| 82 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtpPacketHistory); | 82 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtpPacketHistory); |
| 83 }; | 83 }; |
| 84 } // namespace webrtc | 84 } // namespace webrtc |
| 85 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ | 85 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_ |
| OLD | NEW |