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

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: . 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: webrtc/transport.h
diff --git a/webrtc/transport.h b/webrtc/transport.h
index 86b3e2e5ea8169c0f97c312fd84a765a37d6af5e..81a56748b5ce2f868fdeb11025e390397327a6ca 100644
--- a/webrtc/transport.h
+++ b/webrtc/transport.h
@@ -17,9 +17,15 @@
namespace webrtc {
+struct PacketOptions {
+ int transport_sequence_number = -1;
pbos-webrtc 2015/09/29 09:54:42 Shouldn't this one be a fixed-size datatype? Or is
stefan-webrtc 2015/09/29 10:00:13 It is uint16_t or -1. We could make it int32_t ins
+};
+
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:

Powered by Google App Engine
This is Rietveld 408576698