Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: webrtc/call/flexfec_receive_stream_impl.h

Issue 2967913002: Get rid of unnecessary cast of FlexfecReceiveStreamImpl to FlexfecReceiveStream (Closed)
Patch Set: Rebase + remove empty line. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/call/flexfec_receive_stream.h ('k') | webrtc/call/flexfec_receive_stream_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
50 const Config& GetConfig() const override;
52 51
53 private: 52 private:
54 // Config. 53 // Config.
55 const Config config_; 54 const Config config_;
56 bool started_ GUARDED_BY(crit_); 55 bool started_ GUARDED_BY(crit_);
57 rtc::CriticalSection crit_; 56 rtc::CriticalSection crit_;
58 57
59 // Erasure code interfacing. 58 // Erasure code interfacing.
60 const std::unique_ptr<FlexfecReceiver> receiver_; 59 const std::unique_ptr<FlexfecReceiver> receiver_;
61 60
62 // RTCP reporting. 61 // RTCP reporting.
63 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; 62 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_;
64 const std::unique_ptr<RtpRtcp> rtp_rtcp_; 63 const std::unique_ptr<RtpRtcp> rtp_rtcp_;
65 ProcessThread* process_thread_; 64 ProcessThread* process_thread_;
66 65
67 std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_; 66 std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_;
68 }; 67 };
69 68
70 } // namespace webrtc 69 } // namespace webrtc
71 70
72 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ 71 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/call/flexfec_receive_stream.h ('k') | webrtc/call/flexfec_receive_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698