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

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
« no previous file with comments | « remoting/protocol/audio_writer.cc ('k') | remoting/protocol/channel_dispatcher_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..eca2d12d9892e4962e7b059cf857ddcf2481479c 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_; }
+
+ // Child classes must override this method to handle incoming messages.
+ virtual void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) = 0;
private:
void OnChannelReady(scoped_ptr<P2PStreamSocket> socket);
« no previous file with comments | « remoting/protocol/audio_writer.cc ('k') | remoting/protocol/channel_dispatcher_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698