Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: remoting/host/desktop_environment.cc

Issue 11778049: Making DesktopEnvironment a factory class used by ClientSession to create audio/video capturers and… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_environment_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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.h"
6
7 #include "base/callback.h"
8 #include "base/compiler_specific.h"
9 #include "remoting/capturer/video_frame_capturer.h"
10 #include "remoting/host/audio_capturer.h"
11 #include "remoting/host/desktop_environment.h"
12 #include "remoting/host/event_executor.h"
13
14 namespace remoting {
15
16 DesktopEnvironment::DesktopEnvironment(
17 scoped_ptr<AudioCapturer> audio_capturer,
18 scoped_ptr<EventExecutor> event_executor,
19 scoped_ptr<VideoFrameCapturer> video_capturer)
20 : audio_capturer_(audio_capturer.Pass()),
21 event_executor_(event_executor.Pass()),
22 video_capturer_(video_capturer.Pass()) {
23 }
24
25 DesktopEnvironment::~DesktopEnvironment() {
26 }
27
28 void DesktopEnvironment::Start(
29 scoped_ptr<protocol::ClipboardStub> client_clipboard,
30 const std::string& client_jid,
31 const base::Closure& disconnect_callback) {
32 event_executor_->Start(client_clipboard.Pass());
33 }
34
35 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_environment_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698