Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / protocol / host_video_dispatcher.h
blob79d15855618cf6b2b6aac29a81529eb69788f7ab
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"
14 namespace remoting {
15 namespace protocol {
17 class VideoFeedbackStub;
19 class HostVideoDispatcher : public ChannelDispatcherBase, public VideoStub {
20 public:
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;
32 private:
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_