diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 02:22:43 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 02:22:43 +0000 |
commit | 35b9c560f122a92d671e55985fd0161293961ceb (patch) | |
tree | 919367302b47900ce396684e9e1188d70cd5eca6 /remoting/protocol/connection_to_client.h | |
parent | d78482a45263f6fb46af84a766f9407e54c2ede7 (diff) | |
download | chromium_src-35b9c560f122a92d671e55985fd0161293961ceb.zip chromium_src-35b9c560f122a92d671e55985fd0161293961ceb.tar.gz chromium_src-35b9c560f122a92d671e55985fd0161293961ceb.tar.bz2 |
Implementation of InputStub for chromoting
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4533001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_client.h')
-rw-r--r-- | remoting/protocol/connection_to_client.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h index ee8b1d7..769b0a8 100644 --- a/remoting/protocol/connection_to_client.h +++ b/remoting/protocol/connection_to_client.h @@ -11,7 +11,6 @@ #include "base/message_loop.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" -#include "remoting/proto/internal.pb.h" #include "remoting/protocol/message_reader.h" #include "remoting/protocol/session.h" #include "remoting/protocol/stream_writer.h" @@ -20,6 +19,8 @@ namespace remoting { namespace protocol { +class ClientStub; + // This class represents a remote viewer connected to the chromoting host // through a libjingle connection. A viewer object is responsible for sending // screen updates and other messages to the remote viewer. It is also @@ -63,9 +64,6 @@ class ConnectionToClient : // Returns the connection in use. virtual protocol::Session* session(); - // Send information to the client for initialization. - virtual void SendInitClientMessage(int width, int height); - // Send encoded update stream data to the viewer. virtual void SendVideoPacket(const VideoPacket& packet); @@ -81,6 +79,9 @@ class ConnectionToClient : // After this method is called all the send method calls will be ignored. virtual void Disconnect(); + // Return pointer to ClientStub. + virtual ClientStub* client_stub() { return client_stub_.get(); } + protected: // Protected constructor used by unit test. ConnectionToClient(); @@ -103,10 +104,12 @@ class ConnectionToClient : // The libjingle channel used to send and receive data from the remote client. scoped_refptr<protocol::Session> session_; - ControlStreamWriter control_writer_; MessageReader event_reader_; scoped_ptr<VideoWriter> video_writer_; + // ClientStub for sending messages to the client. + scoped_ptr<ClientStub> client_stub_; + // The message loop that this object runs on. MessageLoop* loop_; |