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