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/basic_desktop_environment.h" | 5 #include "remoting/host/basic_desktop_environment.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "media/video/capture/screen/screen_capturer.h" | 8 #include "media/video/capture/screen/screen_capturer.h" |
9 #include "remoting/host/audio_capturer.h" | 9 #include "remoting/host/audio_capturer.h" |
10 #include "remoting/host/event_executor.h" | 10 #include "remoting/host/input_injector.h" |
11 #include "remoting/host/session_controller.h" | 11 #include "remoting/host/session_controller.h" |
12 | 12 |
13 namespace remoting { | 13 namespace remoting { |
14 | 14 |
15 BasicDesktopEnvironment::~BasicDesktopEnvironment() { | 15 BasicDesktopEnvironment::~BasicDesktopEnvironment() { |
16 DCHECK(CalledOnValidThread()); | 16 DCHECK(CalledOnValidThread()); |
17 } | 17 } |
18 | 18 |
19 scoped_ptr<AudioCapturer> BasicDesktopEnvironment::CreateAudioCapturer( | 19 scoped_ptr<AudioCapturer> BasicDesktopEnvironment::CreateAudioCapturer( |
20 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) { | 20 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) { |
21 DCHECK(CalledOnValidThread()); | 21 DCHECK(CalledOnValidThread()); |
22 | 22 |
23 return AudioCapturer::Create(); | 23 return AudioCapturer::Create(); |
24 } | 24 } |
25 | 25 |
26 scoped_ptr<EventExecutor> BasicDesktopEnvironment::CreateEventExecutor( | 26 scoped_ptr<InputInjector> BasicDesktopEnvironment::CreateInputInjector( |
27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | 28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { |
29 DCHECK(CalledOnValidThread()); | 29 DCHECK(CalledOnValidThread()); |
30 | 30 |
31 return EventExecutor::Create(input_task_runner, ui_task_runner); | 31 return InputInjector::Create(input_task_runner, ui_task_runner); |
32 } | 32 } |
33 | 33 |
34 scoped_ptr<SessionController> | 34 scoped_ptr<SessionController> |
35 BasicDesktopEnvironment::CreateSessionController() { | 35 BasicDesktopEnvironment::CreateSessionController() { |
36 DCHECK(CalledOnValidThread()); | 36 DCHECK(CalledOnValidThread()); |
37 | 37 |
38 return scoped_ptr<SessionController>(); | 38 return scoped_ptr<SessionController>(); |
39 } | 39 } |
40 | 40 |
41 scoped_ptr<media::ScreenCapturer> BasicDesktopEnvironment::CreateVideoCapturer( | 41 scoped_ptr<media::ScreenCapturer> BasicDesktopEnvironment::CreateVideoCapturer( |
(...skipping 19 matching lines...) Expand all Loading... |
61 const std::string& client_jid, | 61 const std::string& client_jid, |
62 const base::Closure& disconnect_callback) { | 62 const base::Closure& disconnect_callback) { |
63 return scoped_ptr<DesktopEnvironment>(new BasicDesktopEnvironment()); | 63 return scoped_ptr<DesktopEnvironment>(new BasicDesktopEnvironment()); |
64 } | 64 } |
65 | 65 |
66 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { | 66 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { |
67 return AudioCapturer::IsSupported(); | 67 return AudioCapturer::IsSupported(); |
68 } | 68 } |
69 | 69 |
70 } // namespace remoting | 70 } // namespace remoting |
OLD | NEW |