| OLD | NEW |
| (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_DESKTOP_ENVIRONMENT_FACTORY_H_ | |
| 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 | |
| 12 namespace base { | |
| 13 class SingleThreadTaskRunner; | |
| 14 } // namespace base | |
| 15 | |
| 16 namespace remoting { | |
| 17 | |
| 18 class DesktopEnvironment; | |
| 19 | |
| 20 class DesktopEnvironmentFactory { | |
| 21 public: | |
| 22 DesktopEnvironmentFactory( | |
| 23 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | |
| 24 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | |
| 25 virtual ~DesktopEnvironmentFactory(); | |
| 26 | |
| 27 // Creates an instance of |DesktopEnvironment|. | |
| 28 virtual scoped_ptr<DesktopEnvironment> Create(); | |
| 29 | |
| 30 // Returns |true| if created |DesktopEnvironment| instances support audio | |
| 31 // capture. | |
| 32 virtual bool SupportsAudioCapture() const; | |
| 33 | |
| 34 protected: | |
| 35 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | |
| 36 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory); | |
| 39 }; | |
| 40 | |
| 41 } // namespace remoting | |
| 42 | |
| 43 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ | |
| OLD | NEW |