Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: remoting/protocol/video_reader.h

Issue 4313001: Rename classes for Chromoting: (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Resolve merge conflicts Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/stream_writer.cc ('k') | remoting/protocol/video_writer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "remoting/protocol/video_stub.h" 13 #include "remoting/protocol/video_stub.h"
14 14
15 namespace remoting { 15 namespace remoting {
16 16
17 namespace protocol {
18 class Session;
19 } // namespace protocol
20
17 class ChromotocolConfig; 21 class ChromotocolConfig;
18 class ChromotocolConnection; 22 class ChromotocolConnection;
19 23
20 class VideoReader { 24 class VideoReader {
21 public: 25 public:
22 static VideoReader* Create(const ChromotocolConfig* config); 26 static VideoReader* Create(const ChromotocolConfig* config);
23 27
24 virtual ~VideoReader(); 28 virtual ~VideoReader();
25 29
26 // Initializies the reader. Doesn't take ownership of either |connection| 30 // Initializies the reader. Doesn't take ownership of either |connection|
27 // or |video_stub|. 31 // or |video_stub|.
28 virtual void Init(ChromotocolConnection* connection, 32 virtual void Init(protocol::Session* session,
29 VideoStub* video_stub) = 0; 33 VideoStub* video_stub) = 0;
30 34
31 // Closes the reader. The stub should not be called after Close(). 35 // Closes the reader. The stub should not be called after Close().
32 virtual void Close() = 0; 36 virtual void Close() = 0;
33 37
34 protected: 38 protected:
35 VideoReader() { } 39 VideoReader() { }
36 40
37 private: 41 private:
38 DISALLOW_COPY_AND_ASSIGN(VideoReader); 42 DISALLOW_COPY_AND_ASSIGN(VideoReader);
39 }; 43 };
40 44
41 } // namespace remoting 45 } // namespace remoting
42 46
43 #endif // REMOTING_PROTOCOL_VIDEO_READER_H_ 47 #endif // REMOTING_PROTOCOL_VIDEO_READER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/stream_writer.cc ('k') | remoting/protocol/video_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698