| 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_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
| 18 } // namespace base | 18 } // namespace base |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 class ScreenCapturer; | 21 class ScreenCapturer; |
| 22 class MouseCursorMonitor; | |
| 23 } // namespace webrtc | 22 } // namespace webrtc |
| 24 | 23 |
| 25 namespace remoting { | 24 namespace remoting { |
| 26 | 25 |
| 27 class AudioCapturer; | 26 class AudioCapturer; |
| 28 class ClientSessionControl; | 27 class ClientSessionControl; |
| 29 class InputInjector; | 28 class InputInjector; |
| 30 class ScreenControls; | 29 class ScreenControls; |
| 31 | 30 |
| 32 // Provides factory methods for creation of audio/video capturers and event | 31 // Provides factory methods for creation of audio/video capturers and event |
| 33 // executor for a given desktop environment. | 32 // executor for a given desktop environment. |
| 34 class DesktopEnvironment { | 33 class DesktopEnvironment { |
| 35 public: | 34 public: |
| 36 virtual ~DesktopEnvironment() {} | 35 virtual ~DesktopEnvironment() {} |
| 37 | 36 |
| 38 // Factory methods used to create audio/video capturers, event executor, and | 37 // Factory methods used to create audio/video capturers, event executor, and |
| 39 // screen controls object for a particular desktop environment. | 38 // screen controls object for a particular desktop environment. |
| 40 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() = 0; | 39 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() = 0; |
| 41 virtual scoped_ptr<InputInjector> CreateInputInjector() = 0; | 40 virtual scoped_ptr<InputInjector> CreateInputInjector() = 0; |
| 42 virtual scoped_ptr<ScreenControls> CreateScreenControls() = 0; | 41 virtual scoped_ptr<ScreenControls> CreateScreenControls() = 0; |
| 43 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() = 0; | 42 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() = 0; |
| 44 virtual scoped_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() = 0; | |
| 45 | 43 |
| 46 // Returns the set of all capabilities supported by |this|. | 44 // Returns the set of all capabilities supported by |this|. |
| 47 virtual std::string GetCapabilities() const = 0; | 45 virtual std::string GetCapabilities() const = 0; |
| 48 | 46 |
| 49 // Passes the final set of capabilities negotiated between the client and host | 47 // Passes the final set of capabilities negotiated between the client and host |
| 50 // to |this|. | 48 // to |this|. |
| 51 virtual void SetCapabilities(const std::string& capabilities) = 0; | 49 virtual void SetCapabilities(const std::string& capabilities) = 0; |
| 52 }; | 50 }; |
| 53 | 51 |
| 54 // Used to create |DesktopEnvironment| instances. | 52 // Used to create |DesktopEnvironment| instances. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 67 virtual void SetEnableCurtaining(bool enable) {} | 65 virtual void SetEnableCurtaining(bool enable) {} |
| 68 | 66 |
| 69 // Returns |true| if created |DesktopEnvironment| instances support audio | 67 // Returns |true| if created |DesktopEnvironment| instances support audio |
| 70 // capture. | 68 // capture. |
| 71 virtual bool SupportsAudioCapture() const = 0; | 69 virtual bool SupportsAudioCapture() const = 0; |
| 72 }; | 70 }; |
| 73 | 71 |
| 74 } // namespace remoting | 72 } // namespace remoting |
| 75 | 73 |
| 76 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 74 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |