| 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_BASIC_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "remoting/host/desktop_environment.h" | 11 #include "remoting/host/desktop_environment.h" |
| 12 | 12 |
| 13 namespace remoting { | 13 namespace remoting { |
| 14 | 14 |
| 15 class LocalInputMonitor; |
| 16 |
| 15 // Used to create audio/video capturers and event executor that work with | 17 // Used to create audio/video capturers and event executor that work with |
| 16 // the local console. | 18 // the local console. |
| 17 class BasicDesktopEnvironment : public DesktopEnvironment { | 19 class BasicDesktopEnvironment : public DesktopEnvironment { |
| 18 public: | 20 public: |
| 19 virtual ~BasicDesktopEnvironment(); | 21 virtual ~BasicDesktopEnvironment(); |
| 20 | 22 |
| 21 // DesktopEnvironment implementation. | 23 // DesktopEnvironment implementation. |
| 22 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; | 24 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; |
| 23 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 25 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
| 24 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; | 26 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 48 // Task runner on which methods of DesktopEnvironment interface should be | 50 // Task runner on which methods of DesktopEnvironment interface should be |
| 49 // called. | 51 // called. |
| 50 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; | 52 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; |
| 51 | 53 |
| 52 // Used to run input-related tasks. | 54 // Used to run input-related tasks. |
| 53 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 55 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
| 54 | 56 |
| 55 // Used to run UI code. | 57 // Used to run UI code. |
| 56 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 58 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 57 | 59 |
| 60 // Notifies the client session about the local mouse movements. |
| 61 scoped_ptr<LocalInputMonitor> local_input_monitor_; |
| 62 |
| 58 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment); | 63 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment); |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 // Used to create |BasicDesktopEnvironment| instances. | 66 // Used to create |BasicDesktopEnvironment| instances. |
| 62 class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory { | 67 class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
| 63 public: | 68 public: |
| 64 BasicDesktopEnvironmentFactory( | 69 BasicDesktopEnvironmentFactory( |
| 65 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 70 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 66 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 71 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 67 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 72 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 95 | 100 |
| 96 // Used to run UI code. | 101 // Used to run UI code. |
| 97 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 102 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 98 | 103 |
| 99 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); | 104 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); |
| 100 }; | 105 }; |
| 101 | 106 |
| 102 } // namespace remoting | 107 } // namespace remoting |
| 103 | 108 |
| 104 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ | 109 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |