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

Unified Diff: remoting/protocol/client_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
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/client_video_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_video_dispatcher.h
diff --git a/remoting/protocol/client_video_dispatcher.h b/remoting/protocol/client_video_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..f62525c6082d5b220738d7ae9aaf5dc021112232
--- /dev/null
+++ b/remoting/protocol/client_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_CLIENT_VIDEO_DISPATCHER_H_
+#define REMOTING_PROTOCOL_CLIENT_VIDEO_DISPATCHER_H_
+
+#include "base/compiler_specific.h"
+#include "remoting/proto/video.pb.h"
+#include "remoting/protocol/channel_dispatcher_base.h"
+#include "remoting/protocol/message_reader.h"
+
+namespace remoting {
+namespace protocol {
+
+class VideoStub;
+
+class ClientVideoDispatcher : public ChannelDispatcherBase {
+ public:
+ explicit ClientVideoDispatcher(VideoStub* video_stub);
+ virtual ~ClientVideoDispatcher();
+
+ protected:
+ // ChannelDispatcherBase overrides.
+ virtual void OnInitialized() OVERRIDE;
+
+ private:
+ ProtobufMessageReader<VideoPacket> reader_;
+
+ // The stub to which VideoPackets are passed for processing.
+ VideoStub* video_stub_;
+
+ DISALLOW_COPY_AND_ASSIGN(ClientVideoDispatcher);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_CLIENT_VIDEO_DISPATCHER_H_
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/client_video_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698