Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ |
| 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ | 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 | 11 |
| 12 namespace base { | |
| 13 class SingleThreadTaskRunner; | |
| 14 } // namespace base | |
| 15 | |
| 11 namespace remoting { | 16 namespace remoting { |
| 12 | 17 |
| 13 class ChromotingHostContext; | |
| 14 class DesktopEnvironment; | 18 class DesktopEnvironment; |
| 15 | 19 |
| 16 class DesktopEnvironmentFactory { | 20 class DesktopEnvironmentFactory { |
| 17 public: | 21 public: |
| 18 DesktopEnvironmentFactory(); | 22 DesktopEnvironmentFactory( |
| 23 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | |
| 24 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | |
| 19 virtual ~DesktopEnvironmentFactory(); | 25 virtual ~DesktopEnvironmentFactory(); |
| 20 | 26 |
| 21 virtual scoped_ptr<DesktopEnvironment> Create( | 27 virtual scoped_ptr<DesktopEnvironment> Create(); |
| 22 ChromotingHostContext* context); | |
| 23 | 28 |
| 24 // Returns |true| if created |DesktopEnvironment| instances support audio | 29 // Returns |true| if created |DesktopEnvironment| instances support audio |
| 25 // capture. | 30 // capture. |
| 26 virtual bool SupportsAudioCapture() const; | 31 virtual bool SupportsAudioCapture() const; |
| 27 | 32 |
| 28 protected: | 33 protected: |
| 34 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | |
|
alexeypa (please no reviews)
2012/10/01 18:31:34
Now that you have these pointers here, you will ne
Wez
2012/10/02 05:19:44
Good point; I've updated things to destroy the Des
| |
| 35 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | |
| 36 | |
| 29 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory); | 37 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory); |
| 30 }; | 38 }; |
| 31 | 39 |
| 32 } // namespace remoting | 40 } // namespace remoting |
| 33 | 41 |
| 34 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ | 42 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ |
| OLD | NEW |