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

Unified Diff: remoting/protocol/video_sender.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/video_sender.h
diff --git a/remoting/protocol/video_sender.h b/remoting/protocol/video_sender.h
new file mode 100644
index 0000000000000000000000000000000000000000..cbe57339ad4671a45cee8fb39cc306b8cbd21ce0
--- /dev/null
+++ b/remoting/protocol/video_sender.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_VIDEO_SENDER_H_
+#define REMOTING_PROTOCOL_VIDEO_SENDER_H_
+
+#include "remoting/protocol/video_stub.h"
+
+namespace remoting {
+namespace protocol {
+
+// Version of VideoStub used on the sending side.
+class VideoSender : public VideoStub {
Wez 2015/01/21 01:35:40 This name is confusing - classes that implement th
Sergey Ulanov 2015/01/29 01:33:29 Done.
+ public:
+ // Indicates that the connection supports video packet acknowledgments, which
+ // means that VideoStub::ProcessVideoPacket() doesn't call |done| callback
+ // until a notification is received from the client that the frame has been
+ // rendered.
+ virtual bool SupportsAcks() = 0;
+
+ protected:
+ VideoSender() {}
+ virtual ~VideoSender() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VideoSender);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_VIDEO_SENDER_H_

Powered by Google App Engine
This is Rietveld 408576698