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

Unified Diff: remoting/protocol/host_control_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_video_dispatcher_unittest.cc ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_control_dispatcher.h
diff --git a/remoting/protocol/host_control_dispatcher.h b/remoting/protocol/host_control_dispatcher.h
index d863f6432ce4a12d9510e735bbe48db07aaf8111..5bd7df625c15c442754caab56dbd41a598a85bb8 100644
--- a/remoting/protocol/host_control_dispatcher.h
+++ b/remoting/protocol/host_control_dispatcher.h
@@ -10,7 +10,6 @@
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/cursor_shape_stub.h"
-#include "remoting/protocol/protobuf_message_parser.h"
namespace net {
class StreamSocket;
@@ -19,7 +18,6 @@ class StreamSocket;
namespace remoting {
namespace protocol {
-class ControlMessage;
class HostStub;
class PairingResponse;
class Session;
@@ -55,12 +53,10 @@ class HostControlDispatcher : public ChannelDispatcherBase,
void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; }
private:
- void OnMessageReceived(scoped_ptr<ControlMessage> message);
+ void OnIncomingMessage(scoped_ptr<CompoundBuffer> buffer) override;
- ClipboardStub* clipboard_stub_;
- HostStub* host_stub_;
-
- ProtobufMessageParser<ControlMessage> parser_;
+ ClipboardStub* clipboard_stub_ = nullptr;
+ HostStub* host_stub_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher);
};
« no previous file with comments | « remoting/protocol/client_video_dispatcher_unittest.cc ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698