OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_READER_H_ | 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ | 6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "remoting/protocol/rtcp_writer.h" | 11 #include "remoting/protocol/rtcp_writer.h" |
12 #include "remoting/protocol/rtp_reader.h" | 12 #include "remoting/protocol/rtp_reader.h" |
13 #include "remoting/protocol/video_reader.h" | 13 #include "remoting/protocol/video_reader.h" |
14 | 14 |
| 15 namespace base { |
| 16 class MessageLoopProxy; |
| 17 } // namespace base |
| 18 |
15 namespace remoting { | 19 namespace remoting { |
16 namespace protocol { | 20 namespace protocol { |
17 | 21 |
18 class RtcpWriter; | 22 class RtcpWriter; |
19 class RtpReader; | 23 class RtpReader; |
20 class Session; | 24 class Session; |
21 | 25 |
22 class RtpVideoReader : public VideoReader { | 26 class RtpVideoReader : public VideoReader { |
23 public: | 27 public: |
24 RtpVideoReader(); | 28 RtpVideoReader(base::MessageLoopProxy* message_loop); |
25 virtual ~RtpVideoReader(); | 29 virtual ~RtpVideoReader(); |
26 | 30 |
27 // VideoReader interface. | 31 // VideoReader interface. |
28 virtual void Init(protocol::Session* session, | 32 virtual void Init(protocol::Session* session, |
29 VideoStub* video_stub, | 33 VideoStub* video_stub, |
30 const InitializedCallback& callback) OVERRIDE; | 34 const InitializedCallback& callback) OVERRIDE; |
31 | 35 |
32 private: | 36 private: |
33 friend class RtpVideoReaderTest; | 37 friend class RtpVideoReaderTest; |
34 | 38 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // The stub that processes all received packets. | 84 // The stub that processes all received packets. |
81 VideoStub* video_stub_; | 85 VideoStub* video_stub_; |
82 | 86 |
83 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); | 87 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); |
84 }; | 88 }; |
85 | 89 |
86 } // namespace protocol | 90 } // namespace protocol |
87 } // namespace remoting | 91 } // namespace remoting |
88 | 92 |
89 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ | 93 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ |
OLD | NEW |