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

Side by Side Diff: remoting/host/basic_desktop_environment.h

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/audio_scheduler.cc ('k') | remoting/host/basic_desktop_environment.cc » ('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 #ifndef REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/single_thread_task_runner.h"
12 #include "base/threading/non_thread_safe.h"
13 #include "remoting/host/desktop_environment.h"
14
15 namespace remoting {
16
17 // Used to create audio/video capturers and event executor that work with
18 // the local console.
19 class BasicDesktopEnvironment
20 : public base::NonThreadSafe,
21 public DesktopEnvironment {
22 public:
23 BasicDesktopEnvironment();
24 virtual ~BasicDesktopEnvironment();
25
26 // DesktopEnvironment implementation.
27 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer(
28 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) OVERRIDE;
29 virtual scoped_ptr<EventExecutor> CreateEventExecutor(
30 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
31 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE;
32 virtual scoped_ptr<VideoFrameCapturer> CreateVideoCapturer(
33 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
34 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment);
38 };
39
40 // Used to create |BasicDesktopEnvironment| instances.
41 class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
42 public:
43 BasicDesktopEnvironmentFactory();
44 virtual ~BasicDesktopEnvironmentFactory();
45
46 // DesktopEnvironmentFactory implementation.
47 virtual scoped_ptr<DesktopEnvironment> Create(
48 const std::string& client_jid,
49 const base::Closure& disconnect_callback) OVERRIDE;
50 virtual bool SupportsAudioCapture() const OVERRIDE;
51
52 private:
53 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory);
54 };
55
56 } // namespace remoting
57
58 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « remoting/host/audio_scheduler.cc ('k') | remoting/host/basic_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698