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

Unified Diff: talk/session/media/channel.h

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 3 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
Index: talk/session/media/channel.h
diff --git a/talk/session/media/channel.h b/talk/session/media/channel.h
index 0a7ce9d1a9e8355bc83ac4433a751ef22deb0354..afd67bec7fc2e8765ee441c0e73e36b424749e4a 100644
--- a/talk/session/media/channel.h
+++ b/talk/session/media/channel.h
@@ -213,6 +213,8 @@ class BaseChannel
size_t len,
const rtc::PacketTime& packet_time,
int flags);
+ void OnPacketSent(TransportChannel* channel,
+ const rtc::SentPacket& packet_sent);
void OnReadyToSend(TransportChannel* channel);
bool PacketIsRtcp(const TransportChannel* channel, const char* data,
@@ -261,10 +263,10 @@ class BaseChannel
ContentSource src,
std::string* error_desc);
- // Helper method to get RTP Absoulute SendTime extension header id if
- // present in remote supported extensions list.
- void MaybeCacheRtpAbsSendTimeHeaderExtension(
- const std::vector<RtpHeaderExtension>& extensions);
+ // Helper method to store a subset of the RTP header extensions, if
+ // present in the remote supported extensions list.
+ void MaybeCacheRtpHeaderExtensions(
+ const std::vector<RtpHeaderExtension>& extensions);
bool CheckSrtpConfig(const std::vector<CryptoParams>& cryptos,
bool* dtls,
@@ -295,6 +297,9 @@ class BaseChannel
}
private:
+ int32_t ParseTransportSequenceNumberHeaderExtension(uint8_t* data,
+ size_t length) const;
+
rtc::Thread* worker_thread_;
TransportController* transport_controller_;
MediaChannel* media_channel_;
@@ -323,6 +328,7 @@ class BaseChannel
bool dtls_keyed_;
bool secure_required_;
int rtp_abs_sendtime_extn_id_;
+ int rtp_transport_sequence_number_extn_id_;
};
// VoiceChannel is a specialization that adds support for early media, DTMF,

Powered by Google App Engine
This is Rietveld 408576698