| Index: remoting/protocol/host_video_dispatcher.h
|
| diff --git a/remoting/protocol/host_video_dispatcher.h b/remoting/protocol/host_video_dispatcher.h
|
| index c1a957397c0ab6a018f12b8414df98a84b55bc9d..79d15855618cf6b2b6aac29a81529eb69788f7ab 100644
|
| --- a/remoting/protocol/host_video_dispatcher.h
|
| +++ b/remoting/protocol/host_video_dispatcher.h
|
| @@ -5,26 +5,37 @@
|
| #ifndef REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
|
| #define REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
|
|
|
| -#include <string>
|
| -
|
| #include "base/compiler_specific.h"
|
| -#include "remoting/protocol/buffered_socket_writer.h"
|
| +#include "remoting/proto/video.pb.h"
|
| #include "remoting/protocol/channel_dispatcher_base.h"
|
| +#include "remoting/protocol/protobuf_message_parser.h"
|
| #include "remoting/protocol/video_stub.h"
|
|
|
| namespace remoting {
|
| namespace protocol {
|
|
|
| +class VideoFeedbackStub;
|
| +
|
| class HostVideoDispatcher : public ChannelDispatcherBase, public VideoStub {
|
| public:
|
| HostVideoDispatcher();
|
| ~HostVideoDispatcher() override;
|
|
|
| + void set_video_feedback_stub(VideoFeedbackStub* video_feedback_stub) {
|
| + video_feedback_stub_ = video_feedback_stub;
|
| + }
|
| +
|
| // VideoStub interface.
|
| void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
|
| const base::Closure& done) override;
|
|
|
| private:
|
| + void OnVideoAck(scoped_ptr<VideoAck> ack, const base::Closure& done);
|
| +
|
| + ProtobufMessageParser<VideoAck> parser_;
|
| +
|
| + VideoFeedbackStub* video_feedback_stub_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(HostVideoDispatcher);
|
| };
|
|
|
|
|