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

Side by Side Diff: remoting/protocol/video_writer.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/video_reader.h ('k') | remoting/remoting.gyp » ('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 // VideoWriter is a generic interface for a video stream writer. RtpVideoWriter 5 // VideoWriter is a generic interface for a video stream writer. RtpVideoWriter
6 // and ProtobufVideoWriter implement this interface for RTP and protobuf video 6 // and ProtobufVideoWriter implement this interface for RTP and protobuf video
7 // streams. VideoWriter is used by ConnectionToClient to write into the video 7 // streams. VideoWriter is used by ConnectionToClient to write into the video
8 // stream. 8 // stream.
9 9
10 #ifndef REMOTING_PROTOCOL_VIDEO_WRITER_H_ 10 #ifndef REMOTING_PROTOCOL_VIDEO_WRITER_H_
11 #define REMOTING_PROTOCOL_VIDEO_WRITER_H_ 11 #define REMOTING_PROTOCOL_VIDEO_WRITER_H_
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "remoting/proto/video.pb.h" 14 #include "remoting/proto/video.pb.h"
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 namespace protocol {
19 class Session;
20 } // namespace protocol
21
18 class ChromotocolConfig; 22 class ChromotocolConfig;
19 class ChromotocolConnection; 23 class ChromotocolConnection;
20 24
21 // TODO(sergeyu): VideoWriter should implement VideoStub interface. 25 // TODO(sergeyu): VideoWriter should implement VideoStub interface.
22 class VideoWriter { 26 class VideoWriter {
23 public: 27 public:
24 virtual ~VideoWriter(); 28 virtual ~VideoWriter();
25 29
26 static VideoWriter* Create(const ChromotocolConfig* config); 30 static VideoWriter* Create(const ChromotocolConfig* config);
27 31
28 // Initializes the writer. 32 // Initializes the writer.
29 virtual void Init(ChromotocolConnection* connection) = 0; 33 virtual void Init(protocol::Session* session) = 0;
30 34
31 // Sends the |packet|. 35 // Sends the |packet|.
32 virtual void SendPacket(const VideoPacket& packet) = 0; 36 virtual void SendPacket(const VideoPacket& packet) = 0;
33 37
34 // Returns number of packets currently pending in the buffer. 38 // Returns number of packets currently pending in the buffer.
35 virtual int GetPendingPackets() = 0; 39 virtual int GetPendingPackets() = 0;
36 40
37 virtual void Close() = 0; 41 virtual void Close() = 0;
38 42
39 protected: 43 protected:
40 VideoWriter() { } 44 VideoWriter() { }
41 45
42 private: 46 private:
43 DISALLOW_COPY_AND_ASSIGN(VideoWriter); 47 DISALLOW_COPY_AND_ASSIGN(VideoWriter);
44 }; 48 };
45 49
46 } // namespace remoting 50 } // namespace remoting
47 51
48 #endif // REMOTING_PROTOCOL_VIDEO_WRITER_H_ 52 #endif // REMOTING_PROTOCOL_VIDEO_WRITER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/video_reader.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698