Chromium Code Reviews| Index: remoting/protocol/host_control_dispatcher.h |
| diff --git a/remoting/protocol/host_control_dispatcher.h b/remoting/protocol/host_control_dispatcher.h |
| index f1e271c088b7248e38ec0f16c6e5baf104dec87e..fcc2b637cc721e54e9887e8e432fca0244ed7e87 100644 |
| --- a/remoting/protocol/host_control_dispatcher.h |
| +++ b/remoting/protocol/host_control_dispatcher.h |
| @@ -8,6 +8,7 @@ |
| #include "base/memory/ref_counted.h" |
| #include "remoting/protocol/channel_dispatcher_base.h" |
| #include "remoting/protocol/client_stub.h" |
| +#include "remoting/protocol/clipboard_stub.h" |
| #include "remoting/protocol/message_reader.h" |
| namespace net { |
| @@ -18,19 +19,22 @@ namespace remoting { |
| namespace protocol { |
| class BufferedSocketWriter; |
| -class ClipboardStub; |
| class ControlMessage; |
| class HostStub; |
| class Session; |
| // HostControlDispatcher dispatches incoming messages on the control |
| -// channel to HostStub or ClipboardStub, and also implements ClientStub for |
| -// outgoing messages. |
| -class HostControlDispatcher : public ChannelDispatcherBase, public ClientStub { |
| +// channel to HostStub or ClipboardStub, and also implements ClientStub and |
| +// ClipboardStub for outgoing messages. |
| +class HostControlDispatcher : public ChannelDispatcherBase, public ClientStub, |
| + public ClipboardStub { |
| public: |
| HostControlDispatcher(); |
| virtual ~HostControlDispatcher(); |
| + // ClipboardStub implementation. |
| + virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
| + |
| // Sets the ClipboardStub that will be called for each incoming clipboard |
| // message. Doesn't take ownership of |clipboard_stub|, which must outlive |
| // the dispatcher. |
| @@ -38,8 +42,8 @@ class HostControlDispatcher : public ChannelDispatcherBase, public ClientStub { |
| clipboard_stub_ = clipboard_stub; |
| } |
| - // Sets HostStub that will be called for each incoming control |
| - // message. Doesn't take ownership of |host_stub|. It must outlive |
| + // Sets the HostStub that will be called for each incoming control |
| + // message. Doesn't take ownership of |host_stub|, which must outlive |
|
Wez
2012/03/30 22:20:15
nit: Could reword this as suggested for ClientCont
simonmorris
2012/03/30 22:36:07
Done.
|
| // this dispatcher. |
| void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; } |