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

Unified Diff: webrtc/call/flexfec_receive_stream_impl.h

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Rename foo_audio --> audio_foo. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/call/flexfec_receive_stream_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/flexfec_receive_stream_impl.h
diff --git a/webrtc/call/flexfec_receive_stream_impl.h b/webrtc/call/flexfec_receive_stream_impl.h
index 705182906cd060c6737b4f8ee76a338e4d32b7ca..b65531ac683e526059b457a32de3a39c95cab110 100644
--- a/webrtc/call/flexfec_receive_stream_impl.h
+++ b/webrtc/call/flexfec_receive_stream_impl.h
@@ -15,6 +15,8 @@
#include "webrtc/base/criticalsection.h"
#include "webrtc/call/flexfec_receive_stream.h"
+#include "webrtc/call/rtp_transport_controller_receive.h"
+#include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h"
namespace webrtc {
@@ -26,7 +28,9 @@ class RtcpRttStats;
class RtpPacketReceived;
class RtpRtcp;
-class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
+class FlexfecReceiveStreamImpl : public FlexfecReceiveStream,
+ public RtpPacketReceiverInterface,
+ public RtpPacketSinkInterface {
public:
FlexfecReceiveStreamImpl(const Config& config,
RecoveredPacketReceiver* recovered_packet_receiver,
@@ -36,8 +40,13 @@ class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
const Config& GetConfig() const { return config_; }
- // TODO(nisse): Intended to be part of an RtpPacketReceiver interface.
- void OnRtpPacket(const RtpPacketReceived& packet);
+ // webrtc::RtpPacketReceiverInterface implementation, for the
+ // FlexFEC stream.
+ bool OnRtpPacketReceive(RtpPacketReceived* packet) override;
+
+ // webrtc::RtpPacketSinkInterface implementation, for the media
+ // streams protected by FlexFEC.
+ void OnRtpPacket(const RtpPacketReceived& packet) override;
// Implements FlexfecReceiveStream.
void Start() override;
@@ -47,6 +56,8 @@ class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
private:
// Config.
const Config config_;
+ const RtpHeaderExtensionMap rtp_header_extensions_;
+
bool started_ GUARDED_BY(crit_);
rtc::CriticalSection crit_;
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/call/flexfec_receive_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698