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

Unified Diff: remoting/protocol/host_video_dispatcher.h

Issue 850983002: Implement video frame acknowledgements in the chromoting protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/host_video_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/host_video_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698