blob: b9216c05dc7bd4720743b636456b11026ba49f7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// VideoWriter is a generic interface for a video stream writer. RtpVideoWriter
// and ProtobufVideoWriter implement this interface for RTP and protobuf video
// streams. VideoWriter is used by ConnectionToClient to write into the video
// stream.
#ifndef REMOTING_PROTOCOL_VIDEO_WRITER_H_
#define REMOTING_PROTOCOL_VIDEO_WRITER_H_
#include "base/basictypes.h"
#include "remoting/protocol/video_stub.h"
namespace remoting {
namespace protocol {
class Session;
class SessionConfig;
// TODO(sergeyu): VideoWriter should implement VideoStub interface.
class VideoWriter : public VideoStub {
public:
virtual ~VideoWriter();
static VideoWriter* Create(const SessionConfig* config);
// Initializes the writer.
virtual void Init(Session* session) = 0;
protected:
VideoWriter() { }
private:
DISALLOW_COPY_AND_ASSIGN(VideoWriter);
};
} // namespace protocol
} // namespace remoting
#endif // REMOTING_PROTOCOL_VIDEO_WRITER_H_
|