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