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

Unified Diff: webrtc/transport.h

Issue 1376673004: Add a PacketOptions struct to webrtc::Transport. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comment added 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
« no previous file with comments | « webrtc/test/rtp_rtcp_observer.h ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/transport.h
diff --git a/webrtc/transport.h b/webrtc/transport.h
index 86b3e2e5ea8169c0f97c312fd84a765a37d6af5e..7b62f6543dcb399ae6d060eb5356a72d64d4a2a3 100644
--- a/webrtc/transport.h
+++ b/webrtc/transport.h
@@ -17,9 +17,17 @@
namespace webrtc {
+struct PacketOptions {
+ // A 16 bits positive id. Negative ids are invalid and should be interpreted
+ // as packet_id not being set.
+ int packet_id = -1;
+};
+
class Transport {
public:
- virtual bool SendRtp(const uint8_t* packet, size_t length) = 0;
+ virtual bool SendRtp(const uint8_t* packet,
+ size_t length,
+ const PacketOptions& options) = 0;
virtual bool SendRtcp(const uint8_t* packet, size_t length) = 0;
protected:
« no previous file with comments | « webrtc/test/rtp_rtcp_observer.h ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698