OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
| 6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
| 7 |
| 8 #include "remoting/protocol/rtp_reader.h" |
| 9 #include "remoting/protocol/video_reader.h" |
| 10 |
| 11 namespace remoting { |
| 12 |
| 13 class RtpVideoReader : public VideoReader { |
| 14 public: |
| 15 RtpVideoReader(); |
| 16 virtual ~RtpVideoReader(); |
| 17 |
| 18 // VideoReader interface. |
| 19 virtual void Init(ChromotocolConnection* connection, VideoStub* video_stub); |
| 20 virtual void Close(); |
| 21 |
| 22 private: |
| 23 void OnRtpPacket(const RtpPacket& rtp_packet); |
| 24 |
| 25 RtpReader rtp_reader_; |
| 26 |
| 27 // The stub that processes all received packets. |
| 28 VideoStub* video_stub_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); |
| 31 }; |
| 32 |
| 33 } // namespace remoting |
| 34 |
| 35 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
OLD | NEW |