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

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

Issue 4229003: Add VideoReader and VideoWriter interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - 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/protobuf_video_reader.cc ('k') | remoting/protocol/protobuf_video_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
7
8 #include "base/ref_counted.h"
9 #include "remoting/protocol/video_writer.h"
10
11 namespace remoting {
12
13 class BufferedSocketWriter;
14
15 class ProtobufVideoWriter : public VideoWriter {
16 public:
17 ProtobufVideoWriter();
18 virtual ~ProtobufVideoWriter();
19
20 // VideoWriter interface.
21 virtual void Init(ChromotocolConnection* connection);
22 virtual void SendPacket(const VideoPacket& packet);
23 virtual int GetPendingPackets();
24 virtual void Close();
25
26 private:
27 scoped_refptr<BufferedSocketWriter> buffered_writer_;
28
29 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter);
30 };
31
32 } // namespace remoting
33
34 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_reader.cc ('k') | remoting/protocol/protobuf_video_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698