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 // 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 20 matching lines...) Expand all Loading... |
31 // parameter is set to true on success. | 31 // parameter is set to true on success. |
32 typedef base::Callback<void(bool)> InitializedCallback; | 32 typedef base::Callback<void(bool)> InitializedCallback; |
33 | 33 |
34 virtual ~VideoReader(); | 34 virtual ~VideoReader(); |
35 | 35 |
36 // Initializies the reader. Doesn't take ownership of either |connection| | 36 // Initializies the reader. Doesn't take ownership of either |connection| |
37 // or |video_stub|. | 37 // or |video_stub|. |
38 virtual void Init(Session* session, | 38 virtual void Init(Session* session, |
39 VideoStub* video_stub, | 39 VideoStub* video_stub, |
40 const InitializedCallback& callback) = 0; | 40 const InitializedCallback& callback) = 0; |
| 41 virtual bool is_connected() = 0; |
41 | 42 |
42 protected: | 43 protected: |
43 VideoReader() { } | 44 VideoReader() { } |
44 | 45 |
45 private: | 46 private: |
46 DISALLOW_COPY_AND_ASSIGN(VideoReader); | 47 DISALLOW_COPY_AND_ASSIGN(VideoReader); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace protocol | 50 } // namespace protocol |
50 } // namespace remoting | 51 } // namespace remoting |
51 | 52 |
52 #endif // REMOTING_PROTOCOL_VIDEO_READER_H_ | 53 #endif // REMOTING_PROTOCOL_VIDEO_READER_H_ |
OLD | NEW |