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

Unified Diff: remoting/protocol/client_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/channel_multiplexer.cc ('k') | remoting/protocol/client_control_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_control_dispatcher.h
diff --git a/remoting/protocol/client_control_dispatcher.h b/remoting/protocol/client_control_dispatcher.h
index 6e9b46ec97660be9743099a2fa1e9f87ca87cc17..c646fe5d63b2a54951a308ad3f87d64832d22951 100644
--- a/remoting/protocol/client_control_dispatcher.h
+++ b/remoting/protocol/client_control_dispatcher.h
@@ -11,7 +11,6 @@
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/cursor_shape_stub.h"
#include "remoting/protocol/host_stub.h"
-#include "remoting/protocol/protobuf_message_parser.h"
namespace remoting {
namespace protocol {
@@ -52,12 +51,10 @@ class ClientControlDispatcher : public ChannelDispatcherBase,
}
private:
- void OnMessageReceived(scoped_ptr<ControlMessage> message);
+ void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) override;
- ClientStub* client_stub_;
- ClipboardStub* clipboard_stub_;
-
- ProtobufMessageParser<ControlMessage> parser_;
+ ClientStub* client_stub_ = nullptr;
+ ClipboardStub* clipboard_stub_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher);
};
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/client_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698