| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "remoting/host/desktop_environment.h" | |
| 6 | |
| 7 #include "base/callback.h" | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "remoting/capturer/video_frame_capturer.h" | |
| 10 #include "remoting/host/audio_capturer.h" | |
| 11 #include "remoting/host/desktop_environment.h" | |
| 12 #include "remoting/host/event_executor.h" | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 DesktopEnvironment::DesktopEnvironment( | |
| 17 scoped_ptr<AudioCapturer> audio_capturer, | |
| 18 scoped_ptr<EventExecutor> event_executor, | |
| 19 scoped_ptr<VideoFrameCapturer> video_capturer) | |
| 20 : audio_capturer_(audio_capturer.Pass()), | |
| 21 event_executor_(event_executor.Pass()), | |
| 22 video_capturer_(video_capturer.Pass()) { | |
| 23 } | |
| 24 | |
| 25 DesktopEnvironment::~DesktopEnvironment() { | |
| 26 } | |
| 27 | |
| 28 void DesktopEnvironment::Start( | |
| 29 scoped_ptr<protocol::ClipboardStub> client_clipboard, | |
| 30 const std::string& client_jid, | |
| 31 const base::Closure& disconnect_callback) { | |
| 32 event_executor_->Start(client_clipboard.Pass()); | |
| 33 } | |
| 34 | |
| 35 } // namespace remoting | |
| OLD | NEW |