Index: remoting/protocol/rtp_reader.h |
diff --git a/remoting/protocol/rtp_reader.h b/remoting/protocol/rtp_reader.h |
index c159f8d0ae1cfc15927c1b26712648fb822aa86c..e7b42def6fea1c2c10b5d2399c0a2fd495105718 100644 |
--- a/remoting/protocol/rtp_reader.h |
+++ b/remoting/protocol/rtp_reader.h |
@@ -6,20 +6,26 @@ |
#define REMOTING_PROTOCOL_RTP_READER_H_ |
#include "base/scoped_ptr.h" |
+#include "remoting/base/compound_buffer.h" |
#include "remoting/protocol/rtp_utils.h" |
#include "remoting/protocol/socket_reader_base.h" |
namespace remoting { |
namespace protocol { |
-struct RtpPacket { |
+class RtpPacket { |
+ public: |
RtpPacket(); |
~RtpPacket(); |
- RtpHeader header; |
- scoped_refptr<net::IOBuffer> data; |
- char* payload; |
- int payload_size; |
+ const RtpHeader& header() const { return header_; } |
+ RtpHeader* mutable_header() { return &header_; } |
+ const CompoundBuffer& payload() const { return payload_; } |
+ CompoundBuffer* mutable_payload() { return &payload_; } |
+ |
+ private: |
+ RtpHeader header_; |
+ CompoundBuffer payload_; |
}; |
class RtpReader : public SocketReaderBase { |