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

Unified Diff: remoting/protocol/channel_multiplexer.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_dispatcher_base.cc ('k') | remoting/protocol/channel_multiplexer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/channel_multiplexer.h
diff --git a/remoting/protocol/channel_multiplexer.h b/remoting/protocol/channel_multiplexer.h
index 694e08a0aed6d23bc7b955b08702c09a4c7e0c30..976561c088887a0b4850fbc1b73db95c9632bc09 100644
--- a/remoting/protocol/channel_multiplexer.h
+++ b/remoting/protocol/channel_multiplexer.h
@@ -10,7 +10,6 @@
#include "remoting/base/buffered_socket_writer.h"
#include "remoting/proto/mux.pb.h"
#include "remoting/protocol/message_reader.h"
-#include "remoting/protocol/protobuf_message_parser.h"
#include "remoting/protocol/stream_channel_factory.h"
namespace remoting {
@@ -53,7 +52,7 @@ class ChannelMultiplexer : public StreamChannelFactory {
void NotifyBaseChannelError(const std::string& name, int error);
// Callback for |reader_;
- void OnIncomingPacket(scoped_ptr<MultiplexPacket> packet);
+ void OnIncomingPacket(scoped_ptr<CompoundBuffer> buffer);
// Called by MuxChannel.
void DoWrite(scoped_ptr<MultiplexPacket> packet,
@@ -81,7 +80,6 @@ class ChannelMultiplexer : public StreamChannelFactory {
BufferedSocketWriter writer_;
MessageReader reader_;
- ProtobufMessageParser<MultiplexPacket> parser_;
base::WeakPtrFactory<ChannelMultiplexer> weak_factory_;
« no previous file with comments | « remoting/protocol/channel_dispatcher_base.cc ('k') | remoting/protocol/channel_multiplexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698