1 // Copyright 2014 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.
5 #ifndef REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
6 #define REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
8 #include "base/compiler_specific.h"
9 #include "remoting/proto/video.pb.h"
10 #include "remoting/protocol/channel_dispatcher_base.h"
11 #include "remoting/protocol/protobuf_message_parser.h"
12 #include "remoting/protocol/video_stub.h"
17 class VideoFeedbackStub
;
19 class HostVideoDispatcher
: public ChannelDispatcherBase
, public VideoStub
{
21 HostVideoDispatcher();
22 ~HostVideoDispatcher() override
;
24 void set_video_feedback_stub(VideoFeedbackStub
* video_feedback_stub
) {
25 video_feedback_stub_
= video_feedback_stub
;
28 // VideoStub interface.
29 void ProcessVideoPacket(scoped_ptr
<VideoPacket
> packet
,
30 const base::Closure
& done
) override
;
33 void OnVideoAck(scoped_ptr
<VideoAck
> ack
, const base::Closure
& done
);
35 ProtobufMessageParser
<VideoAck
> parser_
;
37 VideoFeedbackStub
* video_feedback_stub_
;
39 DISALLOW_COPY_AND_ASSIGN(HostVideoDispatcher
);
42 } // namespace protocol
43 } // namespace remoting
45 #endif // REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_