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

Unified Diff: remoting/protocol/host_control_dispatcher.h

Issue 9921034: [Chromoting] Add plumbing to carry clipboard events from the host to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 9 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 f1e271c088b7248e38ec0f16c6e5baf104dec87e..0e36ce415a184d239c77d5fad312dbe8ea10da45 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:
« 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