diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 05:24:30 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 05:24:30 +0000 |
commit | c3ba9b31f45a887b80d6a4ff412ac922ecd30298 (patch) | |
tree | 0c652c68b9613d0b26ab430463329d692b37ce96 /chrome/service | |
parent | 8de78b013c1754d83a67312b086a53bd6d593ab9 (diff) | |
download | chromium_src-c3ba9b31f45a887b80d6a4ff412ac922ecd30298.zip chromium_src-c3ba9b31f45a887b80d6a4ff412ac922ecd30298.tar.gz chromium_src-c3ba9b31f45a887b80d6a4ff412ac922ecd30298.tar.bz2 |
Move creation of capturer, input stub into ChromotingHost
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/5065001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r-- | chrome/service/service_process.cc | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index fccd186..ee5bdf93 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -28,17 +28,6 @@ #include "remoting/host/chromoting_host.h" #include "remoting/host/chromoting_host_context.h" #include "remoting/host/json_host_config.h" - -#if defined(OS_WIN) -#include "remoting/host/capturer_gdi.h" -#include "remoting/host/event_executor_win.h" -#elif defined(OS_LINUX) -#include "remoting/host/capturer_linux.h" -#include "remoting/host/event_executor_linux.h" -#elif defined(OS_MACOSX) -#include "remoting/host/capturer_mac.h" -#include "remoting/host/event_executor_mac.h" -#endif #endif // defined(ENABLED_REMOTING) ServiceProcess* g_service_process = NULL; @@ -283,33 +272,9 @@ bool ServiceProcess::StartChromotingHost() { chromoting_context_.reset(new remoting::ChromotingHostContext()); chromoting_context_->Start(); - // Create capturer and executor. The ownership will be transfered - // to the chromoting host. - scoped_ptr<remoting::Capturer> capturer; - scoped_ptr<remoting::protocol::InputStub> input_stub; - -#if defined(OS_WIN) - capturer.reset(new remoting::CapturerGdi( - chromoting_context_->capture_message_loop())); - input_stub.reset(new remoting::EventExecutorWin( - chromoting_context_->capture_message_loop(), capturer.get())); -#elif defined(OS_LINUX) - capturer.reset(new remoting::CapturerLinux( - chromoting_context_->capture_message_loop())); - input_stub.reset(new remoting::EventExecutorLinux( - chromoting_context_->capture_message_loop(), capturer.get())); -#elif defined(OS_MACOSX) - capturer.reset(new remoting::CapturerMac( - chromoting_context_->capture_message_loop())); - 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(), - input_stub.release()); + chromoting_config_); // Then start the chromoting host. // When ChromotingHost is shutdown because of failure or a request that |