Chromium Code Reviews| Index: remoting/host/desktop_environment_factory.h |
| diff --git a/remoting/host/desktop_environment_factory.h b/remoting/host/desktop_environment_factory.h |
| index c77aef6a0a5ca0ba01f5b735937b37d7e22afd10..9bbd71c165699b77b0a5dea19463ea700a3eba4e 100644 |
| --- a/remoting/host/desktop_environment_factory.h |
| +++ b/remoting/host/desktop_environment_factory.h |
| @@ -6,26 +6,34 @@ |
| #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ |
| #include "base/basictypes.h" |
| +#include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| +namespace base { |
| +class SingleThreadTaskRunner; |
| +} // namespace base |
| + |
| namespace remoting { |
| -class ChromotingHostContext; |
| class DesktopEnvironment; |
| class DesktopEnvironmentFactory { |
| public: |
| - DesktopEnvironmentFactory(); |
| + DesktopEnvironmentFactory( |
| + scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| + scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
| virtual ~DesktopEnvironmentFactory(); |
| - virtual scoped_ptr<DesktopEnvironment> Create( |
| - ChromotingHostContext* context); |
| + virtual scoped_ptr<DesktopEnvironment> Create(); |
| // Returns |true| if created |DesktopEnvironment| instances support audio |
| // capture. |
| virtual bool SupportsAudioCapture() const; |
| protected: |
| + 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
|
| + scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory); |
| }; |