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 | 12 |
| 13 namespace protocol { |
| 14 class Session; |
| 15 } // namespace protocol |
| 16 |
13 class RtpVideoWriter : public VideoWriter { | 17 class RtpVideoWriter : public VideoWriter { |
14 public: | 18 public: |
15 RtpVideoWriter(); | 19 RtpVideoWriter(); |
16 virtual ~RtpVideoWriter(); | 20 virtual ~RtpVideoWriter(); |
17 | 21 |
18 // VideoWriter interface. | 22 // VideoWriter interface. |
19 virtual void Init(ChromotocolConnection* connection); | 23 virtual void Init(protocol::Session* session); |
20 virtual void SendPacket(const VideoPacket& packet); | 24 virtual void SendPacket(const VideoPacket& packet); |
21 virtual int GetPendingPackets(); | 25 virtual int GetPendingPackets(); |
22 virtual void Close(); | 26 virtual void Close(); |
23 | 27 |
24 private: | 28 private: |
25 RtpWriter rtp_writer_; | 29 RtpWriter rtp_writer_; |
26 | 30 |
27 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter); | 31 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter); |
28 }; | 32 }; |
29 | 33 |
30 } // namespace remoting | 34 } // namespace remoting |
31 | 35 |
32 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ | 36 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ |
OLD | NEW |