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

Unified Diff: remoting/protocol/client_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, 11 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
Index: remoting/protocol/client_video_dispatcher.h
diff --git a/remoting/protocol/client_video_dispatcher.h b/remoting/protocol/client_video_dispatcher.h
index b2b1e3162ab5b08fb2317fe3e00ed3d02ae2bbcf..445fb4c0dec74694bec6215b3f9d67296816b618 100644
--- a/remoting/protocol/client_video_dispatcher.h
+++ b/remoting/protocol/client_video_dispatcher.h
@@ -9,18 +9,28 @@
#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 VideoStub;
-
class ClientVideoDispatcher : public ChannelDispatcherBase {
public:
explicit ClientVideoDispatcher(VideoStub* video_stub);
~ClientVideoDispatcher() override;
private:
+ void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
+ const base::Closure& done);
+
+ // Callback for VideoStub::ProcessVideoPacket().
+ void OnPacketProgress(int frame_id,
+ base::TimeDelta time_to_receive,
+ base::TimeTicks received_time,
+ const base::Closure& done,
+ VideoStub::PacketProgress packet_progress);
+
+ VideoStub* video_stub_;
ProtobufMessageParser<VideoPacket> parser_;
DISALLOW_COPY_AND_ASSIGN(ClientVideoDispatcher);

Powered by Google App Engine
This is Rietveld 408576698