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" |
(...skipping 22 matching lines...) Expand all Loading... |
33 class DesktopEnvironment { | 33 class DesktopEnvironment { |
34 public: | 34 public: |
35 virtual ~DesktopEnvironment() {} | 35 virtual ~DesktopEnvironment() {} |
36 | 36 |
37 // Factory methods used to create audio/video capturers, event executor, and | 37 // Factory methods used to create audio/video capturers, event executor, and |
38 // screen controls object for a particular desktop environment. | 38 // screen controls object for a particular desktop environment. |
39 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() = 0; | 39 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() = 0; |
40 virtual scoped_ptr<InputInjector> CreateInputInjector() = 0; | 40 virtual scoped_ptr<InputInjector> CreateInputInjector() = 0; |
41 virtual scoped_ptr<ScreenControls> CreateScreenControls() = 0; | 41 virtual scoped_ptr<ScreenControls> CreateScreenControls() = 0; |
42 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() = 0; | 42 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() = 0; |
| 43 |
| 44 // Returns the set of all capabilities supported by |this|. |
| 45 virtual std::string GetCapabilities() const = 0; |
| 46 |
| 47 // Passes the final set of capabilities negotiated between the client and host |
| 48 // to |this|. |
| 49 virtual void SetCapabilities(const std::string& capabilities) = 0; |
43 }; | 50 }; |
44 | 51 |
45 // Used to create |DesktopEnvironment| instances. | 52 // Used to create |DesktopEnvironment| instances. |
46 class DesktopEnvironmentFactory { | 53 class DesktopEnvironmentFactory { |
47 public: | 54 public: |
48 virtual ~DesktopEnvironmentFactory() {} | 55 virtual ~DesktopEnvironmentFactory() {} |
49 | 56 |
50 // Creates an instance of |DesktopEnvironment|. |client_session_control| must | 57 // Creates an instance of |DesktopEnvironment|. |client_session_control| must |
51 // outlive |this|. | 58 // outlive |this|. |
52 virtual scoped_ptr<DesktopEnvironment> Create( | 59 virtual scoped_ptr<DesktopEnvironment> Create( |
53 base::WeakPtr<ClientSessionControl> client_session_control) = 0; | 60 base::WeakPtr<ClientSessionControl> client_session_control) = 0; |
54 | 61 |
55 // Returns |true| if created |DesktopEnvironment| instances support audio | 62 // Returns |true| if created |DesktopEnvironment| instances support audio |
56 // capture. | 63 // capture. |
57 virtual bool SupportsAudioCapture() const = 0; | 64 virtual bool SupportsAudioCapture() const = 0; |
58 }; | 65 }; |
59 | 66 |
60 } // namespace remoting | 67 } // namespace remoting |
61 | 68 |
62 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ | 69 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |