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 |
(...skipping 22 matching lines...) Expand all Loading... | |
33 public RtpPacketSinkInterface { | 33 public RtpPacketSinkInterface { |
34 public: | 34 public: |
35 FlexfecReceiveStreamImpl( | 35 FlexfecReceiveStreamImpl( |
36 RtpStreamReceiverControllerInterface* receiver_controller, | 36 RtpStreamReceiverControllerInterface* receiver_controller, |
37 const Config& config, | 37 const Config& config, |
38 RecoveredPacketReceiver* recovered_packet_receiver, | 38 RecoveredPacketReceiver* recovered_packet_receiver, |
39 RtcpRttStats* rtt_stats, | 39 RtcpRttStats* rtt_stats, |
40 ProcessThread* process_thread); | 40 ProcessThread* process_thread); |
41 ~FlexfecReceiveStreamImpl() override; | 41 ~FlexfecReceiveStreamImpl() override; |
42 | 42 |
43 const Config& GetConfig() const { return config_; } | |
44 | |
45 // RtpPacketSinkInterface. | 43 // RtpPacketSinkInterface. |
46 void OnRtpPacket(const RtpPacketReceived& packet) override; | 44 void OnRtpPacket(const RtpPacketReceived& packet) override; |
47 | 45 |
48 // Implements FlexfecReceiveStream. | 46 // Implements FlexfecReceiveStream. |
49 void Start() override; | 47 void Start() override; |
50 void Stop() override; | 48 void Stop() override; |
51 Stats GetStats() const override; | 49 Stats GetStats() const override; |
52 | 50 |
51 const Config& GetConfig() const override; | |
eladalon
2017/07/04 09:56:26
Might also be a good idea to return a copy of the
ossu
2017/07/21 13:07:15
IMO, there's no reason to return a copy unless acc
eladalon
2017/07/21 13:19:31
I was thinking about fool-proofing it, but I guess
| |
52 | |
53 private: | 53 private: |
54 // Config. | 54 // Config. |
55 const Config config_; | 55 const Config config_; |
56 bool started_ GUARDED_BY(crit_); | 56 bool started_ GUARDED_BY(crit_); |
57 rtc::CriticalSection crit_; | 57 rtc::CriticalSection crit_; |
58 | 58 |
59 // Erasure code interfacing. | 59 // Erasure code interfacing. |
60 const std::unique_ptr<FlexfecReceiver> receiver_; | 60 const std::unique_ptr<FlexfecReceiver> receiver_; |
61 | 61 |
62 // RTCP reporting. | 62 // RTCP reporting. |
63 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; | 63 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
64 const std::unique_ptr<RtpRtcp> rtp_rtcp_; | 64 const std::unique_ptr<RtpRtcp> rtp_rtcp_; |
65 ProcessThread* process_thread_; | 65 ProcessThread* process_thread_; |
66 | 66 |
67 std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_; | 67 std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace webrtc | 70 } // namespace webrtc |
71 | 71 |
72 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ | 72 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ |
OLD | NEW |