| 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 <string> |
| 9 |
| 8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 11 #include "remoting/host/desktop_environment.h" | 13 #include "remoting/host/desktop_environment.h" |
| 12 #include "remoting/host/ui_strings.h" | 14 #include "remoting/host/ui_strings.h" |
| 13 | 15 |
| 14 namespace remoting { | 16 namespace remoting { |
| 15 | 17 |
| 16 class HostWindow; | 18 class HostWindow; |
| 17 class LocalInputMonitor; | 19 class LocalInputMonitor; |
| 18 | 20 |
| 19 // Used to create audio/video capturers and event executor that work with | 21 // Used to create audio/video capturers and event executor that work with |
| 20 // the local console. | 22 // the local console. |
| 21 class BasicDesktopEnvironment : public DesktopEnvironment { | 23 class BasicDesktopEnvironment : public DesktopEnvironment { |
| 22 public: | 24 public: |
| 23 virtual ~BasicDesktopEnvironment(); | 25 virtual ~BasicDesktopEnvironment(); |
| 24 | 26 |
| 25 // DesktopEnvironment implementation. | 27 // DesktopEnvironment implementation. |
| 26 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; | 28 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; |
| 27 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 29 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
| 28 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; | 30 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; |
| 29 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; | 31 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; |
| 32 virtual std::string GetCapabilities() const OVERRIDE; |
| 33 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; |
| 30 | 34 |
| 31 protected: | 35 protected: |
| 32 friend class BasicDesktopEnvironmentFactory; | 36 friend class BasicDesktopEnvironmentFactory; |
| 33 | 37 |
| 34 // |ui_strings| are hosted by the BasicDesktopEnvironmentFactory instance that | 38 // |ui_strings| are hosted by the BasicDesktopEnvironmentFactory instance that |
| 35 // created |this|. |ui_strings| must outlive this object. | 39 // created |this|. |ui_strings| must outlive this object. |
| 36 BasicDesktopEnvironment( | 40 BasicDesktopEnvironment( |
| 37 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 41 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 38 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 42 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 39 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 43 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 124 |
| 121 // Contains a copy of the localized UI strings. | 125 // Contains a copy of the localized UI strings. |
| 122 const UiStrings ui_strings_; | 126 const UiStrings ui_strings_; |
| 123 | 127 |
| 124 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); | 128 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); |
| 125 }; | 129 }; |
| 126 | 130 |
| 127 } // namespace remoting | 131 } // namespace remoting |
| 128 | 132 |
| 129 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ | 133 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |