OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 11 #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ |
12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/api/call/flexfec_receive_stream.h" | |
18 #include "webrtc/base/basictypes.h" | 17 #include "webrtc/base/basictypes.h" |
19 #include "webrtc/base/criticalsection.h" | 18 #include "webrtc/base/criticalsection.h" |
19 #include "webrtc/call/flexfec_receive_stream.h" | |
20 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" | 20 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 namespace internal { | 24 class FlexfecReceiveStreamImpl : public FlexfecReceiveStream { |
the sun
2016/12/09 08:59:38
Note: after this change it becomes tempting to fus
brandtr
2016/12/09 09:19:23
That though did cross my mind. I'll wait for the d
| |
25 | |
26 class FlexfecReceiveStream : public webrtc::FlexfecReceiveStream { | |
27 public: | 25 public: |
28 FlexfecReceiveStream(const Config& config, | 26 FlexfecReceiveStreamImpl(const Config& config, |
29 RecoveredPacketReceiver* recovered_packet_callback); | 27 RecoveredPacketReceiver* recovered_packet_callback); |
30 ~FlexfecReceiveStream(); | 28 ~FlexfecReceiveStreamImpl(); |
the sun
2016/12/09 08:59:37
nit: override
brandtr
2016/12/09 09:19:23
Done.
| |
31 | 29 |
32 bool AddAndProcessReceivedPacket(const uint8_t* packet, size_t length); | 30 bool AddAndProcessReceivedPacket(const uint8_t* packet, size_t length); |
33 | 31 |
34 // Implements webrtc::FlexfecReceiveStream. | 32 // Implements FlexfecReceiveStream. |
35 void Start() override; | 33 void Start() override; |
36 void Stop() override; | 34 void Stop() override; |
37 Stats GetStats() const override; | 35 Stats GetStats() const override; |
38 | 36 |
39 private: | 37 private: |
40 rtc::CriticalSection crit_; | 38 rtc::CriticalSection crit_; |
41 bool started_ GUARDED_BY(crit_); | 39 bool started_ GUARDED_BY(crit_); |
42 | 40 |
43 const Config config_; | 41 const Config config_; |
44 const std::unique_ptr<FlexfecReceiver> receiver_; | 42 const std::unique_ptr<FlexfecReceiver> receiver_; |
45 }; | 43 }; |
46 | 44 |
47 } // namespace internal | |
48 | |
49 } // namespace webrtc | 45 } // namespace webrtc |
50 | 46 |
51 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 47 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ |
OLD | NEW |