From 6fd3d6a1648a754d8023924074612d55c187b4cf Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Tue, 16 Nov 2010 19:53:35 +0000 Subject: Implement input stub in the host side for chromoting Implement InputStub for the host. BUG=None TEST=None Review URL: http://codereview.chromium.org/4726003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66314 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/service/service_process.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'chrome/service/service_process.cc') diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index 6660c29..f04e082 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -286,24 +286,27 @@ bool ServiceProcess::StartChromotingHost() { // Create capturer and executor. The ownership will be transfered // to the chromoting host. scoped_ptr capturer; - scoped_ptr executor; + scoped_ptr input_stub; #if defined(OS_WIN) capturer.reset(new remoting::CapturerGdi()); - executor.reset(new remoting::EventExecutorWin(capturer.get())); + input_stub.reset(new remoting::EventExecutorWin( + chromoting_context_->capture_message_loop(), capturer.get())); #elif defined(OS_LINUX) capturer.reset(new remoting::CapturerLinux()); - executor.reset(new remoting::EventExecutorLinux(capturer.get())); + input_stub.reset(new remoting::EventExecutorLinux( + chromoting_context_->capture_message_loop(), capturer.get())); #elif defined(OS_MACOSX) capturer.reset(new remoting::CapturerMac()); - executor.reset(new remoting::EventExecutorMac(capturer.get())); + input_stub.reset(new remoting::EventExecutorMac( + chromoting_context_->capture_message_loop(), capturer.get())); #endif // Create a chromoting host object. chromoting_host_ = new remoting::ChromotingHost(chromoting_context_.get(), chromoting_config_, capturer.release(), - executor.release()); + input_stub.release()); // Then start the chromoting host. // When ChromotingHost is shutdown because of failure or a request that -- cgit v1.1