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

Unified Diff: remoting/protocol/host_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/host_event_dispatcher.cc ('k') | remoting/protocol/host_video_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_video_dispatcher.h
diff --git a/remoting/protocol/host_video_dispatcher.h b/remoting/protocol/host_video_dispatcher.h
index 323ddb76bfef39722c6d8e5201fcaac29c7328e7..1e61540420a2778df53800e8e2aa45d19d7b87c6 100644
--- a/remoting/protocol/host_video_dispatcher.h
+++ b/remoting/protocol/host_video_dispatcher.h
@@ -7,9 +7,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#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 {
@@ -31,11 +29,9 @@ class HostVideoDispatcher : public ChannelDispatcherBase, public VideoStub {
const base::Closure& done) override;
private:
- void OnVideoAck(scoped_ptr<VideoAck> ack);
+ void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) override;
- ProtobufMessageParser<VideoAck> parser_;
-
- VideoFeedbackStub* video_feedback_stub_;
+ VideoFeedbackStub* video_feedback_stub_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(HostVideoDispatcher);
};
« no previous file with comments | « remoting/protocol/host_event_dispatcher.cc ('k') | remoting/protocol/host_video_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698