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

Unified Diff: remoting/protocol/host_video_dispatcher.h

Issue 577473002: Simplify VideoReader and VideoWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/host_video_dispatcher.h
diff --git a/remoting/protocol/host_video_dispatcher.h b/remoting/protocol/host_video_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..3619d40171637ef790a2dae2757e5dd61a777a1b
--- /dev/null
+++ b/remoting/protocol/host_video_dispatcher.h
@@ -0,0 +1,39 @@
+// 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_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/protocol/channel_dispatcher_base.h"
+#include "remoting/protocol/video_stub.h"
+
+namespace remoting {
+namespace protocol {
+
+class HostVideoDispatcher : public ChannelDispatcherBase, public VideoStub {
+ public:
+ HostVideoDispatcher();
+ virtual ~HostVideoDispatcher();
+
+ // VideoStub interface.
+ virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
+ const base::Closure& done) OVERRIDE;
+
+ private:
+ void OnInitialized();
Wez 2014/09/18 00:23:55 // ChannelDispatcherBase overrides. virtual void O
Wez 2014/09/18 00:23:55 Should this be protected, as in the client impl, r
Sergey Ulanov 2014/09/18 22:35:00 Done.
Sergey Ulanov 2014/09/18 22:35:00 Done.
+
+
Wez 2014/09/18 00:23:55 nit: Errant blank line!
Sergey Ulanov 2014/09/18 22:35:00 Done.
+ BufferedSocketWriter buffered_writer_;
Wez 2014/09/18 00:23:55 nit: In the ClientVideoDispatcher, the ProtobufVid
Sergey Ulanov 2014/09/18 22:35:00 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(HostVideoDispatcher);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698