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

Unified Diff: remoting/protocol/client_video_dispatcher.h

Issue 1654513003: Simplify message parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_done
Patch Set: Created 4 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
« no previous file with comments | « remoting/protocol/client_event_dispatcher.cc ('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
index 98fea756b40850a3ed15e1035fbb12148c908ac0..39efda200b1a399e8773aed7254293b76b19d265 100644
--- a/remoting/protocol/client_video_dispatcher.h
+++ b/remoting/protocol/client_video_dispatcher.h
@@ -10,7 +10,6 @@
#include "base/memory/weak_ptr.h"
#include "remoting/proto/video.pb.h"
#include "remoting/protocol/channel_dispatcher_base.h"
-#include "remoting/protocol/protobuf_message_parser.h"
namespace remoting {
namespace protocol {
@@ -26,7 +25,7 @@ class ClientVideoDispatcher : public ChannelDispatcherBase {
struct PendingFrame;
typedef std::list<PendingFrame> PendingFramesList;
- void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet);
+ void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) override;
// Callback for VideoStub::ProcessVideoPacket().
void OnPacketDone(PendingFramesList::iterator pending_frame);
@@ -34,7 +33,6 @@ class ClientVideoDispatcher : public ChannelDispatcherBase {
PendingFramesList pending_frames_;
VideoStub* video_stub_;
- ProtobufMessageParser<VideoPacket> parser_;
base::WeakPtrFactory<ClientVideoDispatcher> weak_factory_;
« no previous file with comments | « remoting/protocol/client_event_dispatcher.cc ('k') | remoting/protocol/client_video_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698