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 // VideoReader is a generic interface for a video stream reader. RtpVideoReader | 5 // VideoReader is a generic interface for a video stream reader. RtpVideoReader |
6 // and ProtobufVideoReader implement this interface for RTP and protobuf video | 6 // and ProtobufVideoReader implement this interface for RTP and protobuf video |
7 // streams. VideoReader is used by ConnectionToHost to read video stream. | 7 // streams. VideoReader is used by ConnectionToHost to read video stream. |
8 | 8 |
9 #ifndef REMOTING_PROTOCOL_VIDEO_READER_H_ | 9 #ifndef REMOTING_PROTOCOL_VIDEO_READER_H_ |
10 #define REMOTING_PROTOCOL_VIDEO_READER_H_ | 10 #define REMOTING_PROTOCOL_VIDEO_READER_H_ |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 static VideoReader* Create(const SessionConfig* config); | 26 static VideoReader* Create(const SessionConfig* config); |
27 | 27 |
28 virtual ~VideoReader(); | 28 virtual ~VideoReader(); |
29 | 29 |
30 // Initializies the reader. Doesn't take ownership of either |connection| | 30 // Initializies the reader. Doesn't take ownership of either |connection| |
31 // or |video_stub|. | 31 // or |video_stub|. |
32 virtual void Init(Session* session, | 32 virtual void Init(Session* session, |
33 VideoStub* video_stub) = 0; | 33 VideoStub* video_stub) = 0; |
34 | 34 |
35 // Closes the reader. The stub should not be called after Close(). | |
36 virtual void Close() = 0; | |
37 | |
38 protected: | 35 protected: |
39 VideoReader() { } | 36 VideoReader() { } |
40 | 37 |
41 private: | 38 private: |
42 DISALLOW_COPY_AND_ASSIGN(VideoReader); | 39 DISALLOW_COPY_AND_ASSIGN(VideoReader); |
43 }; | 40 }; |
44 | 41 |
45 } // namespace protocol | 42 } // namespace protocol |
46 } // namespace remoting | 43 } // namespace remoting |
47 | 44 |
48 #endif // REMOTING_PROTOCOL_VIDEO_READER_H_ | 45 #endif // REMOTING_PROTOCOL_VIDEO_READER_H_ |
OLD | NEW |