diff options
Diffstat (limited to 'remoting/host/desktop_environment.h')
-rw-r--r-- | remoting/host/desktop_environment.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h index 745cf2f..417bec2 100644 --- a/remoting/host/desktop_environment.h +++ b/remoting/host/desktop_environment.h @@ -13,6 +13,7 @@ namespace remoting { +class AudioCapturer; class Capturer; class ChromotingHostContext; @@ -34,27 +35,33 @@ class DesktopEnvironment { static scoped_ptr<DesktopEnvironment> CreateFake( ChromotingHostContext* context, scoped_ptr<Capturer> capturer, - scoped_ptr<EventExecutor> event_executor); + scoped_ptr<EventExecutor> event_executor, + scoped_ptr<AudioCapturer> audio_capturer); virtual ~DesktopEnvironment(); Capturer* capturer() const { return capturer_.get(); } EventExecutor* event_executor() const { return event_executor_.get(); } + AudioCapturer* audio_capturer() const { return audio_capturer_.get(); } void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard); void OnSessionFinished(); private: DesktopEnvironment(ChromotingHostContext* context, scoped_ptr<Capturer> capturer, - scoped_ptr<EventExecutor> event_executor); + scoped_ptr<EventExecutor> event_executor, + scoped_ptr<AudioCapturer> audio_capturer); // Host context used to make sure operations are run on the correct thread. // This is owned by the ChromotingHost. ChromotingHostContext* context_; - // Capturer to be used by ScreenRecorder. + // Used to capture video to deliver to clients. scoped_ptr<Capturer> capturer_; + // Used to capture audio to deliver to clients. + scoped_ptr<AudioCapturer> audio_capturer_; + // Executes input and clipboard events received from the client. scoped_ptr<EventExecutor> event_executor_; |