diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 01:27:46 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 01:27:46 +0000 |
commit | b3c03409a5538a9aa4577b10f340e14fd71d99dc (patch) | |
tree | 679974a34a0d1414ea8699f555c52b9fc6ad408f /remoting/protocol/rtp_reader.h | |
parent | aa32bccb292a8e9e153bd44544558e36f440f21e (diff) | |
download | chromium_src-b3c03409a5538a9aa4577b10f340e14fd71d99dc.zip chromium_src-b3c03409a5538a9aa4577b10f340e14fd71d99dc.tar.gz chromium_src-b3c03409a5538a9aa4577b10f340e14fd71d99dc.tar.bz2 |
Added CompoundBuffer that will be used to store data in the encoding/decoding
pipeline.
BUG=None
TEST=Unittests
Review URL: http://codereview.chromium.org/4779001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/rtp_reader.h')
-rw-r--r-- | remoting/protocol/rtp_reader.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/remoting/protocol/rtp_reader.h b/remoting/protocol/rtp_reader.h index c159f8d..e7b42de 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 { |