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

Unified Diff: remoting/protocol/channel_dispatcher_base.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
Index: remoting/protocol/channel_dispatcher_base.h
diff --git a/remoting/protocol/channel_dispatcher_base.h b/remoting/protocol/channel_dispatcher_base.h
index 06d2c79f533e3f7d324eada10f0b2611d5e965db..c8eedebfa9901f61584dadc068f31ed25f0715d2 100644
--- a/remoting/protocol/channel_dispatcher_base.h
+++ b/remoting/protocol/channel_dispatcher_base.h
@@ -55,7 +55,9 @@ class ChannelDispatcherBase {
explicit ChannelDispatcherBase(const char* channel_name);
BufferedSocketWriter* writer() { return &writer_; }
- MessageReader* reader() { return &reader_; }
+
+ // Should be overridden in child classes to handle incoming messages.
+ virtual void OnIncomingMessage(scoped_ptr<CompoundBuffer> message);
Jamie 2016/01/30 00:56:27 Is the case for not overriding this sufficiently c
Sergey Ulanov 2016/01/30 02:15:48 Some channels are one-directional (events and audi
private:
void OnChannelReady(scoped_ptr<P2PStreamSocket> socket);

Powered by Google App Engine
This is Rietveld 408576698