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/win/session_desktop_environment_factory.h" |
| 6 |
| 7 #include "remoting/host/audio_capturer.h" |
| 8 #include "remoting/host/chromoting_host_context.h" |
| 9 #include "remoting/host/desktop_environment.h" |
| 10 #include "remoting/host/event_executor.h" |
| 11 #include "remoting/host/video_frame_capturer.h" |
| 12 #include "remoting/host/win/session_event_executor.h" |
| 13 |
| 14 namespace remoting { |
| 15 |
| 16 SessionDesktopEnvironmentFactory::SessionDesktopEnvironmentFactory() { |
| 17 } |
| 18 |
| 19 SessionDesktopEnvironmentFactory::~SessionDesktopEnvironmentFactory() { |
| 20 } |
| 21 |
| 22 scoped_ptr<DesktopEnvironment> SessionDesktopEnvironmentFactory::Create( |
| 23 ChromotingHostContext* context) { |
| 24 scoped_ptr<AudioCapturer> audio_capturer = AudioCapturer::Create(); |
| 25 scoped_ptr<EventExecutor> event_executor = EventExecutor::Create( |
| 26 context->desktop_task_runner(), |
| 27 context->ui_task_runner()); |
| 28 event_executor.reset(new SessionEventExecutorWin( |
| 29 context->desktop_task_runner(), |
| 30 event_executor.Pass())); |
| 31 scoped_ptr<VideoFrameCapturer> video_capturer(VideoFrameCapturer::Create()); |
| 32 return scoped_ptr<DesktopEnvironment>(new DesktopEnvironment( |
| 33 audio_capturer.Pass(), |
| 34 event_executor.Pass(), |
| 35 video_capturer.Pass())); |
| 36 } |
| 37 |
| 38 } // namespace remoting |
OLD | NEW |