Chromium Code Reviews

Side by Side Diff: webrtc/modules/rtp_rtcp/source/fec_receiver_impl.h

Issue 1513303003: [rtp_rtcp] fixed lint errors in rtp_rtcp module that are not fixed in other CLs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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_FEC_RECEIVER_IMPL_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
13 13
14 // This header is included to get the nested declaration of Packet structure. 14 // This header is included to get the nested declaration of Packet structure.
15 15
16 #include "webrtc/base/scoped_ptr.h" 16 #include "webrtc/base/scoped_ptr.h"
17 #include "webrtc/modules/rtp_rtcp/include/fec_receiver.h" 17 #include "webrtc/modules/rtp_rtcp/include/fec_receiver.h"
18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
19 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" 19 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
20 #include "webrtc/typedefs.h" 20 #include "webrtc/typedefs.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 23
24 class CriticalSectionWrapper; 24 class CriticalSectionWrapper;
25 25
26 class FecReceiverImpl : public FecReceiver { 26 class FecReceiverImpl : public FecReceiver {
27 public: 27 public:
28 FecReceiverImpl(RtpData* callback); 28 explicit FecReceiverImpl(RtpData* callback);
29 virtual ~FecReceiverImpl(); 29 virtual ~FecReceiverImpl();
30 30
31 int32_t AddReceivedRedPacket(const RTPHeader& rtp_header, 31 int32_t AddReceivedRedPacket(const RTPHeader& rtp_header,
32 const uint8_t* incoming_rtp_packet, 32 const uint8_t* incoming_rtp_packet,
33 size_t packet_length, 33 size_t packet_length,
34 uint8_t ulpfec_payload_type) override; 34 uint8_t ulpfec_payload_type) override;
35 35
36 int32_t ProcessReceivedFec() override; 36 int32_t ProcessReceivedFec() override;
37 37
38 FecPacketCounter GetPacketCounter() const override; 38 FecPacketCounter GetPacketCounter() const override;
39 39
40 private: 40 private:
41 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_; 41 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_;
42 RtpData* recovered_packet_callback_; 42 RtpData* recovered_packet_callback_;
43 ForwardErrorCorrection* fec_; 43 ForwardErrorCorrection* fec_;
44 // TODO(holmer): In the current version received_packet_list_ is never more 44 // TODO(holmer): In the current version received_packet_list_ is never more
45 // than one packet, since we process FEC every time a new packet 45 // than one packet, since we process FEC every time a new packet
46 // arrives. We should remove the list. 46 // arrives. We should remove the list.
47 ForwardErrorCorrection::ReceivedPacketList received_packet_list_; 47 ForwardErrorCorrection::ReceivedPacketList received_packet_list_;
48 ForwardErrorCorrection::RecoveredPacketList recovered_packet_list_; 48 ForwardErrorCorrection::RecoveredPacketList recovered_packet_list_;
49 FecPacketCounter packet_counter_; 49 FecPacketCounter packet_counter_;
50 }; 50 };
51 } // namespace webrtc 51 } // namespace webrtc
52 52
53 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_ 53 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/CPPLINT.cfg ('k') | webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine