Add a PacketOptions struct to webrtc::Transport.

This allows us to pass packet meta data, such as transport sequence
number, to libjingle and further down to the socket implementation. A
similar struct already exist in libjingle, see rtc::PacketOptions in asyncpacketsocket.h.

BUG=4173

Review URL: https://codereview.webrtc.org/1376673004

Cr-Commit-Position: refs/heads/master@{#10144}
This commit is contained in:
stefan
2015-10-02 03:39:33 -07:00
committed by Commit bot
parent da903eaabb
commit 1d8a506405
34 changed files with 140 additions and 61 deletions

View File

@ -39,7 +39,9 @@ class TestTransport : public Transport,
void SetRTCPReceiver(RTCPReceiver* rtcp_receiver) {
rtcp_receiver_ = rtcp_receiver;
}
bool SendRtp(const uint8_t* /*data*/, size_t /*len*/) override {
bool SendRtp(const uint8_t* /*data*/,
size_t /*len*/,
const PacketOptions& options) override {
ADD_FAILURE(); // FAIL() gives a compile error.
return false;
}