Simplify message parsing.
Previously ProtobufMessageParser was used to parse incoming messages.
Removed it and replaced with ParseMessage() function. This allows to
simplify MessageReader and makes it possible to remove MessageReader
dependency in ChannelDispatcherBase, which will be done later.
Review URL: https://codereview.chromium.org/1654513003
Cr-Commit-Position: refs/heads/master@{#372526}
diff --git a/remoting/protocol/client_event_dispatcher.h b/remoting/protocol/client_event_dispatcher.h
index 97c6b041..98d4473 100644
--- a/remoting/protocol/client_event_dispatcher.h
+++ b/remoting/protocol/client_event_dispatcher.h
@@ -27,6 +27,8 @@
void InjectTouchEvent(const TouchEvent& event) override;
private:
+ void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) override;
+
DISALLOW_COPY_AND_ASSIGN(ClientEventDispatcher);
};