| 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 <cstdint> | 8 #include <cstdint> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "remoting/host/desktop_environment_options.h" | 15 #include "remoting/host/desktop_environment_options.h" |
| 16 | 16 |
| 17 namespace base { | |
| 18 class SingleThreadTaskRunner; | |
| 19 } // namespace base | |
| 20 | |
| 21 namespace webrtc { | 17 namespace webrtc { |
| 22 class DesktopCapturer; | 18 class DesktopCapturer; |
| 23 class MouseCursorMonitor; | 19 class MouseCursorMonitor; |
| 24 } // namespace webrtc | 20 } // namespace webrtc |
| 25 | 21 |
| 26 namespace remoting { | 22 namespace remoting { |
| 27 | 23 |
| 28 namespace protocol { | |
| 29 class ClientStub; | |
| 30 } // namespace protocol | |
| 31 | |
| 32 class AudioCapturer; | 24 class AudioCapturer; |
| 33 class ClientSessionControl; | 25 class ClientSessionControl; |
| 34 class InputInjector; | 26 class InputInjector; |
| 35 class ScreenControls; | 27 class ScreenControls; |
| 36 | 28 |
| 37 // Provides factory methods for creation of audio/video capturers and event | 29 // Provides factory methods for creation of audio/video capturers and event |
| 38 // executor for a given desktop environment. | 30 // executor for a given desktop environment. |
| 39 class DesktopEnvironment { | 31 class DesktopEnvironment { |
| 40 public: | 32 public: |
| 41 virtual ~DesktopEnvironment() {} | 33 virtual ~DesktopEnvironment() {} |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const DesktopEnvironmentOptions& options) = 0; | 67 const DesktopEnvironmentOptions& options) = 0; |
| 76 | 68 |
| 77 // Returns |true| if created |DesktopEnvironment| instances support audio | 69 // Returns |true| if created |DesktopEnvironment| instances support audio |
| 78 // capture. | 70 // capture. |
| 79 virtual bool SupportsAudioCapture() const = 0; | 71 virtual bool SupportsAudioCapture() const = 0; |
| 80 }; | 72 }; |
| 81 | 73 |
| 82 } // namespace remoting | 74 } // namespace remoting |
| 83 | 75 |
| 84 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 76 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |