| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ | 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ |
| 6 #define REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ | 6 #define REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ |
| 7 | 7 |
| 8 #include "remoting/protocol/rtp_writer.h" | 8 #include "remoting/protocol/rtp_writer.h" |
| 9 #include "remoting/protocol/video_writer.h" | 9 #include "remoting/protocol/video_writer.h" |
| 10 | 10 |
| 11 namespace remoting { | 11 namespace remoting { |
| 12 namespace protocol { | 12 namespace protocol { |
| 13 | 13 |
| 14 class Session; | 14 class Session; |
| 15 | 15 |
| 16 class RtpVideoWriter : public VideoWriter { | 16 class RtpVideoWriter : public VideoWriter { |
| 17 public: | 17 public: |
| 18 RtpVideoWriter(); | 18 RtpVideoWriter(); |
| 19 virtual ~RtpVideoWriter(); | 19 virtual ~RtpVideoWriter(); |
| 20 | 20 |
| 21 // VideoWriter interface. | 21 // VideoWriter interface. |
| 22 virtual void Init(protocol::Session* session); | 22 virtual void Init(protocol::Session* session) OVERRIDE; |
| 23 virtual void Close() OVERRIDE; |
| 23 | 24 |
| 24 // VideoStub interface. | 25 // VideoStub interface. |
| 25 virtual void ProcessVideoPacket(const VideoPacket* packet, Task* done); | 26 virtual void ProcessVideoPacket(const VideoPacket* packet, |
| 26 virtual int GetPendingPackets(); | 27 Task* done) OVERRIDE; |
| 28 virtual int GetPendingPackets() OVERRIDE; |
| 27 | 29 |
| 28 private: | 30 private: |
| 29 RtpWriter rtp_writer_; | 31 RtpWriter rtp_writer_; |
| 30 | 32 |
| 31 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter); | 33 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace protocol | 36 } // namespace protocol |
| 35 } // namespace remoting | 37 } // namespace remoting |
| 36 | 38 |
| 37 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ | 39 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ |
| OLD | NEW |