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

Unified Diff: remoting/protocol/host_control_dispatcher.h

Issue 841773005: Cleanup channel dispatchers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/connection_to_host.cc ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_control_dispatcher.h
diff --git a/remoting/protocol/host_control_dispatcher.h b/remoting/protocol/host_control_dispatcher.h
index eab64c25184ef6475eed97c3452959a30a16e115..3fe8e733229c9ec17f159146b48223a4c91165a7 100644
--- a/remoting/protocol/host_control_dispatcher.h
+++ b/remoting/protocol/host_control_dispatcher.h
@@ -10,7 +10,7 @@
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/cursor_shape_stub.h"
-#include "remoting/protocol/message_reader.h"
+#include "remoting/protocol/protobuf_message_parser.h"
namespace net {
class StreamSocket;
@@ -54,10 +54,6 @@ class HostControlDispatcher : public ChannelDispatcherBase,
// message. |host_stub| must outlive this object.
void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; }
- protected:
- // ChannelDispatcherBase overrides.
- void OnInitialized() override;
-
private:
void OnMessageReceived(scoped_ptr<ControlMessage> message,
const base::Closure& done_task);
@@ -65,8 +61,7 @@ class HostControlDispatcher : public ChannelDispatcherBase,
ClipboardStub* clipboard_stub_;
HostStub* host_stub_;
- ProtobufMessageReader<ControlMessage> reader_;
- BufferedSocketWriter writer_;
+ ProtobufMessageParser<ControlMessage> parser_;
DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher);
};
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698