summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/host_control_dispatcher.h
diff options
context:
space:
mode:
authorsimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-31 01:28:38 +0000
committersimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-31 01:28:38 +0000
commitba6d1c2d2645b0d54b4479a0762757978242ca9b (patch)
tree399ff9fc9e4f9623ff16713f7fdd5e7555b98e14 /remoting/protocol/host_control_dispatcher.h
parente67453f129181c86617010686f5f096adb25664f (diff)
downloadchromium_src-ba6d1c2d2645b0d54b4479a0762757978242ca9b.zip
chromium_src-ba6d1c2d2645b0d54b4479a0762757978242ca9b.tar.gz
chromium_src-ba6d1c2d2645b0d54b4479a0762757978242ca9b.tar.bz2
[Chromoting] Add plumbing to carry clipboard events from the host to the client.
BUG=117473 Review URL: http://codereview.chromium.org/9921034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/host_control_dispatcher.h')
-rw-r--r--remoting/protocol/host_control_dispatcher.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/remoting/protocol/host_control_dispatcher.h b/remoting/protocol/host_control_dispatcher.h
index f1e271c..0e36ce4 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,29 +19,30 @@ 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.
+ // message. |clipboard_stub| must outlive this object.
void set_clipboard_stub(ClipboardStub* clipboard_stub) {
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
- // this dispatcher.
+ // Sets the HostStub that will be called for each incoming control
+ // message. |host_stub| must outlive this object.
void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; }
protected: