diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-18 01:31:43 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-18 01:31:43 +0000 |
commit | a07ef3d0c6638ded56f324d265b90c414e3c4bd2 (patch) | |
tree | 69a137c25f28eff2811537dc8133f9f00e7bf860 /remoting/protocol/connection_to_client.h | |
parent | 0b6fba80bd0159af9b1f0fa38e87c6c1cff768fd (diff) | |
download | chromium_src-a07ef3d0c6638ded56f324d265b90c414e3c4bd2.zip chromium_src-a07ef3d0c6638ded56f324d265b90c414e3c4bd2.tar.gz chromium_src-a07ef3d0c6638ded56f324d265b90c414e3c4bd2.tar.bz2 |
Refactor channel dispatchers on the host side.
The new HostControlDispatcher manages reading and writing to and from control
channel on the host side. Similarly HostEventDispatcher is responsible for
reading and, in future, writing to and from the event channel.
Review URL: http://codereview.chromium.org/8468022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_client.h')
-rw-r--r-- | remoting/protocol/connection_to_client.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h index c59c8f3..418e071 100644 --- a/remoting/protocol/connection_to_client.h +++ b/remoting/protocol/connection_to_client.h @@ -21,11 +21,11 @@ class MessageLoopProxy; namespace remoting { namespace protocol { -class ClientControlSender; class ClientStub; class HostStub; class InputStub; -class HostMessageDispatcher; +class HostControlDispatcher; +class HostEventDispatcher; // This class represents a remote viewer connection to the chromoting // host. It sets up all protocol channels and connects them to the @@ -104,12 +104,9 @@ class ConnectionToClient : public base::NonThreadSafe { // The libjingle channel used to send and receive data from the remote client. scoped_ptr<Session> session_; - // Writers for outgoing channels. scoped_ptr<VideoWriter> video_writer_; - scoped_ptr<ClientControlSender> client_control_sender_; - - // Dispatcher for incoming messages. - scoped_ptr<HostMessageDispatcher> dispatcher_; + scoped_ptr<HostControlDispatcher> control_dispatcher_; + scoped_ptr<HostEventDispatcher> input_dispatcher_; // State of the channels. bool control_connected_; |