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/host | |
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/host')
-rw-r--r-- | remoting/host/session_manager.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/remoting/host/session_manager.cc b/remoting/host/session_manager.cc index b9726a7..2a4d437 100644 --- a/remoting/host/session_manager.cc +++ b/remoting/host/session_manager.cc @@ -11,8 +11,11 @@ #include "base/stl_util-inl.h" #include "remoting/base/capture_data.h" #include "remoting/base/tracer.h" +#include "remoting/proto/control.pb.h" +#include "remoting/protocol/client_stub.h" #include "remoting/protocol/connection_to_client.h" #include "remoting/protocol/message_decoder.h" +#include "remoting/protocol/util.h" using remoting::protocol::ConnectionToClient; @@ -352,7 +355,12 @@ void SessionManager::DoSendInit(scoped_refptr<ConnectionToClient> connection, DCHECK_EQ(network_loop_, MessageLoop::current()); // Sends the connection init information. - connection->SendInitClientMessage(width, height); + protocol::NotifyResolutionRequest* message = + new protocol::NotifyResolutionRequest(); + message->set_width(width); + message->set_height(height); + connection->client_stub()->NotifyResolution(message, + NewDeleteMessageTask(message)); } void SessionManager::DoAddClient(scoped_refptr<ConnectionToClient> connection) { |