| 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_factory.h" | |
| 6 | |
| 7 #include "base/single_thread_task_runner.h" | |
| 8 #include "remoting/capturer/video_frame_capturer.h" | |
| 9 #include "remoting/host/audio_capturer.h" | |
| 10 #include "remoting/host/chromoting_host_context.h" | |
| 11 #include "remoting/host/desktop_environment.h" | |
| 12 #include "remoting/host/event_executor.h" | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 DesktopEnvironmentFactory::DesktopEnvironmentFactory( | |
| 17 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | |
| 18 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) | |
| 19 : input_task_runner_(input_task_runner), | |
| 20 ui_task_runner_(ui_task_runner) { | |
| 21 } | |
| 22 | |
| 23 DesktopEnvironmentFactory::~DesktopEnvironmentFactory() { | |
| 24 } | |
| 25 | |
| 26 scoped_ptr<DesktopEnvironment> DesktopEnvironmentFactory::Create() { | |
| 27 scoped_ptr<DesktopEnvironment> environment(new DesktopEnvironment( | |
| 28 AudioCapturer::Create(), | |
| 29 EventExecutor::Create(input_task_runner_, ui_task_runner_), | |
| 30 VideoFrameCapturer::Create())); | |
| 31 return environment.Pass(); | |
| 32 } | |
| 33 | |
| 34 bool DesktopEnvironmentFactory::SupportsAudioCapture() const { | |
| 35 return AudioCapturer::IsSupported(); | |
| 36 } | |
| 37 | |
| 38 } // namespace remoting | |
| OLD | NEW |